Kaydet (Commit) 01df80b4 authored tarafından Jürgen Schmidt's avatar Jürgen Schmidt

#122477# adapt config script, support 64bit Windows, fix search path

üst e86a463d
This diff is collapsed.
@echo off @echo off
REM *************************************************************
REM
REM Licensed to the Apache Software Foundation (ASF) under one
REM or more contributor license agreements. See the NOTICE file
REM distributed with this work for additional information
REM regarding copyright ownership. The ASF licenses this file
REM to you under the Apache License, Version 2.0 (the
REM "License")rem you may not use this file except in compliance
REM with the License. You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing,
REM software distributed under the License is distributed on an
REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
REM KIND, either express or implied. See the License for the
REM specific language governing permissions and limitations
REM under the License.
REM
REM *************************************************************
REM This script sets all enviroment variables, which REM This script sets all enviroment variables, which
REM are necessary for building the examples of the Office Development Kit. REM are necessary for building the examples of the Office Development Kit.
REM The Script was developed for the operating systems Windows. REM The Script was developed for the operating systems Windows.
REM The SDK name REM The SDK name
REM Example: set OO_SDK_NAME=openoffice4.0_sdk REM Example: @set "OO_SDK_NAME=openoffice4.0_sdk"
set OO_SDK_NAME=openoffice4.0_sdk @set "OO_SDK_NAME=<your_input_here>"
REM Installation directory of the Software Development Kit. REM Installation directory of the Software Development Kit.
REM Example: set OO_SDK_HOME=C:\Program Files\OpenOffice 4\sdk REM Example: @set "OO_SDK_HOME=C:\Program Files\OpenOffice\4\sdk"
@set OO_SDK_HOME= @set "OO_SDK_HOME=<your_input_here>"
REM Office installation directory. REM Office installation directory.
REM Example: set OFFICE_HOME=C:\Program Files\OpenOffice 4 REM Example: @set "OFFICE_HOME=C:\Program Files\OpenOffice 4"
@set OFFICE_HOME= @set "OFFICE_HOME=<your_input_here>"
REM Directory of the make command. REM Directory of the make command.
REM Example: set OO_SDK_MAKE_HOME=C:\UnixTools\usr\local\wbin REM Example: @set "OO_SDK_MAKE_HOME=C:\UnxUtils\usr\local\wbin"
@set OO_SDK_MAKE_HOME= @set "OO_SDK_MAKE_HOME=<your_input_here>"
REM Directory of the zip tool. REM Directory of the zip tool.
REM Example: set OO_SDK_ZIP_HOME=C:\UnixTools\usr\local\wbin REM Example: @set "OO_SDK_ZIP_HOME=C:\UnxUtils\usr\local\wbin"
@set OO_SDK_ZIP_HOME= @set "OO_SDK_ZIP_HOME=<your_input_here>"
REM Directory of the cat tool. REM Directory of the cat tool.
REM Example: set OO_SDK_CAT_HOME=C:\UnxUtils\usr\local\wbin REM Example: @set "OO_SDK_CAT_HOME=C:\UnxUtils\usr\local\wbin"
@set OO_SDK_CAT_HOME= @set "OO_SDK_CAT_HOME=<your_input_here>"
REM Directory of the sed tool. REM Directory of the sed tool.
REM Example: set OO_SDK_SED_HOME=C:\UnxUtils\usr\local\wbin REM Example: @set "OO_SDK_SED_HOME=C:\UnxUtils\usr\local\wbin"
@set OO_SDK_SED_HOME= @set "OO_SDK_SED_HOME=<your_input_here>"
REM Directory of the C++ compiler. REM Directory of the C++ compiler.
REM Example:set OO_SDK_CPP_HOME=C:\Program Files\Microsoft Visual Studio 9.0\VC\bin REM Example: @set "OO_SDK_CPP_HOME=C:\Program Files\Microsoft Visual Studio 9.0\VC\bin"
@set OO_SDK_CPP_HOME= @set "OO_SDK_CPP_HOME=<your_input_here>"
@set CPP_MANIFEST= @set "CPP_MANIFEST=true"
@set CPP_WINDOWS_SDK= @set "CPP_WINDOWS_SDK=<your_input_here>"
REM Directory of the C# and VB.NET compilers. REM Directory of the C# and VB.NET compilers.
REM Example:set OO_SDK_CLI_HOME=C:\WINXP\Microsoft.NET\Framework\v1.0.3705 REM Example: @set "OO_SDK_CLI_HOME=C:\WINXP\Microsoft.NET\Framework\v1.0.3705"
@set OO_SDK_CLI_HOME= @set "OO_SDK_CLI_HOME=<your_input_here>"
REM Java SDK installation directory. REM Java SDK installation directory.
REM Example: set OO_SDK_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_05 REM Example: @set "OO_SDK_JAVA_HOME=C:\Program Files\Java\jdk1.6.0_05"
@set OO_SDK_JAVA_HOME= @set "OO_SDK_JAVA_HOME=<your_input_here>"
REM Special output directory REM Special output directory
REM Example: set OO_SDK_OUT=C:\openoffice4.0_sdk REM Example: @set "OO_SDK_OUT=C:\openoffice4.0_sdk"
@set OO_SDK_OUT= @set "OO_SDK_OUT=<your_input_here>"
REM Automatic deployment REM Automatic deployment
REM Example: set SDK_AUTO_DEPLOYMENT=YES REM Example: @set "SDK_AUTO_DEPLOYMENT=YES"
@set SDK_AUTO_DEPLOYMENT=YES @set "SDK_AUTO_DEPLOYMENT=YES"
@set STLDEBUG=
REM check stlport lib in 4NT shell
REM if exist "%OO_SDK_HOME%\windows\lib\stlport_vc71_stldebug.lib". (
REM @set STLDEBUG=_stldebug
REM )
REM Check installation path for the Office Development Kit. REM Check installation path for the Office Development Kit.
if not defined OO_SDK_HOME ( if not defined OO_SDK_HOME (
echo Error: the variable OO_SDK_HOME is missing! echo Error: the variable OO_SDK_HOME is missing!
goto error goto :error
) )
REM Check installation path for GNU make. REM Check installation path for GNU make.
if not defined OO_SDK_MAKE_HOME ( if not defined OO_SDK_MAKE_HOME (
echo Error: the variable OO_SDK_MAKE_HOME is missing! echo Error: the variable OO_SDK_MAKE_HOME is missing!
goto error goto :error
) )
REM Check installation path for the zip tool. REM Check installation path for the zip tool.
if not defined OO_SDK_ZIP_HOME ( if not defined OO_SDK_ZIP_HOME (
echo Error: the variable OO_SDK_ZIP_HOME is missing! echo Error: the variable OO_SDK_ZIP_HOME is missing!
goto error goto :error
) )
REM Check installation path for the cat tool. REM Check installation path for the cat tool.
if not defined OO_SDK_CAT_HOME ( if not defined OO_SDK_CAT_HOME (
echo Error: the variable OO_SDK_CAT_HOME is missing! echo Error: the variable OO_SDK_CAT_HOME is missing!
goto error goto :error
) )
REM Check installation path for the sed tool. REM Check installation path for the sed tool.
if not defined OO_SDK_SED_HOME ( if not defined OO_SDK_SED_HOME (
echo Error: the variable OO_SDK_SED_HOME is missing! echo Error: the variable OO_SDK_SED_HOME is missing!
goto error goto :error
) )
REM Set library path. REM Set library path.
@set LIB=%OO_SDK_HOME%\lib;%LIB% @set "LIB=%OO_SDK_HOME%\lib;%LIB%"
if defined CPP_WINDOWS_SDK ( if defined CPP_WINDOWS_SDK (
@set LIB=%LIB%;%CPP_WINDOWS_SDK%\lib @set "LIB=%LIB%;%CPP_WINDOWS_SDK%\lib"
) )
REM Set office program path. REM Set office program path.
if defined OFFICE_HOME ( if defined OFFICE_HOME (
@set OFFICE_PROGRAM_PATH=%OFFICE_HOME%\program @set "OFFICE_PROGRAM_PATH=%OFFICE_HOME%\program"
) )
REM Set UNO path, necessary to ensure that the cpp examples using the REM Set UNO path, necessary to ensure that the cpp examples using the
REM new UNO bootstrap mechanism use the configured office installation REM new UNO bootstrap mechanism use the configured office installation
REM (only set when using an Office). REM (only set when using an Office).
if defined OFFICE_HOME ( if defined OFFICE_HOME (
@set UNO_PATH=%OFFICE_PROGRAM_PATH% @set "UNO_PATH=%OFFICE_PROGRAM_PATH%"
) )
REM set OO_SDK_URE_BIN_DIR=%OFFICE_PROGRAM_PATH%
REM set OO_SDK_URE_LIB_DIR=%OFFICE_PROGRAM_PATH%
REM set OO_SDK_URE_JAVA_DIR=%OFFICE_PROGRAM_PATH%\classes
@set OO_SDK_OFFICE_BIN_DIR=%OFFICE_PROGRAM_PATH% @set "OO_SDK_OFFICE_BIN_DIR=%OFFICE_PROGRAM_PATH%"
@set OO_SDK_OFFICE_LIB_DIR=%OFFICE_PROGRAM_PATH% @set "OO_SDK_OFFICE_LIB_DIR=%OFFICE_BASE_PROGRAM_PATH%"
@set OO_SDK_OFFICE_JAVA_DIR=%OFFICE_PROGRAM_PATH%\classes @set "OO_SDK_OFFICE_JAVA_DIR=%OFFICE_BASE_PROGRAM_PATH%\classes"
REM Set classpath REM Set classpath
@set CLASSPATH=%OO_SDK_OFFICE_JAVA_DIR%\juh.jar;%OO_SDK_OFFICE_JAVA_DIR%\jurt.jar;%OO_SDK_OFFICE_JAVA_DIR%\ridl.jar;%OO_SDK_OFFICE_JAVA_DIR%\unoloader.jar;%OO_SDK_OFFICE_JAVA_DIR%\unoil.jar @set "CLASSPATH=%OO_SDK_OFFICE_JAVA_DIR%\juh.jar;%OO_SDK_OFFICE_JAVA_DIR%\jurt.jar;%OO_SDK_OFFICE_JAVA_DIR%\ridl.jar;%OO_SDK_OFFICE_JAVA_DIR%\unoloader.jar;%OO_SDK_OFFICE_JAVA_DIR%\unoil.jar"
REM Add directory of the SDK tools to the path. REM Add directory of the SDK tools to the path.
@set PATH=%OO_SDK_HOME%\bin;%OO_SDK_OFFICE_BIN_DIR%;%OO_SDK_HOME%\WINexample.out\bin;%OO_SDK_MAKE_HOME%;%OO_SDK_ZIP_HOME%;%OO_SDK_CAT_HOME%;%OO_SDK_SED_HOME%;%PATH% set "PATH=%OO_SDK_HOME%\bin;%OO_SDK_OFFICE_BIN_DIR%;%OO_SDK_OFFICE_BIN_DIR%;%OO_SDK_HOME%\WINexample.out\bin;%OO_SDK_MAKE_HOME%;%OO_SDK_ZIP_HOME%;%OO_SDK_CAT_HOME%;%OO_SDK_SED_HOME%;%PATH%"
REM Set PATH appropriate to the output directory
if defined OO_SDK_OUT ( if defined OO_SDK_OUT (
@set PATH=%OO_SDK_OUT%\WINexample.out\bin;%PATH% @set "PATH=%OO_SDK_OUT%\WINexample.out\bin;%PATH%"
) else ( ) else (
@set PATH=%OO_SDK_HOME%\WINexample.out\bin;%PATH% @set "PATH=%OO_SDK_HOME%\WINexample.out\bin;%PATH%"
) )
REM Add directory of the command make to the path, if necessary.
REM if defined OO_SDK_MAKE_HOME @set PATH+=%OO_SDK_MAKE_HOME%
Rem Add directory of the zip tool to the path, if necessary.
REM if defined OO_SDK_ZIP_HOME @set PATH+=%OO_SDK_ZIP_HOME%
REM Add directory of the cat tool to the path, if necessary.
REM if defined OO_SDK_CAT_HOME @set PATH+=%OO_SDK_CAT_HOME
REM Add directory of the sed tool to the path, if necessary.
REM if defined OO_SDK_SED_HOME @set PATH+=%OO_SDK_SED_HOME%
REM Add directory of the C++ compiler to the path, if necessary.
REM if defined OO_SDK_CPP_HOME @set PATH+=%OO_SDK_CPP_HOME%
REM Add directory of the Win SDK to the path, if necessary. REM Add directory of the Win SDK to the path, if necessary.
if defined CPP_WINDOWS_SDK ( if defined CPP_WINDOWS_SDK (
@set PATH=%CPP_WINDOWS_SDK%\bin;%PATH% @set "PATH=%CPP_WINDOWS_SDK\bin%;%PATH%"
@set INCLUDE=%CPP_WINDOWS_SDK%\Include;%INCLUDE% @set "INCLUDE=%CPP_WINDOWS_SDK\Include%;%INCLUDE%"
) )
REM Add directory of the C# and VB.NET compilers to the path, if necessary. REM Add directory of the C# and VB.NET compilers to the path, if necessary.
if defined OO_SDK_CLI_HOME @set PATH=%OO_SDK_CLI_HOME%;%PATH% if defined OO_SDK_CLI_HOME @set "PATH=%OO_SDK_CLI_HOME%;%PATH%"
REM Add directory of the Java tools to the path, if necessary. REM Add directory of the Java tools to the path, if necessary.
if defined OO_SDK_JAVA_HOME @set PATH=%OO_SDK_JAVA_HOME%\bin;%OO_SDK_JAVA_HOME%\jre\bin;%PATH% if defined OO_SDK_JAVA_HOME @set "PATH=%OO_SDK_JAVA_HOME%\bin;%OO_SDK_JAVA_HOME%\jre\bin;%PATH%"
REM Set environment for C++ compiler tools, if necessary. REM Set environment for C++ compiler tools, if necessary.
if defined OO_SDK_CPP_HOME call "%OO_SDK_CPP_HOME%\VCVARS32.bat" if defined OO_SDK_CPP_HOME call "%OO_SDK_CPP_HOME%\VCVARS32.bat"
...@@ -199,10 +155,9 @@ echo * Auto deployment = %SDK_AUTO_DEPLOYMENT% ...@@ -199,10 +155,9 @@ echo * Auto deployment = %SDK_AUTO_DEPLOYMENT%
echo * echo *
echo ****************************************************************** echo ******************************************************************
echo. echo.
goto:end goto end
:error :error
Error: Please insert the necessary environment variables into the batch file. Error: Please insert the necessary environment variables into the batch file.
:end :end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment