build.bat
1.6 KB
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
REM akvirtualcamera, virtual camera for Mac and Windows.
REM Copyright (C) 2021 Gonzalo Exequiel Pedone
REM
REM akvirtualcamera is free software: you can redistribute it and/or modify
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,
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/>.
REM
REM Web-Site: http://webcamoid.github.io/
set SOURCES_DIR=%cd%
set INSTALL_PREFIX=%SOURCES_DIR%\package-data
echo.
echo Building x64 virtual camera driver
echo.
mkdir build-x64
cmake ^
-LA ^
-S . ^
-B build-x64 ^
-G "%CMAKE_GENERATOR%" ^
-A x64 ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%" ^
-DDAILY_BUILD="%DAILY_BUILD%"
cmake --build build-x64 --config Release --parallel "%NJOBS%"
cmake --build build-x64 --config Release --target install
echo.
echo Building x86 virtual camera driver
echo.
mkdir build-x86
cmake ^
-LA ^
-S . ^
-B build-x86 ^
-G "%CMAKE_GENERATOR%" ^
-A Win32 ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX="%INSTALL_PREFIX%" ^
-DDAILY_BUILD="%DAILY_BUILD%"
cmake --build build-x86 --config Release --parallel "%NJOBS%"
cmake --build build-x86 --config Release --target install