diff options
Diffstat (limited to 'cmake/win-ci/vlc-plugin.cmd')
-rw-r--r-- | cmake/win-ci/vlc-plugin.cmd | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/cmake/win-ci/vlc-plugin.cmd b/cmake/win-ci/vlc-plugin.cmd new file mode 100644 index 0000000..7117980 --- /dev/null +++ b/cmake/win-ci/vlc-plugin.cmd @@ -0,0 +1,52 @@ +rem =============== BUILDING A VLC PLUGIN =============== + +md C:\vlc-temp + +"%WGET_BIN%" --quiet %VLC_TARBALL% -O C:\vlc-temp\vlcsdk.7z +if %errorlevel% neq 0 exit /b %errorlevel% + +"%SEVENZIP%" x C:\vlc-temp\vlcsdk.7z -oC:\vlc-temp +if %errorlevel% neq 0 exit /b %errorlevel% + +xcopy /S /E /Y "C:\vlc-temp\%VLC_DIR%\sdk\*" "%TOOLCHAIN_BIN%\.." +if %errorlevel% neq 0 exit /b %errorlevel% + +md build-%COMPILER%-%BUILD_TYPE%-%PLATFORM% +cd build-%COMPILER%-%BUILD_TYPE%-%PLATFORM% + +if NOT [%TOOLCHAIN_BIN%]==[] set PATH=%TOOLCHAIN_BIN%;%PATH:C:\Program Files\Git\usr\bin;=% + +cmake -G "%GENERATOR%"^ + -DCMAKE_BUILD_TYPE=%BUILD_TYPE%^ + -DCMAKE_PREFIX_PATH=%CMAKEPREFIXPATH%^ + -DCMAKE_INSTALL_PREFIX=libADLMIDI^ + -DWITH_OLD_UTILS=ON ^ + -DWITH_GENADLDATA=OFF ^ + -DlibADLMIDI_STATIC=%BUILD_STATIC% ^ + -DlibADLMIDI_SHARED=%BUILD_SHARED% ^ + -DWITH_MIDIPLAY=%BUILD_MIDIPLAY% ^ + -DWITH_VLC_PLUGIN=%VLC_PLUGIN% ^ + -DVLC_PLUGIN_NOINSTALL=ON .. +if %errorlevel% neq 0 exit /b %errorlevel% + +if [%COMPILER_FAMILY%]==[MinGW] ( + cmake --build . --config %BUILD_TYPE% -- -j 2 + if %errorlevel% neq 0 exit /b %errorlevel% +) + +if [%COMPILER_FAMILY%]==[MinGW] ( + mingw32-make install + if %errorlevel% neq 0 exit /b %errorlevel% +) + +if [%COMPILER_FAMILY%]==[MSVC] ( + cmake --build . --config %BUILD_TYPE% --target install + if %errorlevel% neq 0 exit /b %errorlevel% +) + +7z a -t7z -mx9 "libADLMIDI-%VLC_DIR%-codec-%PLATFORM%.7z" "libadlmidi_plugin.dll" +if %errorlevel% neq 0 exit /b %errorlevel% + +appveyor PushArtifact "libADLMIDI-%VLC_DIR%-codec-%PLATFORM%.7z" +if %errorlevel% neq 0 exit /b %errorlevel% + |