-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmake.bat
More file actions
48 lines (33 loc) · 940 Bytes
/
make.bat
File metadata and controls
48 lines (33 loc) · 940 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
@echo off
IF "%1"=="" GOTO Release
IF "%1"=="release" GOTO Release
IF "%1"=="debug" GOTO Debug
IF "%1"=="all" GOTO Debug
GOTO BadArg
:Debug
mkdir msvc10
cd msvc10
%QTDIR%\bin\qmake -spec win32-msvc2010 -tp vc -r .. CONFIG+=debug
mkdir ..\bin_debug
del /Q ..\bin_debug\*
call "%SDK_DIR%\bin\SetEnv.cmd" /x86 /Debug
msbuild src\librad.vcxproj /nologo /verbosity:m /p:Configuration=Debug
msbuild doc\doc.vcxproj /nologo /verbosity:m /p:Configuration=Debug
xcopy /Y /E bin_debug\* ..\bin_debug\
IF NOT "%1"=="all" GOTO Done
cd ..
:Release
mkdir msvc10
cd msvc10
%QTDIR%\bin\qmake -spec win32-msvc2010 -tp vc -r .. CONFIG+=release
mkdir ..\bin
del /Q ..\bin\*
call "%SDK_DIR%\bin\SetEnv.cmd" /x86 /Release
msbuild src\libra.vcxproj /nologo /verbosity:m /p:Configuration=Release
msbuild doc\doc.vcxproj /nologo /verbosity:m /p:Configuration=Release
xcopy /Y /E bin\* ..\bin\
GOTO Done
:BadArg
echo "Invalid build type"
exit
:Done