akvirtualcamera/ports/ci/appveyor/build.bat

88 lines
2.4 KiB
Batchfile
Raw Normal View History

REM akvirtualcamera, virtual camera for Mac and Windows.
REM Copyright (C) 2021 Gonzalo Exequiel Pedone
2020-06-05 22:09:17 +00:00
REM
REM akvirtualcamera is free software: you can redistribute it and/or modify
2020-06-05 22:09:17 +00:00
REM it under the terms of the GNU General Public License as published by
REM the Free Software Foundation, either version 3 of the License, or
REM (at your option) any later version.
REM
REM akvirtualcamera is distributed in the hope that it will be useful,
2020-06-05 22:09:17 +00:00
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
REM GNU General Public License for more details.
REM
REM You should have received a copy of the GNU General Public License
REM along with akvirtualcamera. If not, see <http://www.gnu.org/licenses/>.
2020-06-05 22:09:17 +00:00
REM
REM Web-Site: http://webcamoid.github.io/
2021-03-20 19:13:44 +00:00
set INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%\webcamoid-data
2021-02-21 17:19:57 +00:00
2021-02-21 03:30:52 +00:00
echo.
echo Building x64 virtual camera driver
echo.
2020-06-05 22:09:17 +00:00
2021-02-21 03:30:52 +00:00
mkdir build-x64
cd build-x64
2021-02-21 05:49:41 +00:00
setlocal
2020-06-05 22:09:17 +00:00
2021-02-21 05:49:41 +00:00
if "%CMAKE_GENERATOR%" == "MSYS Makefiles" set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
2021-02-21 03:30:52 +00:00
if "%CMAKE_GENERATOR%" == "MSYS Makefiles" (
cmake ^
-G "%CMAKE_GENERATOR%" ^
2021-02-21 17:19:57 +00:00
-DCMAKE_BUILD_TYPE=Release ^
2021-02-21 03:30:52 +00:00
-DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%" ^
..
2021-02-21 05:33:12 +00:00
cmake --build .
2021-03-20 19:13:44 +00:00
cmake --build . --target install
2021-02-21 03:30:52 +00:00
)
2020-06-05 22:09:17 +00:00
2021-02-21 05:49:41 +00:00
endlocal
2021-02-21 03:30:52 +00:00
if "%CMAKE_GENERATOR:~0,13%" == "Visual Studio" (
cmake ^
-G "%CMAKE_GENERATOR%" ^
-A x64 ^
-DCMAKE_BUILD_TYPE=Release ^
2021-02-21 03:30:52 +00:00
-DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%" ^
..
cmake --build . --config Release
2021-03-20 19:13:44 +00:00
cmake --build . --config Release --target install
2020-06-05 22:09:17 +00:00
)
2021-02-21 03:30:52 +00:00
cd ..
2020-06-05 22:09:17 +00:00
echo.
2021-02-21 03:30:52 +00:00
echo Building x86 virtual camera driver
2020-06-05 22:09:17 +00:00
echo.
2021-02-21 03:30:52 +00:00
mkdir build-x86
cd build-x86
2021-02-21 05:49:41 +00:00
setlocal
2020-06-05 22:09:17 +00:00
2021-02-21 05:49:41 +00:00
if "%CMAKE_GENERATOR%" == "MSYS Makefiles" set PATH=C:\msys64\mingw32\bin;C:\msys64\usr\bin;%PATH%
2021-02-21 03:30:52 +00:00
if "%CMAKE_GENERATOR%" == "MSYS Makefiles" (
cmake ^
-G "%CMAKE_GENERATOR%" ^
2021-02-21 17:19:57 +00:00
-DCMAKE_BUILD_TYPE=Release ^
2021-02-21 03:30:52 +00:00
-DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%" ^
..
2021-02-21 05:33:12 +00:00
cmake --build .
2021-03-20 19:13:44 +00:00
cmake --build . --target install
2021-02-21 03:30:52 +00:00
)
2020-06-05 22:09:17 +00:00
2021-02-21 05:49:41 +00:00
endlocal
2021-02-21 03:30:52 +00:00
if "%CMAKE_GENERATOR:~0,13%" == "Visual Studio" (
cmake ^
-G "%CMAKE_GENERATOR%" ^
-A Win32 ^
-DCMAKE_BUILD_TYPE=Release ^
2021-02-21 03:30:52 +00:00
-DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%" ^
..
cmake --build . --config Release
2021-03-20 19:13:44 +00:00
cmake --build . --config Release --target install
2021-02-21 03:30:52 +00:00
)
2021-02-21 17:56:46 +00:00
cd ..