-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathbuildDebug.cmd
More file actions
42 lines (36 loc) · 777 Bytes
/
buildDebug.cmd
File metadata and controls
42 lines (36 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
cd External
call buildDebug.cmd
if %ERRORLEVEL% NEQ 0 (
echo Failed to build ilmbase lib or alembic lib
exit 1
)
cd ..
SET depsdir=%cd%\External\install
SET installdir=%cd%
if "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
SET targetArch=ARM64
) else (
SET targetArch=x64
)
if exist build (
rmdir /s /q build
)
mkdir build
cd build
cmake .. ^
-A %targetArch% ^
-DCMAKE_GENERATOR_PLATFORM=%targetArch% ^
-DCMAKE_BUILD_TYPE=Debug ^
-DALEMBIC_DIR=%depsdir% ^
-DUSE_STATIC=ON ^
-DENABLE_DEPLOY=OFF ^
-DCMAKE_PREFIX_PATH=%depsdir% ^
-DCMAKE_INSTALL_PREFIX=%installdir% ^
-DCMAKE_CXX_FLAGS="/MP"
cmake --build . --target INSTALL --config Debug
if %ERRORLEVEL% NEQ 0 (
echo Failed to build ilmbase or alembic
exit 1
)
cd ..