forked from DsoTsin/kaleido3d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.cmd
49 lines (41 loc) · 1.11 KB
/
make.cmd
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
@rem ==========kaleido3d build script
@rem Copyright (c) 2014, Tsin Studio. All rights reserved.
@rem Copyright (c) 2014, Qin Zhou. All rights reserved.
@echo off
if "%QTDIR%" == "" goto NOT_FOUND_QMAKE
:NOT_FOUND_QMAKE
echo Not found Qt! Try to build by CMake...
cmake /V
if errorlevel 0 goto BUILD_BY_CMAKE
pause
exit
:BUILD_BY_QMAKE
if not exist Binary mkdir Binary
cd Binary
if not exist qmake goto NOT_FOUND_QMAKE
qmake -r ../Tools/Launcher/Launcher.pro
pause
exit
:BUILD_BY_CMAKE
echo Now build by CMake
if not exist BuildCMakeProj mkdir BuildCMakeProj
cd BuildCMakeProj
if defined VS140COMNTOOLS (goto MS2015Build)
if defined VS120COMNTOOLS (goto MS2013Build) else (goto NotSupport)
:MS2015Build
echo Build By Visual Studio 2015
cmake -G"Visual Studio 14 2015 Win64" ..\Source
call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
msbuild Kaleido3D.sln
goto End
:MS2013Build
echo Build By Visual Studio 2013
cmake -G"Visual Studio 12 2013 Win64" ..\Source
call "%VS120COMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
msbuild Kaleido3D.sln
goto End
:NotSupport
echo Visual Studio Version not supported!
:End
pause
exit