]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
TTK windows buildé
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 6 Oct 2022 13:52:28 +0000 (15:52 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 6 Oct 2022 13:52:28 +0000 (15:52 +0200)
applications/SALOME-master-windows.pyconf
products/compil_scripts/TTK.bat [new file with mode: 0644]

index c623c72c805729fa60eec0fb55f507c454e3630e..51ecb324830fad1ddde5486fc30e08b55b6ece9b 100644 (file)
@@ -44,7 +44,7 @@ APPLICATION :
         cgns : '4.2.0'
         chardet : '3.0.4'
         click : '7.0'
-        cmake : '3.12.1'
+        cmake : '3.24.2'
         colorama: '0.4.1'
         cppunit : '1.13.2'
         cycler : '0.10.0'
diff --git a/products/compil_scripts/TTK.bat b/products/compil_scripts/TTK.bat
new file mode 100644 (file)
index 0000000..7d0cf4a
--- /dev/null
@@ -0,0 +1,76 @@
+@echo off
+
+echo ##########################################################################
+echo TTK %VERSION%
+echo ##########################################################################
+
+IF NOT DEFINED SAT_DEBUG (
+  SET SAT_DEBUG=0
+)
+
+SET PRODUCT_BUILD_TYPE=Release
+
+REM TODO: NGH: not Tested yet
+if %SAT_DEBUG% == 1 (
+  set PRODUCT_BUILD_TYPE=Debug
+)
+
+if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
+
+REM clean BUILD directory
+if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
+mkdir %BUILD_DIR%
+
+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_INSTALL_LIBDIR:STRING=lib
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DTTK_BUILD_PARAVIEW_PLUGINS=ON
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dembree_DIR:PATH=%EMBREE_ROOT_DIR:\=/%/lib/cmake/embree-3.12.2
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DEMBREE_INCLUDE_DIR=%EMBREE_ROOT_DIR:\=/%/include
+set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64"
+
+
+cd %BUILD_DIR%
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** %CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR%
+echo --------------------------------------------------------------------------
+
+%CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR%
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on cgnslib
+    exit 1
+)
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** msbuild %MAKE_OPTIONS% /p:Configuration=Release ALL_BUILD.vcxproj
+echo --------------------------------------------------------------------------
+
+msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 ALL_BUILD.vcxproj
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on msbuild ALL_BUILD.vcxproj
+    exit 2
+)
+
+copy src\%PRODUCT_BUILD_TYPE%\cgnsdll.dll src\cgnsdll.dll
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on copying cgnsdll.dll
+    exit 21
+)
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 INSTALL.vcxproj
+echo --------------------------------------------------------------------------
+
+msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 INSTALL.vcxproj
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on msbuild INSTALL.vcxproj
+    exit 3
+)
+
+echo.
+echo ########## END