-
Notifications
You must be signed in to change notification settings - Fork 14
/
Compile.bat
32 lines (24 loc) · 1.19 KB
/
Compile.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
rem SET libgit2v="1.0.1"
rem SET libssh2v="1.9.0"
rem if NOT EXIST "%CD%\libgit2-%libgit2v%" bitsadmin /transfer mydownloadjob /download /priority FOREGROUND "https://github.com/libgit2/libgit2/archive/v%libgit2v%.zip" "%CD%\libgit2-%libgit2v%.zip"
rem if NOT EXIST "%CD%\libgit2-%libgit2v%" powershell Expand-Archive "%CD%\libgit2-%libgit2v%.zip" -DestinationPath "%CD%"
rem if NOT EXIST "%CD%\libssh2-%libssh2v% " bitsadmin /transfer mydownloadjob /download /priority FOREGROUND "https://github.com/libssh2/libssh2/archive/libssh2-%libssh2v%.zip" "%CD%\libssh2-%libssh2v%.zip"
rem if NOT EXIST "%CD%\libssh2-%libssh2v%" powershell Expand-Archive "%CD%\libssh2-%libssh2v%.zip" -DestinationPath "%CD%"
rem ren libssh2-libssh2-1.9.0 libssh2-1.9.0
cmake -E remove_directory build32W
cmake -E remove_directory build64W
del bin\Release\VanessaExtWin32.dll
del bin\Release\VanessaExtWin64.dll
mkdir build32W
cd build32W
cmake .. -A Win32 -DMySuffix2=32
cmake --build . --config Release
cd ..
mkdir build64W
cd build64W
cmake .. -A x64 -DMySuffix2=64
cmake --build . --config Release
cd ..
oscript .\tools\ZipLibrary.os
copy /b .\AddIn.zip .\Example\Templates\VanessaExt\Ext\Template.bin
oscript .\tools\Compile.os .\