cmake_all.bat 1.48 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
set BNZ_X64=ON
set BNZ_FLAVOR=GLFW
call :build
set BNZ_X64=ON
set BNZ_FLAVOR=DX9
call :build
set BNZ_X64=ON
set BNZ_FLAVOR=DX11
call :build

copy LICENSE _package.x64
copy README.md _package.x64

Gargaj's avatar
Gargaj committed
14
15
16
17
18
19
cd _package.x64
set FN=Bonzomatic_W64_%date:~0,4%-%date:~5,2%-%date:~8,2%.zip
zip -r -9 %FN% *
move %FN% ..\
cd ..

20
21
22
23
24
25
26
27
28
29
30
31
32
set BNZ_X64=OFF
set BNZ_FLAVOR=GLFW
call :build
set BNZ_X64=OFF
set BNZ_FLAVOR=DX9
call :build
set BNZ_X64=OFF
set BNZ_FLAVOR=DX11
call :build

copy LICENSE _package.x86
copy README.md _package.x86

Gargaj's avatar
Gargaj committed
33
34
35
36
37
38
cd _package.x86
set FN=Bonzomatic_W32_%date:~0,4%-%date:~5,2%-%date:~8,2%.zip
zip -r -9 %FN% *
move %FN% ../
cd ..

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
goto :eof

REM --------------------- BUILD TIME -------------------------------

:build

set BNZ_COMPILER=Visual Studio 10 2010
if not "%BNZ_X64%"=="ON" goto skipme
set BNZ_COMPILER=Visual Studio 10 2010 Win64
:skipme

set BNZ_OUT_DIR=x86
set BNZ_PLATFORM=W32
if not "%BNZ_X64%"=="ON" goto skipme
set BNZ_OUT_DIR=x64
set BNZ_PLATFORM=W64
:skipme

mkdir build.%BNZ_OUT_DIR%.%BNZ_FLAVOR%
cd build.%BNZ_OUT_DIR%.%BNZ_FLAVOR%
cmake -DBONZOMATIC_NDI="ON" -DBONZOMATIC_64BIT="%BNZ_X64%" -DBONZOMATIC_WINDOWS_FLAVOR:STRING="%BNZ_FLAVOR%" -G "%BNZ_COMPILER%" ../
cmake --build . --config Release 
mkdir ..\_package.%BNZ_OUT_DIR%\
del ..\_package.%BNZ_OUT_DIR%\Bonzomatic_%BNZ_PLATFORM%_%BNZ_FLAVOR%.exe
copy .\Release\Bonzomatic.exe ..\_package.%BNZ_OUT_DIR%\Bonzomatic_%BNZ_PLATFORM%_%BNZ_FLAVOR%.exe
copy .\Release\Processing.NDI.Lib.%BNZ_OUT_DIR%.dll ..\_package.%BNZ_OUT_DIR%\
cd ..
goto :eof