forked from rime/weasel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor_build_boost.bat
57 lines (46 loc) · 1.16 KB
/
appveyor_build_boost.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
51
52
53
54
55
56
57
setlocal
set boost_compiled_libs=--with-date_time^
--with-filesystem^
--with-locale^
--with-regex^
--with-serialization^
--with-system^
--with-thread
set boost_build_options_common=toolset=msvc-14.1^
variant=release^
link=static^
threading=multi^
runtime-link=static^
cxxflags="/Zc:threadSafeInit- "
set boost_build_options_x86=%boost_build_options_common%^
define=BOOST_USE_WINAPI_VERSION=0x0501
set boost_build_options_x64=%boost_build_options_common%^
define=BOOST_USE_WINAPI_VERSION=0x0502^
address-model=64^
--stagedir=stage_x64
set nocache=0
if not exist boost.cached set nocache=1
if not exist %BOOST_ROOT%/stage set nocache=1
if not exist %BOOST_ROOT%/stage_x64 set nocache=1
if %nocache% == 1 (
pushd %BOOST_ROOT%
call .\bootstrap.bat
.\b2.exe %boost_build_options_x86% %boost_compiled_libs% -q -d0 stage
.\b2.exe %boost_build_options_x64% %boost_compiled_libs% -q -d0 stage
popd
if errorlevel 1 goto error
date /t > boost.cached & time /t >> boost.cached
echo.
echo Boost libraries installed.
echo.
) else (
echo.
echo Last build date of cache is
type boost.cached
echo.
)
goto exit
:error
set exitcode=%errorlevel%
:exit
exit /b %exitcode%