Skip to content

Commit c7ce66f

Browse files
committed
feat(appveyor): install RIME_PLUGINS [skip travis]
1 parent c857639 commit c7ce66f

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

appveyor.install.bat

+32-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
setlocal
22

3+
set boost_build_options=toolset=msvc-14.0^
4+
variant=release^
5+
link=static^
6+
threading=multi^
7+
runtime-link=static^
8+
define=BOOST_USE_WINAPI_VERSION=0x0501^
9+
cxxflags="/Zc:threadSafeInit- "^
10+
--with-date_time^
11+
--with-filesystem^
12+
--with-locale^
13+
--with-regex^
14+
--with-system^
15+
--with-thread
16+
317
set nocache=0
418

519
if not exist thirdparty.cached set nocache=1
@@ -11,7 +25,7 @@ if %nocache% == 1 (
1125
7z x boost_1_68_0.7z | find "ing archive"
1226
cd boost_1_68_0
1327
call .\bootstrap.bat
14-
call .\b2.exe --prefix=%BOOST_ROOT% toolset=msvc-14.0 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 -q -d0 install
28+
call .\b2.exe --prefix=%BOOST_ROOT% %boost_build_options% -q -d0 install
1529
xcopy /e /i /y /q %BOOST_ROOT%\include\boost-1_68\boost %BOOST_ROOT%\boost
1630
popd
1731
if %ERRORLEVEL% NEQ 0 goto ERROR
@@ -23,17 +37,32 @@ if %nocache% == 1 (
2337
echo.
2438
echo Thirdparty libraries installed.
2539
echo.
26-
goto EXIT
2740
) else (
2841
echo.
2942
echo Last build date of cache is
3043
type thirdparty.cached
3144
echo.
32-
goto EXIT
3345
)
3446

47+
if defined RIME_PLUGINS (
48+
for %%s in (%RIME_PLUGINS%) do call :install_plugin %%s
49+
)
50+
51+
goto EXIT
52+
3553
:ERROR
3654
set EXITCODE=%ERRORLEVEL%
3755

3856
:EXIT
3957
exit /b %EXITCODE%
58+
59+
:install_plugin
60+
set slug=%1
61+
echo "plugin: %slug%"
62+
set plugin_project=%slug:*/=%
63+
set plugin_dir=plugins/%plugin_project:librime-=%
64+
git clone --depth 1 "https://github.com/%slug%.git" %plugin_dir%
65+
if exist %plugin_dir%\appveyor.install.bat (
66+
call %plugin_dir%\appveyor.install.bat
67+
)
68+
exit /b

0 commit comments

Comments
 (0)