-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathmake.bat
50 lines (44 loc) · 1.24 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
cd %~dp0
:select_action
if "%1" == "" goto usage
if /i %1 == win64 goto make_win64
if /i %1 == xp goto make_xp
if /i %1 == test goto make_test
if /i %1 == clean goto make_clean
goto usage
:usage
echo Usage:
echo set LIBEVENT_ROOT_DIR="%appdata%\lib\libevent"
echo set GLOG_ROOT_DIR="%appdata%\lib\glog"
echo make win64
echo make xp
echo make test
echo make clean
goto :eof
:make_win64
md build.win64
cd build.win64
cmake -DLIBEVENT_ROOT_DIR="%LIBEVENT_ROOT_DIR%" -DGLOG_ROOT_DIR="%GLOG_ROOT_DIR%" -DPOOLAGENT__STATIC_LINKING_VC_LIB=ON -DPOOLAGENT__USE_GLOG=ON -DPOOLAGENT__GLOG_TO_STDOUT=ON -A x64 ..
start PoolAgent.sln
cd ..
goto :eof
:make_xp
md build.xp
cd build.xp
cmake -DLIBEVENT_ROOT_DIR="%LIBEVENT_ROOT_DIR%" -DGLOG_ROOT_DIR="%GLOG_ROOT_DIR%" -DPOOLAGENT__STATIC_LINKING_VC_LIB=ON -DPOOLAGENT__USE_GLOG=ON -DPOOLAGENT__GLOG_TO_STDOUT=ON -A x86 -T v141_xp ..
start PoolAgent.sln
cd ..
goto :eof
:make_test
echo ------ test.win64
build.win64\Release\unittest
echo ------ test.xp
build.xp\Release\unittest
goto :eof
:make_clean
echo ------ remove build.win64
rd /s /q build.win64
echo ------ remove build.xp
rd /s /q build.xp
goto :eof