forked from rime/weasel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.install.bat
47 lines (40 loc) · 1.73 KB
/
appveyor.install.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
setlocal
set nocache=0
if not exist boost.cached set nocache=1
if not exist %BOOST_ROOT% set nocache=1
git submodule init
git submodule update plum
rem librime v1.4.0
appveyor DownloadFile https://github.com/rime/librime/releases/download/1.4.0/rime.zip
7z x rime.zip * -olibrime\ | find "ing archive"
copy /Y librime\build\include\rime_*.h include\
copy /Y librime\build\lib\Release\rime.dll output\
if %nocache% == 1 (
pushd C:\Libraries
appveyor DownloadFile https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.7z
7z x boost_1_68_0.7z | find "ing archive"
cd boost_1_68_0
call .\bootstrap.bat
call .\b2.exe --prefix=%BOOST_ROOT% toolset=msvc-14.1 variant=release link=static threading=multi runtime-link=static define=BOOST_USE_WINAPI_VERSION=0x0501 cxxflags="/Zc:threadSafeInit- " --with-date_time --with-filesystem --with-locale --with-regex --with-system --with-thread --with-serialization -q -d0 install
xcopy /e /i /y /q %BOOST_ROOT%\include\boost-1_68\boost %BOOST_ROOT%\boost
xcopy /e /i /y /q %BOOST_ROOT%\lib %BOOST_ROOT%\stage\lib
call .\b2.exe --prefix=%BOOST_ROOT%_x64 toolset=msvc-14.1 variant=release link=static threading=multi runtime-link=static address-model=64 define=BOOST_USE_WINAPI_VERSION=0x0502 cxxflags="/Zc:threadSafeInit- " --with-date_time --with-filesystem --with-locale --with-regex --with-system --with-thread --with-serialization -q -d0 install
xcopy /e /i /y /q %BOOST_ROOT%_x64\lib %BOOST_ROOT%\stage_x64\lib
popd
if %ERRORLEVEL% NEQ 0 goto ERROR
date /t > boost.cached & time /t >> boost.cached
echo.
echo Boost libraries installed.
echo.
goto EXIT
) else (
echo.
echo Last build date of cache is
type boost.cached
echo.
goto EXIT
)
:ERROR
set EXITCODE=%ERRORLEVEL%
:EXIT
exit /b %EXITCODE%