-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_sword.bat
36 lines (30 loc) · 957 Bytes
/
build_sword.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
35
36
REM *** SWORD ***
git --git-dir=sword/.git checkout %1
mkdir build
del /s /f /q build\sword
mkdir build\sword
set argC=0
for %%x in (%*) do Set /A argC+=1
if %argC% equ 3 (
set VS=%3
) else (
set VS="16 2019"
)
cmake -B build\sword -G "Visual Studio %VS%" -A Win32 ^
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE ^
-DZLIB_LIBRARY=%cd%\%2\zlib.lib ^
-DZLIB_INCLUDE_DIR=%cd%\zlib ^
-DBZIP2_LIBRARY=%cd%\%2\libbz2.lib ^
-DBZIP2_INCLUDE_DIR=%cd%\bzip2 ^
-DXZ_LIBRARY=%cd%\%2\liblzma.lib ^
-DXZ_INCLUDE_DIR=%cd%\xz\src\liblzma\api ^
-DCURL_LIBRARY=%cd%\%2\libcurl_imp.lib ^
-DCURL_INCLUDE_DIR=%cd%\curl\include ^
-DCURLAVAILABLE=TRUE ^
-DCMAKE_DISABLE_FIND_PACKAGE_ICU=TRUE ^
-DCMAKE_BUILD_TYPE=Release ^
sword
devenv build\sword\libsword.sln /Build Release /Project sword
dir build\sword\Release\
copy build\sword\Release\sword.dll %2\
copy build\sword\Release\sword.lib %2\