compil_script : "Python-3.6.5.bat"
patches : ['Python-3.6.5_windows.patch']
}
+version_3_7_9 :
+{
+ patches : []
+}
+
+version_3_7_9_win :
+{
+ compil_script : "Python-3.7.9.bat"
+ patches : []
+ build_depend : ['perl']
+}
{
patches: ['URANIE-4.5.0.patch']
}
+
+version_4_5_0_win :
+{
+ depend : ['Python', 'root','nlopt', 'boost', 'pthreads']
+ build_depend : ["cmake", 'swig', 'cppunit']
+ patches: ['URANIE-4.5.0.patch']
+}
--- /dev/null
+@echo off
+
+echo ##########################################################################
+echo Python %VERSION%
+echo ##########################################################################
+
+IF NOT DEFINED SAT_DEBUG (
+ SET SAT_DEBUG=0
+)
+
+SET PRODUCT_BUILD_TYPE=Release
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=Debug
+)
+
+set PLATFORM_TARGET=x64
+if defined SALOME_APPLICATION_NAME if %SALOME_APPLICATION_NAME% == URANIE (
+ set PLATFORM_TARGET=Win32
+)
+
+SET LIB_TAG=
+if %SAT_DEBUG% == 1 (
+ set LIB_TAG=_d
+)
+
+if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
+if NOT exist "%PRODUCT_INSTALL%\libs" mkdir %PRODUCT_INSTALL%\libs
+REM clean BUILD directory
+if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
+mkdir %BUILD_DIR%
+
+cd %SOURCE_DIR%
+xcopy * %BUILD_DIR% /E /I /Q
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on xcopy
+ exit 1
+)
+
+SET MSBUILDDISABLENODEREUSE=1
+
+cd %BUILD_DIR%\PCbuild
+
+REM Upgrade to current version of MSVC
+echo.
+echo *** devenv pcbuild.sln /upgrade
+devenv pcbuild.sln /upgrade
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on devenv
+ exit 1
+)
+
+echo.
+
+cd PCBuild
+echo.
+echo Extracting zlib...
+if exist "%BUILD_DIR%\externals\cpython-source-deps-zlib-1.2.11" rmdir /Q /S "%BUILD_DIR%\externals\cpython-source-deps-zlib-1.2.11"
+if exist "%BUILD_DIR%\externals\zlib-1.2.11" rmdir /Q /S "%BUILD_DIR%\externals\zlib-1.2.11"
+7z x -y %BUILD_DIR%\externals\zips\zlib-1.2.11.zip -o%BUILD_DIR%\externals
+mv %BUILD_DIR%\externals\cpython-source-deps-zlib-1.2.11 %BUILD_DIR%\externals\zlib-1.2.11
+
+echo Extracting nasm...
+if exist "%BUILD_DIR%\externals\cpython-bin-deps-nasm-2.11.06" rmdir /Q /S "%BUILD_DIR%\externals\cpython-bin-deps-nasm-2.11.06"
+if exist "%BUILD_DIR%\externals\nasm-2.11.06" rmdir /Q /S "%BUILD_DIR%\externals\nasm-2.11.06"
+7z x -y %BUILD_DIR%\externals\zips\nasm-2.11.06.zip -o%BUILD_DIR%\externals
+mv %BUILD_DIR%\externals\cpython-bin-deps-nasm-2.11.06 %BUILD_DIR%\externals\nasm-2.11.06
+
+echo Extracting openssl...
+if exist "%BUILD_DIR%\externals\cpython-source-deps-openssl-1.1.1g" rmdir /Q /S "%BUILD_DIR%\externals\cpython-source-deps-openssl-1.1.1g"
+if exist "%BUILD_DIR%\externals\openssl-1.1.1g" rmdir /Q /S "%BUILD_DIR%\externals\openssl-1.1.1g"
+7z x -y %BUILD_DIR%\externals\zips\openssl-1.1.1g.zip -o%BUILD_DIR%\externals
+mv %BUILD_DIR%\externals\cpython-source-deps-openssl-1.1.1g %BUILD_DIR%\externals\openssl-1.1.1g
+
+echo Extracting sqlite...
+if exist "%BUILD_DIR%\externals\cpython-source-deps-sqlite-3.31.1.0" rmdir /Q /S "%BUILD_DIR%\externals\cpython-source-deps-sqlite-3.31.1.0"
+if exist "%BUILD_DIR%\externals\sqlite-3.31.1.0" rmdir /Q /S "%BUILD_DIR%\externals\sqlite-3.31.1.0"
+7z x -y %BUILD_DIR%\externals\zips\sqlite-3.31.1.0.zip -o%BUILD_DIR%\externals
+mv %BUILD_DIR%\externals\cpython-source-deps-sqlite-3.31.1.0 %BUILD_DIR%\externals\sqlite-3.31.1.0
+
+echo Extracting xz...
+if exist "%BUILD_DIR%\externals\cpython-source-deps-xz-5.2.2" rmdir /Q /S "%BUILD_DIR%\externals\cpython-source-deps-xz-5.2.2"
+if exist "%BUILD_DIR%\externals\xz-5.2.2" rmdir /Q /S "%BUILD_DIR%\externals\xz-5.2.2"
+7z x -y %BUILD_DIR%\externals\zips\xz-5.2.2.zip -o%BUILD_DIR%\externals
+mv %BUILD_DIR%\externals\cpython-source-deps-xz-5.2.2 %BUILD_DIR%\externals\xz-5.2.2
+
+echo Extracting xz...
+if exist "%BUILD_DIR%\externals\cpython-source-deps-bzip2-1.0.6" rmdir /Q /S "%BUILD_DIR%\externals\cpython-source-deps-bzip2-1.0.6"
+if exist "%BUILD_DIR%\externals\bzip2-1.0.6" rmdir /Q /S "%BUILD_DIR%\externals\bzip2-1.0.6"
+7z x -y %BUILD_DIR%\externals\zips\bzip2-1.0.6.zip -o%BUILD_DIR%\externals
+mv %BUILD_DIR%\externals\cpython-source-deps-bzip2-1.0.6 %BUILD_DIR%\externals\bzip2-1.0.6
+
+echo Extracting pip...
+if exist "%BUILD_DIR%\externals\pip-21.1.1" rmdir /Q /S "%BUILD_DIR%\externals\pip-21.1.1"
+7z x -y %BUILD_DIR%\externals\zips\pip-21.1.1.zip -o%BUILD_DIR%\externals
+
+REM Compilation
+
+cd %BUILD_DIR%
+echo.
+
+REM Upgrade to current version of MSVC
+echo.
+echo *** devenv pcbuild.sln /upgrade
+devenv pcbuild.sln /upgrade
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on devenv
+ exit 1
+)
+
+echo *** msbuild %BUILD_DIR%\PCBuild\pcbuild.sln /t:Build /m /nologo /v:m /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET% /p:BuildProjectReferences=false /p:OutDir=%PRODUCT_INSTALL%\
+msbuild %BUILD_DIR%\PCBuild\pcbuild.sln /t:Build /m /nologo /v:m /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET% /p:OutDir=%PRODUCT_INSTALL%\
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on msbuild
+ exit 2
+)
+
+REM Installation of additional files
+echo.
+echo *** Installation of additional files
+cd ..
+xcopy /Y /I /E %BUILD_DIR%\include %PRODUCT_INSTALL%\include
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on xcopy include
+ exit 3
+)
+
+copy /Y %BUILD_DIR%\PC\pyconfig.h %PRODUCT_INSTALL%\include
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on copy PC\pyconfig.h
+ exit 4
+)
+
+xcopy /Y /I /E %BUILD_DIR%\lib %PRODUCT_INSTALL%\lib
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on xcopy lib
+ exit 5
+)
+
+REM some prequistes if compiled in Debug mode require the lib to be in folder libs
+REM other ones require these static lib to be in the root directory
+REM on purpose we don't use mklink, since this requires the user to have his node set in developer mode.
+xcopy /Y %PRODUCT_INSTALL%\*.lib %PRODUCT_INSTALL%\libs\
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR could not copy static libraries
+ exit 6
+)
+
+REM on purpose, we don't use mklink - requires admin rights...
+copy /Y /B %PRODUCT_INSTALL%\python%LIB_TAG%.exe %PRODUCT_INSTALL%\python3.exe
+if %SAT_DEBUG% == 1 (
+ copy /Y /B %PRODUCT_INSTALL%\python_d.exe %PRODUCT_INSTALL%\python.exe
+ REM otherwise OmniORB does not compile...
+ copy /Y /B %PRODUCT_INSTALL%\libs\python37_d.lib %PRODUCT_INSTALL%\libs\python37.lib
+ copy /Y /B %PRODUCT_INSTALL%\libs\python_d.lib %PRODUCT_INSTALL%\libs\python.lib
+)
+
+cd %PRODUCT_INSTALL%\
+
+REM Add PIP support
+set PYTHONHOME=%PRODUCT_INSTALL%
+set PYTHON_ROOT_DIR=%PRODUCT_INSTALL%
+set PYTHON_VERSION=3.7
+set PATH=%PRODUCT_INSTALL%;%PATH%
+set PATH=%PRODUCT_INSTALL%\lib;%PATH%
+set PYTHON_INCLUDE=%PRODUCT_INSTALL%\include
+set PYTHONPATH=%PRODUCT_INSTALL%\lib;%PYTHONPATH%
+set PYTHONPATH=%PRODUCT_INSTALL%\lib\site-packages;%PYTHONPATH%
+set PYTHONBIN=%PRODUCT_INSTALL%\python.exe
+set PATH=%PRODUCT_INSTALL%\Scripts;%PATH%
+
+%PRODUCT_INSTALL%\python.exe %BUILD_DIR%\externals\pip-21.1.1\get-pip.py --force-reinstall --no-setuptools --no-wheel --no-index --find-links=%BUILD_DIR%\externals\pip-21.1.1
+
+REM In debug mode, we need to rename all _d.pyd to .pyd... don't ask why. Seems like a known bug in OmniORB.
+if %SAT_DEBUG% == 1 (
+ cd %PRODUCT_INSTALL%
+ powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) { $_ | Copy-Item -Destination {$_.Name -replace '.pyd','_d.pyd'}}}"
+ cd %PRODUCT_INSTALL%\lib\site-packages
+ powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) { $_ | Copy-Item -Destination {$_.Name -replace '.pyd','_d.pyd'}}}"
+)
+
+
+taskkill /F /IM "mspdbsrv.exe"
+
+echo.
+echo ########## END
set PRODUCT_BUILD_TYPE=Debug
)
+set PLATFORM_TARGET=Win32
+
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
REM clean BUILD directory
if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DWITH-OPT++:BOOL=ON
SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DWITH-JSONCPP:BOOL=ON
SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -D--enable-doc:BOOL=ON
-SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"
+SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR=%CMAKE_GENERATOR%
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -A Win32 -Thost=x64
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -D--enable-WIN32-DEBUG=OFF
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_ROOT_DIR=%PTHREAD_ROOT_DIR:\=/%
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_INCLUDE_DIR=%PTHREAD_ROOT_DIR:\=/%/include
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_DLL_LIBRARY=%PTHREAD_ROOT_DIR:\=/%/lib/pthreadVC2.dll
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_LIBRARY=%PTHREAD_ROOT_DIR:\=/%/lib/pthreadVCE2.lib
+
cd %BUILD_DIR%
echo.
echo.
echo --------------------------------------------------------------------------
-echo *** msbuild %MAKE_OPTIONS% ALL_BUILD.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64
+echo *** msbuild %MAKE_OPTIONS% ALL_BUILD.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET%
echo --------------------------------------------------------------------------
-msbuild %MAKE_OPTIONS% ALL_BUILD.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64
+msbuild %MAKE_OPTIONS% ALL_BUILD.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET%
if NOT %ERRORLEVEL% == 0 (
echo ERROR on msbuild ALL_BUILD.vcxproj
exit 2
echo.
echo --------------------------------------------------------------------------
-echo *** msbuild %MAKE_OPTIONS% INSTALL.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64
+echo *** msbuild %MAKE_OPTIONS% INSTALL.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET%
echo --------------------------------------------------------------------------
-msbuild %MAKE_OPTIONS% INSTALL.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64
+msbuild %MAKE_OPTIONS% INSTALL.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET%
if NOT %ERRORLEVEL% == 0 (
echo ERROR on msbuild INSTALL.vcxproj
exit 3
-@echo off\r
-\r
-echo ##########################################################################\r
-echo PThreads %VERSION%\r
-echo ##########################################################################\r
-\r
-IF NOT DEFINED SAT_DEBUG (\r
- SET SAT_DEBUG=0\r
-)\r
-\r
-SET PRODUCT_BUILD_TYPE=Release\r
-if %SAT_DEBUG% == 1 (\r
- set PRODUCT_BUILD_TYPE=Debug\r
-)\r
-\r
-if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%\r
-if NOT exist "%PRODUCT_INSTALL%\lib" mkdir %PRODUCT_INSTALL%\lib\r
-if NOT exist "%PRODUCT_INSTALL%\include" mkdir %PRODUCT_INSTALL%\include\r
-\r
-REM clean BUILD directory\r
-if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%\r
-mkdir %BUILD_DIR%\r
-\r
-robocopy %SOURCE_DIR% %BUILD_DIR% /E /NP /NFL /NDL /NS /NC\r
-if NOT %ERRORLEVEL% == 1 (\r
- echo ERROR when copying archive %ERRORLEVEL%\r
- exit 1\r
-)\r
-\r
-cd %BUILD_DIR%\r
-\r
-REM Upgrade to current version of MSVC\r
-echo.\r
-echo *** devenv %BUILD_DIR%\pthread.sln /upgrade\r
-devenv %BUILD_DIR%\pthread.sln /upgrade\r
-if NOT %ERRORLEVEL% == 0 (\r
- echo ERROR on devenv\r
- exit 2\r
-)\r
-\r
-REM Compilation\r
-echo.\r
-echo *** %BUILD_DIR%\pthread.sln /t:build /p:Configuration=%PRODUCT_BUILD_TYPE%;Platform=x64\r
-\r
-msbuild %BUILD_DIR%\pthread.sln /t:build /p:Configuration=%PRODUCT_BUILD_TYPE%;Platform=x64\r
-if NOT %ERRORLEVEL% == 0 (\r
- echo ERROR on msbuild\r
- exit 3\r
-)\r
-\r
-echo.\r
-echo --------------------------------------------------------------------------\r
-echo *** Installing includes\r
-echo --------------------------------------------------------------------------\r
-echo.\r
-\r
-xcopy %BUILD_DIR%\*.h %PRODUCT_INSTALL%\include\\r
-if NOT %ERRORLEVEL% == 0 (\r
- echo "ERROR on copying includes"\r
- exit 4\r
-)\r
-\r
-echo.\r
-echo --------------------------------------------------------------------------\r
-echo *** Installing libs\r
-echo --------------------------------------------------------------------------\r
-echo.\r
-\r
-xcopy %BUILD_DIR%\*.dll %PRODUCT_INSTALL%\lib\\r
-if NOT %ERRORLEVEL% == 0 (\r
- echo "ERROR on copying dll files"\r
- exit 5\r
-)\r
-\r
-xcopy %BUILD_DIR%\*.lib %PRODUCT_INSTALL%\lib\\r
-if NOT %ERRORLEVEL% == 0 (\r
- echo "ERROR on copying lib files"\r
- exit 6\r
-)\r
-\r
-copy %PRODUCT_INSTALL%\lib\pthreadVC2.lib %PRODUCT_INSTALL%\lib\pthreadVC2_64.lib\r
-if NOT %ERRORLEVEL% == 0 (\r
- echo "ERROR on renaming lib\pthreadVC2.lib"\r
- exit 7\r
-)\r
-\r
-echo.\r
-echo "########## END"\r
+@echo off
+
+echo ##########################################################################
+echo PThreads %VERSION%
+echo ##########################################################################
+
+IF NOT DEFINED SAT_DEBUG (
+ SET SAT_DEBUG=0
+)
+
+SET PRODUCT_BUILD_TYPE=Release
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=Debug
+)
+
+set PLATFORM_TARGET=x64
+if defined SALOME_APPLICATION_NAME if %SALOME_APPLICATION_NAME% == URANIE (
+ set PLATFORM_TARGET=Win32
+)
+
+if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
+if NOT exist "%PRODUCT_INSTALL%\lib" mkdir %PRODUCT_INSTALL%\lib
+if NOT exist "%PRODUCT_INSTALL%\include" mkdir %PRODUCT_INSTALL%\include
+
+REM clean BUILD directory
+if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
+mkdir %BUILD_DIR%
+
+robocopy %SOURCE_DIR% %BUILD_DIR% /E /NP /NFL /NDL /NS /NC
+if NOT %ERRORLEVEL% == 1 (
+ echo ERROR when copying archive %ERRORLEVEL%
+ exit 1
+)
+
+cd %BUILD_DIR%
+
+REM Upgrade to current version of MSVC
+echo.
+echo *** devenv %BUILD_DIR%\pthread.sln /upgrade
+devenv %BUILD_DIR%\pthread.sln /upgrade
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on devenv
+ exit 2
+)
+
+REM Compilation
+echo.
+echo *** %BUILD_DIR%\pthread.sln /t:build /p:Configuration=%PRODUCT_BUILD_TYPE%;Platform=%PLATFORM_TARGET%
+
+msbuild %BUILD_DIR%\pthread.sln /t:build /p:Configuration=%PRODUCT_BUILD_TYPE%;Platform=%PLATFORM_TARGET%
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on msbuild
+ exit 3
+)
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** Installing includes
+echo --------------------------------------------------------------------------
+echo.
+
+xcopy %BUILD_DIR%\*.h %PRODUCT_INSTALL%\include\
+if NOT %ERRORLEVEL% == 0 (
+ echo "ERROR on copying includes"
+ exit 4
+)
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** Installing libs
+echo --------------------------------------------------------------------------
+echo.
+
+xcopy %BUILD_DIR%\*.dll %PRODUCT_INSTALL%\lib\
+if NOT %ERRORLEVEL% == 0 (
+ echo "ERROR on copying dll files"
+ exit 5
+)
+
+xcopy %BUILD_DIR%\*.lib %PRODUCT_INSTALL%\lib\
+if NOT %ERRORLEVEL% == 0 (
+ echo "ERROR on copying lib files"
+ exit 6
+)
+
+copy %PRODUCT_INSTALL%\lib\pthreadVC2.lib %PRODUCT_INSTALL%\lib\pthreadVC2_%PLATFORM_TARGET%.lib
+if NOT %ERRORLEVEL% == 0 (
+ echo "ERROR on renaming lib\pthreadVC2.lib"
+ exit 7
+)
+
+echo.
+echo "########## END"
--- /dev/null
+@echo off
+
+echo ##########################################################################
+echo zlib %VERSION%
+echo ##########################################################################
+
+IF NOT DEFINED SAT_DEBUG (
+ SET SAT_DEBUG=0
+)
+
+SET PRODUCT_BUILD_TYPE=Release
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=Debug
+)
+
+set PLATFORM_TARGET=x64
+if defined SALOME_APPLICATION_NAME if %SALOME_APPLICATION_NAME% == URANIE (
+ set PLATFORM_TARGET=Win32
+)
+
+if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
+REM clean BUILD directory
+if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
+mkdir %BUILD_DIR%
+
+cd %BUILD_DIR%
+set CMAKE_OPTIONS=
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE=%PRODUCT_BUILD_TYPE%
+if %PLATFORM_TARGET% == Win32 (
+ set CMAKE_OPTIONS=%CMAKE_OPTIONS% -A Win32 -Thost=x64 -DCMAKE_SYSTEM_VERSION=10.0.19041.0
+)
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR:STRING=%CMAKE_GENERATOR%
+
+set MSBUILDDISABLENODEREUSE=1
+
+echo.
+echo *********************************************************************
+echo *** %CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR%
+echo *********************************************************************
+echo.
+
+%CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR%
+if NOT %ERRORLEVEL% == 0 (
+ echo "ERROR on cmake"
+ exit 1
+)
+
+echo.
+echo *********************************************************************
+echo *** msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET% ALL_BUILD.vcxproj"
+echo *********************************************************************
+echo.
+
+msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET% ALL_BUILD.vcxproj
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on msbuild gmsh.vcxproj
+ exit 2
+)
+
+echo.
+echo *********************************************************************
+echo *** installation...
+echo *********************************************************************
+echo.
+
+msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=%PLATFORM_TARGET% INSTALL.vcxproj
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on msbuild INSTALL.vcxproj
+ exit 3
+)
+
+echo.
+echo ########## END
env.set('URANIE_VERSION', version)
if platform.system()=="Windows" :
- pass
- else :
env.set('URANIE_ROOT_DIR', prereq_dir)
uranie = env.get('URANIE_ROOT_DIR')
-
# URANIE PATH
env.set('URANIESYS', prereq_dir)
-
# PYTHON PATH
env.prepend('PYTHONPATH', os.path.join(uranie, 'lib', 'python'))
+ # LD LIBRARY PATH
+ env.prepend('PATH', os.path.join(uranie, 'lib'))
+ # ROOT PATH
+ root_env = env.get('ROOTSYS')
+ root_lib_env = os.path.join(root_env,'lib','root')
+ if os.path.isdir(root_lib_env):
+ env.prepend('ROOTSYSLIB', root_lib_env)
+ else:
+ env.prepend('ROOTSYSLIB', os.path.join(root_env,'lib'))
+ # PATH
+ env.prepend('PATH', os.path.join(uranie,'bin'))
+ env.prepend('PATH', os.path.join(root_env,'bin'))
+ # OPT
+ opt_env = os.path.join(uranie, 'OPT++','optpp-2.4','lib')
+ env.prepend('PATH', opt_env)
+
+ else :
+ env.set('URANIE_ROOT_DIR', prereq_dir)
+ uranie = env.get('URANIE_ROOT_DIR')
+ # URANIE PATH
+ env.set('URANIESYS', prereq_dir)
+ # PYTHON PATH
+ env.prepend('PYTHONPATH', os.path.join(uranie, 'lib', 'python'))
# LD LIBRARY PATH
env.prepend('LD_LIBRARY_PATH', os.path.join(uranie, 'lib'))
-
# ROOT PATH
root_env = env.get('ROOTSYS')
root_lib_env = os.path.join(root_env,'lib','root')
if platform.system() == "Windows":
env.prepend('PATH',os.path.join(prereq_dir, 'bin'))
env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'bin'))
+ env.prepend('CMAKE_PREFIX_PATH',os.path.join(prereq_dir))
+ env.set('CLING_STANDARD_PCH','none')
else:
env.prepend('PYTHONPATH',os.path.join(prereq_dir, 'lib'))
env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib'))
{
build_source : "script"
compil_script : "root-6.24.bat"
- depend : ['Python', 'boost', 'freetype', 'freeimage']
+ depend : ['Python', 'Cython', 'numpy']
patches : []
}
single_install_dir : "yes"
}
}
+
+version_1_2_11:
+{
+}
+version_1_2_11_win:
+{
+ archive_info : {archive_name : "zlib-" + $APPLICATION.products.zlib + ".tar.gz"}
+ compil_script : 'zlib-1.2.11.bat'
+}