-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbld.bat
executable file
·34 lines (28 loc) · 890 Bytes
/
bld.bat
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
setlocal EnableDelayedExpansion
rmdir /s /q internal-complibs
mkdir build
if errorlevel 1 exit 1
cd build
if errorlevel 1 exit 1
cmake -LAH -G "NMake Makefiles" ^
-DCMAKE_BUILD_TYPE:STRING="Release" ^
-DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON ^
-DBUILD_STATIC:BOOL=OFF ^
-DBUILD_SHARED:BOOL=ON ^
-DBUILD_TESTS:BOOL=ON ^
-DBUILD_BENCHMARKS:BOOL=OFF ^
-DDEACTIVATE_SNAPPY:BOOL=OFF ^
-DPREFER_EXTERNAL_LZ4:BOOL=ON ^
-DPREFER_EXTERNAL_ZLIB:BOOL=ON ^
-DPREFER_EXTERNAL_ZSTD:BOOL=ON ^
"%SRC_DIR%"
if errorlevel 1 exit 1
cmake --build . --config Release
if errorlevel 1 exit 1
ctest -C release
if errorlevel 1 exit 1
cmake --build . --target install --config Release
if errorlevel 1 exit 1
del %LIBRARY_BIN%\msvc*.dll