forked from taamrooz/godtify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.bat
More file actions
57 lines (49 loc) · 1.09 KB
/
make.bat
File metadata and controls
57 lines (49 loc) · 1.09 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
57
@ECHO OFF
ECHO.
SET SOLUTION=godtify.sln
IF "%~1"=="" GOTO COMMANDS
IF "%~1"=="all" GOTO MAKE_ALL
IF "%~1"=="release" GOTO MAKE_RELEASE
IF "%~1"=="debug" GOTO MAKE_DEBUG
IF "%~1"=="clean" GOTO MAKE_CLEAN
:COMMANDS
ECHO COMMANDS
GOTO DONE
:MAKE_ALL
call make.bat debug
call make.bat release
GOTO DONE
:MAKE_RELEASE
mkdir build\release
cd build\release
cmake -A x64 -DCMAKE_BUILD_TYPE=Release ..\..
where /q msbuild
IF ERRORLEVEL 1 (
ECHO No developer tools found. Is this the Developer Command Prompt?
) ELSE (
msbuild %SOLUTION% /p:Configuration=Release;OutDir=..\..\bin\Release\ -maxcpucount
)
cd ..
cd ..
GOTO DONE
:MAKE_DEBUG
ECHO MAKE_DEBUG
mkdir build\debug
cd build\debug
cmake -A x64 -DCMAKE_BUILD_TYPE=Debug ..\..
where /q msbuild
IF ERRORLEVEL 1 (
ECHO No developer tools found. Is this the Developer Command Prompt?
) ELSE (
msbuild %SOLUTION% /p:Configuration=Debug;OutDir=..\..\bin\Debug\;OutputPath=..\..\bin\Debug\ -maxcpucount
)
cd ..
cd ..
GOTO DONE
:MAKE_CLEAN
rmdir /s /Q build\debug
rmdir /s /Q build\release
rmdir /s /Q bin\debug
rmdir /s /Q bin\release
GOTO DONE
:DONE