-
Notifications
You must be signed in to change notification settings - Fork 2
/
make.bat
37 lines (31 loc) · 959 Bytes
/
make.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
37
@echo off
echo build win32...
echo --------------------------------
cd %~dp0
if exist dist\build\win\win32 rmdir dist\build\win\win32 /s /q
mkdir dist\build\win\win32
cd dist\build\win\win32
cmake -G "Visual Studio 12 2013" -D package=win ../../../../
cmake --build ./ --config Release
echo.
echo build win64...
echo --------------------------------
cd %~dp0
if exist dist\build\win\win64 rmdir dist\build\win\win64 /s /q
mkdir dist\build\win\win64
cd dist\build\win\win64
cmake -G "Visual Studio 12 2013 Win64" -D package=win ../../../../
cmake --build ./ --config Release
echo.
echo package...
echo --------------------------------
cd %~dp0
if exist dist\win rmdir dist\win /s /q
mkdir dist\win
mkdir dist\win\win64
mkdir dist\win\win32
REM 拷贝生成的dll到对应位置
copy dist\build\win\win64\foobar\Release\foobar.dll dist\win\win64\foobar.dll
copy dist\build\win\win32\foobar\Release\foobar.dll dist\win\win32\foobar.dll
echo all done
@pause