3 echo ##########################################################################
\r
4 echo omniORB %VERSION%
\r
5 echo ##########################################################################
\r
7 IF NOT DEFINED SAT_DEBUG (
\r
11 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
\r
12 REM clean BUILD directory
\r
13 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
\r
16 if NOT defined CYGWIN_ROOT_DIR (
\r
17 echo ERROR: Please set the environment variable: CYGWIN_ROOT_DIR
\r
20 echo INFO: Cygwin suite environment variable is set to: %CYGWIN_ROOT_DIR%
\r
23 if exist "%BUILD_DIR%" rmdir /Q /S "%BUILD_DIR%"
\r
27 xcopy * %BUILD_DIR% /E /I /Q
\r
28 if NOT %ERRORLEVEL% == 0 (
\r
33 REM select the correct platform
\r
34 set CONFIG_MK=%BUILD_DIR%\config\config.mk
\r
35 set CONFIG_REF=%BUILD_DIR%\config\config.mk.ref
\r
36 set CONFIG_DBG=%BUILD_DIR%\config\config.mk.dbg
\r
37 copy %CONFIG_MK% %CONFIG_REF%
\r
38 echo INFO: activating platform target: x86_win32_vs_15
\r
39 sed "s/#platform = x86_win32_vs_15/platform = x86_win32_vs_15/g" < %CONFIG_REF% > %CONFIG_MK%
\r
40 if %SAT_DEBUG% == 1 (
\r
41 copy %CONFIG_MK% %CONFIG_DBG%
\r
43 if %SAT_DEBUG% == 1 (
\r
44 sed "s/#BuildDebugBinary = 1/BuildDebugBinary = 1/g" < %CONFIG_DBG% > %CONFIG_MK%
\r
47 REM target our Python in the configuration file
\r
48 set PLATFORM_MK=%BUILD_DIR%\mk\platforms\x86_win32_vs_15.mk
\r
49 set PLATFORM_REF=%BUILD_DIR%\mk\platforms\x86_win32_vs_15.mk.ref
\r
50 copy %PLATFORM_MK% %PLATFORM_REF%
\r
52 set CYGWIN_PYTHON_ROOT_DIR=%PYTHON_ROOT_DIR:\=\/%
\r
53 set CYGWIN_PYTHON_ROOT_DIR=%CYGWIN_PYTHON_ROOT_DIR::=%
\r
54 echo Setting path to Python binary...
\r
55 sed "s/#PYTHON = \/cygdrive\/c\/Python36\/python/PYTHON = \/cygdrive\/%CYGWIN_PYTHON_ROOT_DIR%\/python/g" < %PLATFORM_REF% > %PLATFORM_MK%
\r
58 echo INFO: compilation starts now...
\r
59 set PATH=%PATH%;%CYGWIN_ROOT_DIR%\bin;%PYTHON_ROOT_DIR%
\r
61 if NOT %ERRORLEVEL% == 0 (
\r
62 echo ERROR on make export
\r
67 xcopy * %INSTALL_DIR% /E /I /Q
\r
68 if NOT %ERRORLEVEL% == 0 (
\r