forked from caqtdm/caqtdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaQtDM_BuildAll.bat
executable file
·53 lines (48 loc) · 1.48 KB
/
caQtDM_BuildAll.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
@echo off
Setlocal EnableDelayedExpansion
echo "========== Parameter ============"
call caQtDM_Env.bat
if "%CAQTDM_GENERAL_COMPILATION%"=="1" GOTO :GENERAL_COMPILATION
echo.
echo "========== create destination directory if not exists============"
echo.
echo "package will be build in %CAQTDM_COLLECT%"
echo.
call :compile
pause
GOTO:eof
:GENERAL_COMPILATION
SETLOCAL
REM =============================================================================================
REM GENERAL_COMPILATION SELECT1
REM =============================================================================================
call caQtDM_Env.bat 1
call caQtDM_CleanAll.bat
call :compile
call caQtDM_CleanAll.bat
ENDLOCAL
SETLOCAL
REM =============================================================================================
REM GENERAL_COMPILATION SELECT2
REM =============================================================================================
call caQtDM_Env.bat 2
call :compile
call caQtDM_CleanAll.bat
ENDLOCAL
SETLOCAL
REM =============================================================================================
REM GENERAL_COMPILATION SELECT3
REM =============================================================================================
call caQtDM_Env.bat 3
call :compile
call caQtDM_CleanAll.bat
ENDLOCAL
GOTO:eof
:compile
echo ============ make all =================
set PATH=%PATH%;%JOM%
set PATH=%PATH%;%QTHOME%\bin
qmake all.pro
where /q jom.exe
IF %ERRORLEVEL% NEQ 0 (nmake all) ELSE (jom all)
GOTO:eof