forked from zhangf911/avim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen_sln.bat
50 lines (34 loc) · 979 Bytes
/
gen_sln.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
echo setting build environment
echo make sure your boost installed on c:\boost
echo make sure your openssl installed on c:\openssl
echo make sure protobuf is built first !!!!
:: 每人的硬盘及使用情况都不一样,请勿统一目录,
:: 各位根据自家情况把boost根目录设为BOOST_ROOT环境变量,OpenSSL同理
set BOOST_ROOT=%BOOST_ROOT%
set OPENSSL_ROOT=%OPENSSL_ROOT_DIR%
set PROTOBUF_SRC_ROOT_FOLDER=%~dp0\third_party\protobuf-2.6.1\
echo "making build directory"
md build
cd build
ECHO 1.Win64 build
ECHO 2.Win32 build
ECHO 3.Exit script
ECHO.
CHOICE /C 123 /M "Enter your choice:"
:: Note - list ERRORLEVELS in decreasing order
IF ERRORLEVEL 3 GOTO ENDSCRIPT
IF ERRORLEVEL 2 GOTO Win32
IF ERRORLEVEL 1 GOTO Win64
echo "calling cmake to generate MSVC projects now!"
:Win64
cmake.exe %~dp0 -G "Visual Studio 12 2013 Win64"
GOTO End
:Win32
cmake.exe %~dp0 -G "Visual Studio 12 2013"
GOTO End
ENDSCRIPT:
GOTO End
:End
cd ..
pause