build scripts

This commit is contained in:
D4ve-R
2023-05-19 10:32:20 +02:00
parent fc29710c1d
commit 809f3463f0
2 changed files with 1025 additions and 939 deletions
+984 -939
View File
File diff suppressed because it is too large Load Diff
+41
View File
@@ -478,6 +478,47 @@ set DEPENDENCY_NAME=Eigen
set DEPENDENCY_DIR=%INSTALL_DIR%\%DEPENDENCY_NAME% set DEPENDENCY_DIR=%INSTALL_DIR%\%DEPENDENCY_NAME%
call :GitCloneAndCheckoutRevision https://gitlab.com/libeigen/eigen.git "%DEPENDENCY_DIR%" 3.3.9 call :GitCloneAndCheckoutRevision https://gitlab.com/libeigen/eigen.git "%DEPENDENCY_DIR%" 3.3.9
:tbb
set DEPENDENCY_NAME=tbb
set DEPENDENCY_DIR=%DEPS_DIR%\tbb
call :GitCloneAndCheckoutRevision https://github.com/oneapi-src/oneTBB.git "%DEPENDENCY_DIR%" v2021.9.0
IF NOT %ERRORLEVEL%==0 GOTO :Error
cd "%DEPENDENCY_DIR%"
:: git reset --hard
:: git apply --ignore-whitespace "%~dp0patches\cgal_no_zlib.patch"
call :RunCMake -DCMAKE_INSTALL_PREFIX="%INSTALL_DIR%\tbb" ^
-DTBB_TEST=OFF
IF NOT %ERRORLEVEL%==0 GOTO :Error
call :BuildSolution "%DEPENDENCY_DIR%\%BUILD_DIR%\oneTBB.sln" %BUILD_CFG%
IF NOT %ERRORLEVEL%==0 GOTO :Error
call :InstallCMakeProject "%DEPENDENCY_DIR%\%BUILD_DIR%" %BUILD_CFG%
IF NOT %ERRORLEVEL%==0 GOTO :Error
:usd
set DEPENDENCY_NAME=usd
set DEPENDENCY_DIR=%DEPS_DIR%\usd
call :GitCloneAndCheckoutRevision https://github.com/PixarAnimationStudios/USD.git "%DEPENDENCY_DIR%" v23.05
IF NOT %ERRORLEVEL%==0 GOTO :Error
cd "%DEPENDENCY_DIR%"
:: git reset --hard
:: git apply --ignore-whitespace "%~dp0patches\cgal_no_zlib.patch"
call :RunCMake -DCMAKE_INSTALL_PREFIX="%INSTALL_DIR%\usd" ^
-DBOOST_ROOT="%DEPS_DIR%\boost_%BOOST_VER%" ^
-DTBB_ROOT_DIR="%INSTALL_DIR%\tbb" ^
-DPXR_ENABLE_PYTHON_SUPPORT=FALSE ^
-DPXR_ENABLE_GL_SUPPORT=FALSE ^
-DPXR_BUILD_IMAGING=FALSE ^
-DPXR_BUILD_TUTORIALS=FALSE ^
-DPXR_BUILD_EXAMPLES=FALSE ^
-DPXR_BUILD_USD_TOOLS=FALSE ^
-DPXR_BUILD_TESTS=FALSE ^
-DBOOST_LIBRARYDIR="%DEPS_DIR%\boost_%BOOST_VER%\stage\vs%VS_VER%-%VS_PLATFORM%\lib"
IF NOT %ERRORLEVEL%==0 GOTO :Error
call :BuildSolution "%DEPENDENCY_DIR%\%BUILD_DIR%\USD.sln" %BUILD_CFG%
IF NOT %ERRORLEVEL%==0 GOTO :Error
call :InstallCMakeProject "%DEPENDENCY_DIR%\%BUILD_DIR%" %BUILD_CFG%
IF NOT %ERRORLEVEL%==0 GOTO :Error
:Successful :Successful
echo. echo.
call "%~dp0\utils\cecho.cmd" 0 10 "%PROJECT_NAME% dependencies built." call "%~dp0\utils\cecho.cmd" 0 10 "%PROJECT_NAME% dependencies built."