forked from treefrogframework/treefrog-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
58 lines (44 loc) · 880 Bytes
/
build.bat
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
58
@ECHO OFF
@setlocal
::
:: Edit this line to run the batch file for Qt environment.
::
::call "C:\Qt\Qt5.2.1\5.2.1\mingw48_32\bin\qtenv2.bat"
call "C:\Qt\Qt5.3.2-mingw\5.3\mingw482_32\bin\qtenv2.bat"
::call "C:\Qt\Qt5.3.2-msvc2013\5.3\msvc2013_64_opengl\bin\qtenv2.bat"
if "%DevEnvDir%" == "" (
set MAKE=mingw32-make -j4
) else (
set MAKE=nmake
set CL=/MP
)
::
:: Compile and Install
::
cd /D %~dp0
call configure.bat --enable-debug
if ERRORLEVEL 1 goto :error
cd src
%MAKE% install
if ERRORLEVEL 1 goto :error
cd ..\tools
%MAKE% install
if ERRORLEVEL 1 goto :error
cd ..
call configure.bat
if ERRORLEVEL 1 goto :error
cd src
%MAKE% install
if ERRORLEVEL 1 goto :error
cd ..\tools
%MAKE% install
if ERRORLEVEL 1 goto :error
echo.
pause
exit /b
:error
echo.
echo Compilation Error!!!
echo.
pause
exit /b