forked from treefrogframework/treefrog-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile_install.bat
More file actions
58 lines (45 loc) · 779 Bytes
/
compile_install.bat
File metadata and controls
58 lines (45 loc) · 779 Bytes
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
cd /D %~dp0
:: Requires Qt environment.
if not "%Platform%" == "" (
set MAKE=nmake
set CL=/MP
) else if not "%DevEnvDir%" == "" (
set MAKE=nmake
set CL=/MP
) else (
set MAKE=mingw32-make -j8
)
::
:: Compile and Install
::
cd /D %~dp0
call configure.bat --enable-debug
if ERRORLEVEL 1 goto :error
cd src
%MAKE% clean
%MAKE% install
if ERRORLEVEL 1 goto :error
cd ..\tools
%MAKE% clean
%MAKE% install
if ERRORLEVEL 1 goto :error
cd ..
call configure.bat
if ERRORLEVEL 1 goto :error
cd src
%MAKE% clean
%MAKE% install
if ERRORLEVEL 1 goto :error
cd ..\tools
%MAKE% clean
%MAKE% install
if ERRORLEVEL 1 goto :error
echo.
exit /b
:error
echo.
echo Compilation Error!!!
echo.
exit /b