forked from x64dbg/x64dbg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
74 lines (64 loc) · 1.33 KB
/
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@echo off
echo Saving PATH
if "%OLDPATH%"=="" set OLDPATH=%PATH%
if "%1"=="x32" (
call setenv.bat x32
set type=Win32
goto build
) else if "%1"=="x64" (
call setenv.bat x64
set type=x64
goto build
) else if "%1"=="coverity" (
if "%2"=="" (
echo "usage: build.bat coverity x32/x64"
goto :eof
)
goto coverity
) else if "%1"=="doxygen" (
goto doxygen
) else if "%1"=="chm" (
goto chm
) else (
echo "usage: build.bat x32/x64/coverity/doxygen/chm"
goto :eof
)
:build
echo Building DBG...
devenv /Rebuild "Release|%type%" x64_dbg.sln
echo GUI prebuildStep
cd x64_dbg_gui\Project
cmd /k "prebuildStep.bat %1"
cd ..
cd ..
echo Building GUI...
rmdir /S /Q build
mkdir build
cd build
qmake ..\x64_dbg_gui\Project\x64_dbg.pro CONFIG+=release
jom
cd ..
echo GUI afterbuildStep
cd x64_dbg_gui\Project
call afterbuildStep.bat %1 ..\..\build\release
cd ..
cd ..
goto restorepath
:coverity
call setenv.bat coverity
echo Building with Coverity
cov-configure --msvc
cov-build --dir cov-int --instrument build.bat %2%
goto restorepath
:doxygen
call setenv.bat doxygen
doxygen
goto restorepath
:chm
call setenv.bat chm
start /w "" winchm.exe help\x64_dbg.wcp /h
goto restorepath
:restorepath
echo Resetting PATH
set PATH=%OLDPATH%
set OLDPATH=