'EFICAS'
'EFICAS_TOOLS'
'ADAO'
+ 'PARAVISADDONS' : {tag: 'spns/20440'}
'CEATESTBASE' : {tag: 'SalomeV9'}
}
profile :
single_install_dir : "yes"
}
}
+
+__overwrite__ :
+[
+ {
+ __condition__ : "APPLICATION.debug == 'yes'"
+ 'APPLICATION.products.numpy' : {tag : '1.16.4', section: 'version_1_16_4_win_dbg'}
+ 'APPLICATION.products.sphinxintl' : {tag : '2.0.0', section: 'version_2_0_0_win_dbg'}
+ }
+]
mkdir %BUILD_DIR%
SET PRODUCT_BUILD_TYPE=Release
-REM TODO: NGH: not Tested yet
-REM if %SAT_DEBUG% == 1 (
-REM set PRODUCT_BUILD_TYPE=Debug
-REM )
-
-set CMAKE_OPTIONS=
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=Debug
+)
set PVLIBVERSION=5.8
set python_name=python%PYTHON_VERSION%
+set CMAKE_OPTIONS=
REM common compiler and install settings
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_VERBOSE_MAKEFILE=ON
echo PyQt %VERSION%
echo ##########################################################################
+IF NOT DEFINED SAT_DEBUG (
+ SET SAT_DEBUG=0
+)
+
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
REM clean BUILD directory
if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
echo *** python configure.py
echo --------------------------------------------------------------------------
-python configure.py --confirm-license --no-designer-plugin --bindir=%PRODUCT_INSTALL%\bin --destdir=%PRODUCT_INSTALL%\lib\%python_name%\site-packages --sipdir=%PRODUCT_INSTALL%\sip --spec=win32-msvc --sip-incdir=%sip_incdir% --pyuic5-interpreter=%python_exe% --disable QtNfc --disable=QtNetwork --disable=QtWebSockets 2>&1
+set PRODUCT_BUILD_TYPE=
+if %SAT_DEBUG% == 1 (
+ python configure.py --confirm-license --no-designer-plugin --debug --bindir=%PRODUCT_INSTALL%\bin --destdir=%PRODUCT_INSTALL%\lib\%python_name%\site-packages --sipdir=%PRODUCT_INSTALL%\sip --spec=win32-msvc --sip-incdir=%sip_incdir% --pyuic5-interpreter=%python_exe% --disable QtNfc --disable=QtNetwork --disable=QtWebSockets 2>&1
+) else (
+ python configure.py --confirm-license --no-designer-plugin --bindir=%PRODUCT_INSTALL%\bin --destdir=%PRODUCT_INSTALL%\lib\%python_name%\site-packages --sipdir=%PRODUCT_INSTALL%\sip --spec=win32-msvc --sip-incdir=%sip_incdir% --pyuic5-interpreter=%python_exe% --disable QtNfc --disable=QtNetwork --disable=QtWebSockets 2>&1
+)
if NOT %ERRORLEVEL% == 0 (
echo ERROR on python configure.py
exit 1
exit 6
)
-REM on purpose, we don't use mklink
+REM on purpose, we don't use mklink - requires admin rights...
copy /Y /B %PRODUCT_INSTALL%\python%LIB_TAG%.exe %PRODUCT_INSTALL%\python3.exe
-
-REM some prequistes the DLL to be renamed
-REM on purpose we don't use mklink, since this requires the user to have his node set in developer mode.
-cd %PRODUCT_INSTALL%\
-if %SAT_DEBUG% == 1 (
- FOR %%G IN (python3 python python36 sqlite3 pyshellext) DO copy /Y /B %PRODUCT_INSTALL%\%%G%LIB_TAG%.dll %PRODUCT_INSTALL%\%%G.dll
-)
-
-REM some of the products expect .lib instead of _d.lib...
-REM on purpose we don't use mklink, since this requires the user to have his node set in developer mode.
-cd %PRODUCT_INSTALL%\libs\
if %SAT_DEBUG% == 1 (
- SETLOCAL ENABLEDELAYEDEXPANSION
- FOR %%f IN (*_d.lib) do (
- set X=%%f
- copy /Y /B %PRODUCT_INSTALL%\libs\%%f %PRODUCT_INSTALL%\libs\!X:_d.lib=.lib!
- copy /Y /B %PRODUCT_INSTALL%\%%f %PRODUCT_INSTALL%\!X:_d.lib=.lib!
- )
- ENDLOCAL
+ copy /Y /B %PRODUCT_INSTALL%\python_d.exe %PRODUCT_INSTALL%\python.exe
+ REM otherwise OmniORB does not compile...
+ copy /Y /B %PRODUCT_INSTALL%\libs\python36_d.lib %PRODUCT_INSTALL%\libs\python36.lib
+ copy /Y /B %PRODUCT_INSTALL%\libs\python_d.lib %PRODUCT_INSTALL%\libs\python.lib
)
cd %PRODUCT_INSTALL%\
-powershell -Command "Get-ChildItem *_d.exe| Rename-Item -newname { $_.name -replace '_d.exe','.exe' }"
-REM powershell -Command "Get-ChildItem *_d.dll| Rename-Item -newname { $_.name -replace '_d.dll','.dll' }"
-REM powershell -Command "Get-ChildItem *_d.pdb| Rename-Item -newname { $_.name -replace '_d.pdb','.pdb' }"
-REM powershell -Command "Get-ChildItem *_d.pyd| Rename-Item -newname { $_.name -replace '_d.pyd','.pyd' }"
-REM powershell -Command "Get-ChildItem *_d.exp| Rename-Item -newname { $_.name -replace '_d.exp','.exp' }"
-REM powershell -Command "Get-ChildItem *_d.ilk| Rename-Item -newname { $_.name -replace '_d.ilk','.ilk' }"
REM Add PIP support
set PYTHONHOME=%PRODUCT_INSTALL%
SET PRODUCT_BUILD_TYPE=release
REM TODO: NGH: not Tested yet
-REM if %SAT_DEBUG% == 1 (
-REM set PRODUCT_BUILD_TYPE=debug
-REM )
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=debug
+)
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
if NOT exist "%PRODUCT_INSTALL%\include" mkdir %PRODUCT_INSTALL%\include
\r
SET PRODUCT_BUILD_TYPE=Release\r
REM TODO: NGH: not Tested yet\r
-REM if %SAT_DEBUG% == 1 (\r
-REM set PRODUCT_BUILD_TYPE=Debug\r
-REM )\r
+if %SAT_DEBUG% == 1 (\r
+ set PRODUCT_BUILD_TYPE=Debug\r
+)\r
\r
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%\r
\r
echo *** Launching "python.exe setup.py build"\r
echo --------------------------------------------------------------------------\r
set BUILD_OPT=\r
-if %SAT_DEBUG% == 1 (\r
- set BUILD_OPT=--debug\r
-)\r
+REM not built by OCCT - see spns #20292 attached Excel document\r
+REM if %SAT_DEBUG% == 1 (\r
+REM set BUILD_OPT=--debug\r
+REM)\r
\r
%PYTHON_ROOT_DIR%\python.exe setup.py build %BUILD_OPT%\r
\r
echo Installation folder: %PYTHON_ROOT_DIR%>> %PRODUCT_INSTALL%\README.txt\r
\r
echo.\r
-echo ########## END
\ No newline at end of file
+echo ########## END\r
SET PRODUCT_BUILD_TYPE=Release
REM TODO: NGH: not Tested yet
-REM if %SAT_DEBUG% == 1 (
-REM set PRODUCT_BUILD_TYPE=Debug
-REM )
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=Debug
+)
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
REM clean BUILD directory
cd %BUILD_DIR%
REM Install dir
-set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"
+set CMAKE_OPTIONS=
+SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE:STRING=%PRODUCT_BUILD_TYPE%
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"
echo.
SET PRODUCT_BUILD_TYPE=Release
REM TODO: NGH: not Tested yet
-REM if %SAT_DEBUG% == 1 (
-REM set PRODUCT_BUILD_TYPE=Debug
-REM )
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=Debug
+)
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
if NOT exist "%PRODUCT_INSTALL%\include" mkdir %PRODUCT_INSTALL%\include
echo.
echo *** COPY FreeImage DLL to %PRODUCT_INSTALL%
-copy /Y %BUILD_DIR%\Dist\x64\FreeImage.dll %PRODUCT_INSTALL%\bin\FreeImage.dll
-copy /Y %BUILD_DIR%\Dist\x64\FreeImage.lib %PRODUCT_INSTALL%\lib\FreeImage.lib
-copy /Y %BUILD_DIR%\Dist\x64\FreeImage.h %PRODUCT_INSTALL%\include\FreeImage.h
-copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\FreeImagePlus.dll %PRODUCT_INSTALL%\bin\FreeImagePlus.dll
-copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\FreeImagePlus.lib %PRODUCT_INSTALL%\lib\FreeImagePlus.lib
-copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\FreeImagePlus.h %PRODUCT_INSTALL%\include\FreeImagePlus.h
+if %SAT_DEBUG% == 1 (
+ copy /Y %BUILD_DIR%\Dist\x64\*.dll %PRODUCT_INSTALL%\bin\
+ copy /Y %BUILD_DIR%\Dist\x64\*.lib %PRODUCT_INSTALL%\lib\
+ copy /Y %BUILD_DIR%\Dist\x64\*.h %PRODUCT_INSTALL%\include\
+ copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\*.dll %PRODUCT_INSTALL%\bin\
+ copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\*.lib %PRODUCT_INSTALL%\lib\
+ copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\*.h %PRODUCT_INSTALL%\include\
+) else (
+ copy /Y %BUILD_DIR%\Dist\x64\FreeImage.dll %PRODUCT_INSTALL%\bin\FreeImage.dll
+ copy /Y %BUILD_DIR%\Dist\x64\FreeImage.lib %PRODUCT_INSTALL%\lib\FreeImage.lib
+ copy /Y %BUILD_DIR%\Dist\x64\FreeImage.h %PRODUCT_INSTALL%\include\FreeImage.h
+ copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\FreeImagePlus.dll %PRODUCT_INSTALL%\bin\FreeImagePlus.dll
+ copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\FreeImagePlus.lib %PRODUCT_INSTALL%\lib\FreeImagePlus.lib
+ copy /Y %BUILD_DIR%\Wrapper\FreeImagePlus\dist\x64\FreeImagePlus.h %PRODUCT_INSTALL%\include\FreeImagePlus.h
+)
taskkill /F /IM "mspdbsrv.exe"
)\r
\r
SET PRODUCT_BUILD_TYPE=Release\r
-REM TODO: NGH: not Tested yet\r
-REM if %SAT_DEBUG% == 1 (\r
-REM set PRODUCT_BUILD_TYPE=Debug\r
-REM )\r
+if %SAT_DEBUG% == 1 (\r
+ set PRODUCT_BUILD_TYPE=Debug\r
+)\r
\r
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%\r
\r
mkdir %BUILD_DIR%\r
\r
cd %BUILD_DIR%\r
+set CMAKE_OPTIONS=\r
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX=%PRODUCT_INSTALL%\r
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE=%PRODUCT_BUILD_TYPE%\r
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBUILD_SHARED_LIBS=ON\r
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE\r
-if defined CMAKE_GENERATOR (\r
- set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR=%CMAKE_GENERATOR%\r
-) else (\r
- set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"\r
-)\r
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"\r
set MSBUILDDISABLENODEREUSE=1\r
\r
echo.\r
\r
echo.\r
echo *********************************************************************\r
-echo *** msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% ALL_BUILD.vcxproj"\r
+echo *** msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% ALL_BUILD.vcxproj\r
echo *********************************************************************\r
echo.\r
\r
\r
echo.\r
echo *********************************************************************\r
-echo *** COPY Freetype DLL file from %BUILD_DIR% to %PRODUCT_INSTALL%\r
+echo *** COPY Freetype DLL files from %BUILD_DIR% to %PRODUCT_INSTALL%\r
echo *********************************************************************\r
echo.\r
if NOT exist "%PRODUCT_INSTALL%\bin" mkdir %PRODUCT_INSTALL%\bin\r
-copy /Y %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\Freetype.dll %PRODUCT_INSTALL%\bin\Freetype.dll \r
+if %SAT_DEBUG% == 0 (\r
+ copy /Y %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\Freetype.dll %PRODUCT_INSTALL%\bin\Freetype.dll\r
+) else (\r
+ copy /Y %BUILD_DIR%\%PRODUCT_BUILD_TYPE%\*.dll %PRODUCT_INSTALL%\bin\\r
+)\r
if NOT %ERRORLEVEL% == 0 (\r
echo ERROR when copying Freetype DLL\r
exit 2\r
SET PRODUCT_BUILD_TYPE=Release
REM TODO: NGH: not Tested yet
-REM if %SAT_DEBUG% == 1 (
-REM set PRODUCT_BUILD_TYPE=Debug
-REM )
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=Debug
+)
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
if NOT exist "%PRODUCT_INSTALL%\bin" mkdir %PRODUCT_INSTALL%\bin
)\r
\r
SET PRODUCT_BUILD_TYPE=Release\r
-REM TODO: NGH: not Tested yet\r
-REM if %SAT_DEBUG% == 1 (\r
-REM set PRODUCT_BUILD_TYPE=Debug\r
-REM )\r
+if %SAT_DEBUG% == 1 (\r
+ set PRODUCT_BUILD_TYPE=Debug\r
+)\r
\r
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%\r
\r
exit 3\r
)\r
\r
-REM some of the products like GUI expect .lib instead of _D.lib...\r
-cd %PRODUCT_INSTALL%\lib\\r
-if %SAT_DEBUG% == 1 (\r
- SETLOCAL ENABLEDELAYEDEXPANSION\r
- FOR %%f IN (*_D.lib) do (\r
- set X=%%f\r
- copy /Y /B %PRODUCT_INSTALL%\lib\%%f %PRODUCT_INSTALL%\lib\!X:_D.lib=.lib!\r
- )\r
- ENDLOCAL\r
-)\r
-\r
-REM Symbolic links require being in developer mode\r
-cd %PRODUCT_INSTALL%\bin\\r
-if %SAT_DEBUG% == 1 (\r
- SETLOCAL ENABLEDELAYEDEXPANSION\r
- FOR %%f IN (*_D.dll) do (\r
- set X=%%f\r
- copy /Y /B %PRODUCT_INSTALL%\bin\%%f %PRODUCT_INSTALL%\bin\!X:_D.dll=.dll!\r
- )\r
- ENDLOCAL\r
-)\r
-\r
taskkill /F /IM "mspdbsrv.exe"\r
\r
-\r
-\r
echo.\r
echo ########## END\r
)
SET PRODUCT_BUILD_TYPE=Release
-REM TODO: NGH: not Tested yet
-REM if %SAT_DEBUG% == 1 (
-REM set PRODUCT_BUILD_TYPE=Debug
-REM )
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=Debug
+)
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
REM clean BUILD directory
set PATH=%PATH%;%CYGWIN_ROOT_DIR%\bin
-SET CMAKE_OPTIONS=-DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%
+SET CMAKE_OPTIONS=
+SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%
SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE:STRING=%PRODUCT_BUILD_TYPE%
SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_EXECUTABLE=%PYTHON_ROOT_DIR:\=/%/python.exe
taskkill /F /IM "mspdbsrv.exe"
echo.
-echo ########## END
\ No newline at end of file
+echo ########## END
)
SET PRODUCT_BUILD_TYPE=Release
-REM TODO: NGH: not Tested yet
-REM if %SAT_DEBUG% == 1 (
-REM set PRODUCT_BUILD_TYPE=Debug
-REM )
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=Debug
+)
set GFORTRAN_EXE=%MINGW_ROOT_DIR%\bin\gfortran.exe
echo *** Setting local path to %MINGW_ROOT_DIR%\bin
echo ************************************************
set path=%MINGW_ROOT_DIR%\bin;%path%
-set CMAKE_OPTIONS=%SOURCE_DIR%
-set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX=%PRODUCT_INSTALL%
+set CMAKE_OPTIONS=
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX=%PRODUCT_INSTALL:\=/%
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE=%PRODUCT_BUILD_TYPE%
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBUILD_SHARED_LIBS:BOOL=ON
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_CXX_FLAGS=-fPIC
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_Fortran_COMPILER=%MINGW_ROOT_DIR:\=/%/bin/gfortran.exe
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_EXE_LINKER_FLAGS="-Wl,--allow-multiple-definition"
set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_SH="CMAKE_SH-NOTFOUND"
-if defined CMAKE_GENERATOR (
- set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR=%CMAKE_GENERATOR%
-) else (
- set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="MinGW Makefiles"
-)
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="MinGW Makefiles"
+
set MSBUILDDISABLENODEREUSE=1
echo.
+echo *********************************************************************
echo *** cmake %CMAKE_OPTIONS}%
-%CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS%
+echo *********************************************************************
+%CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR%
if NOT %ERRORLEVEL% == 0 (
echo "ERROR on cmake"
exit 1
)
+
echo.
echo *********************************************************************
-echo *** mingw32-make"
+echo *** mingw32-make
echo *********************************************************************
echo.
-
mingw32-make
if NOT %ERRORLEVEL% == 0 (
- echo ERROR on msbuild ALL_BUILD.vcxproj
+ echo ERROR on mingw32-make
exit 2
)
echo.
mingw32-make install
if NOT %ERRORLEVEL% == 0 (
- echo ERROR on msbuild INSTALL.vcxproj
+ echo ERROR on mingw32-make install
exit 3
)
)\r
\r
SET PRODUCT_BUILD_TYPE=Release\r
-REM TODO: NGH: not Tested yet\r
-REM if %SAT_DEBUG% == 1 (\r
-REM set PRODUCT_BUILD_TYPE=Debug\r
-REM )\r
+if %SAT_DEBUG% == 1 (\r
+ set PRODUCT_BUILD_TYPE=Debug\r
+)\r
\r
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%\r
REM clean BUILD directory\r
if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%\r
mkdir %BUILD_DIR%\r
\r
-SET CMAKE_OPTIONS=-DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%\r
+SET CMAKE_OPTIONS=\r
+SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/%\r
SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE:STRING=%PRODUCT_BUILD_TYPE%\r
SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DMEDFILE_BUILD_STATIC_LIBS:BOOL=OFF\r
SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DMEDFILE_BUILD_SHARED_LIBS:BOOL=ON\r
\r
SET PRODUCT_BUILD_TYPE=Release\r
REM TODO: NGH: not Tested yet\r
-REM if %SAT_DEBUG% == 1 (\r
-REM set PRODUCT_BUILD_TYPE=Debug\r
-REM )\r
+if %SAT_DEBUG% == 1 (\r
+ set PRODUCT_BUILD_TYPE=Debug\r
+)\r
\r
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%\r
REM clean BUILD directory\r
)\r
\r
SET PRODUCT_BUILD_TYPE=Release\r
-REM TODO: NGH: not Tested yet\r
-REM if %SAT_DEBUG% == 1 (\r
-REM set PRODUCT_BUILD_TYPE=Debug\r
-REM )\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
)
SET PRODUCT_BUILD_TYPE=-release
-REM TODO: NGH: not Tested yet
-REM if %SAT_DEBUG% == 1 (
-REM set PRODUCT_BUILD_TYPE=-debug
-REM )
+if %SAT_DEBUG% == 1 (
+ set PRODUCT_BUILD_TYPE=-debug-and-release
+)
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
REM clean BUILD directory
set QT_OPTIONS=%QT_OPTIONS% -no-angle -opengl desktop -nomake examples -nomake tests
set QT_OPTIONS=%QT_OPTIONS% -skip qtwebengine -skip wayland -skip qtgamepad -no-openssl
set QT_OPTIONS=%QT_OPTIONS% -prefix %PRODUCT_INSTALL%
+echo **** call configure %QT_OPTIONS%
call configure %QT_OPTIONS%
if NOT %ERRORLEVEL% == 0 (
echo "ERROR on configure"
echo qwt %VERSION%\r
echo ##########################################################################\r
\r
+IF NOT DEFINED SAT_DEBUG (\r
+ SET SAT_DEBUG=0\r
+)\r
+\r
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%\r
\r
if exist "%BUILD_DIR%" rmdir /Q /S "%BUILD_DIR%"\r
move /y %tmpfile% designer.pro\r
cd ..\r
\r
-rem # Desactivation du mode Debug\r
-call :GETTEMPNAME\r
-attrib -R qwtbuild.pri\r
-sed "s|\(CONFIG[[:space:]]*+=[[:space:]]*debug_and_release\)|#\1|g" < qwtbuild.pri > %tmpfile%\r
-move /y %tmpfile% qwtbuild.pri\r
-sed "s|\(CONFIG[[:space:]]*+=[[:space:]]*build_all\)|#\1|g" < qwtbuild.pri > %tmpfile%\r
-move /y %tmpfile% qwtbuild.pri\r
+REM remove debug build only if release build is requested\r
+if %SAT_DEBUG% == 0 (\r
+ call :GETTEMPNAME\r
+ attrib -R qwtbuild.pri\r
+ sed "s|\(CONFIG[[:space:]]*+=[[:space:]]*debug_and_release\)|#\1|g" < qwtbuild.pri > %tmpfile%\r
+ move /y %tmpfile% qwtbuild.pri\r
+ sed "s|\(CONFIG[[:space:]]*+=[[:space:]]*build_all\)|#\1|g" < qwtbuild.pri > %tmpfile%\r
+ move /y %tmpfile% qwtbuild.pri\r
+)\r
\r
echo.\r
echo --------------------------------------------------------------------------\r
echo sip %VERSION%
echo ##########################################################################
+IF NOT DEFINED SAT_DEBUG (
+ SET SAT_DEBUG=0
+)
+
+
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 %SOURCE_DIR%
+xcopy * %BUILD_DIR%\ /E /I /Q
+cd %BUILD_DIR%
set python_name=python%PYTHON_VERSION%
echo Launching "python.exe configure.py"
echo --------------------------------------------------------------------------
-%PYTHON_ROOT_DIR%\python.exe configure.py -b %PRODUCT_INSTALL%\bin -d %PRODUCT_INSTALL%\lib\%python_name%\site-packages -e %PRODUCT_INSTALL%\include\%python_name% -v %PRODUCT_INSTALL%\sip -p win32-msvc
+if %SAT_DEBUG% == 1 (
+ %PYTHON_ROOT_DIR%\python_d.exe %SOURCE_DIR%\configure.py --debug -b %PRODUCT_INSTALL%\bin -d %PRODUCT_INSTALL%\lib\%python_name%\site-packages -e %PRODUCT_INSTALL%\include\%python_name% -v %PRODUCT_INSTALL%\sip -p win32-msvc
+) else (
+ %PYTHON_ROOT_DIR%\python.exe configure.py -b %PRODUCT_INSTALL%\bin -d %PRODUCT_INSTALL%\lib\%python_name%\site-packages -e %PRODUCT_INSTALL%\include\%python_name% -v %PRODUCT_INSTALL%\sip -p win32-msvc
+)
+
if NOT %ERRORLEVEL% == 0 (
echo "ERROR on python configure.py "
exit 1
)
+
echo.
echo --------------------------------------------------------------------------
echo Launching "nmake"
--- /dev/null
+@echo off
+
+echo ##########################################################################
+echo sphinxintl %VERSION%
+echo ##########################################################################
+
+REM install in python directly
+SET INSTALL_CENTRALLY=1
+
+IF NOT DEFINED SAT_DEBUG (
+ SET SAT_DEBUG=0
+)
+
+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 %SOURCE_DIR%
+
+echo.
+echo --------------------------------------------------------------------------
+echo Launching "python.exe setup.py build"
+echo --------------------------------------------------------------------------
+set BUILD_OPT=
+if %SAT_DEBUG% == 1 (
+ set BUILD_OPT=--debug
+)
+
+%PYTHON_ROOT_DIR%\python.exe setup.py build %BUILD_OPT%
+
+echo.
+echo --------------------------------------------------------------------------
+echo Launching "python.exe setup.py install"
+echo --------------------------------------------------------------------------
+
+if %INSTALL_CENTRALLY% == 1 (
+ %PYTHON_ROOT_DIR%\python.exe setup.py install
+) else (
+ %PYTHON_ROOT_DIR%\python.exe setup.py install --single-version-externally-managed --root=/ --prefix=%PRODUCT_INSTALL% --install-lib=%PRODUCT_INSTALL%\lib\python%PYTHON_VERSION%\site-packages
+)
+
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on setup.py install
+ exit 3
+)
+
+echo.
+echo Product %PRODUCT_NAME% version: %VERSION%> %PRODUCT_INSTALL%\README.txt
+echo Installation folder: %PYTHON_ROOT_DIR%>> %PRODUCT_INSTALL%\README.txt
+
+echo.
+echo ########## END
compil_script : 'pip_install_whl' + $VARS.scriptExtension
archive_info : {archive_name : "sphinx_intl-" + $APPLICATION.products.sphinxintl + "_windows.tar.gz"}
}
+
+version_2_0_0_win_dbg :
+{
+ compil_script : 'sphinxintl.bat'
+ properties:
+ {
+ incremental : "yes"
+ pip : "no"
+ }
+}
\ No newline at end of file