forked from eteran/edb-debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrc.pro
212 lines (191 loc) · 4.66 KB
/
src.pro
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
LEVEL = ..
include(../qmake/clean-objects.pri)
include(../qmake/c++11.pri)
include(../qmake/qt5-gui.pri)
TEMPLATE = app
TARGET = edb
INCLUDEPATH += widgets $$LEVEL/include
VPATH += widgets $$LEVEL/include
RESOURCES = debugger.qrc
DESTDIR = ../
target.path = /bin/
INSTALLS += target
QT += xml xmlpatterns
TRANSLATIONS += \
lang/edb_en.ts
HEADERS += \
API.h \
ArchProcessor.h \
ArchTypes.h \
BasicBlock.h \
BinaryString.h \
ByteShiftArray.h \
CommentServer.h \
Configuration.h \
DataViewInfo.h \
Debugger.h \
DebuggerInternal.h \
DialogArguments.h \
DialogAttach.h \
DialogInputBinaryString.h \
DialogInputValue.h \
DialogMemoryRegions.h \
DialogOptions.h \
DialogPlugins.h \
DialogThreads.h \
Expression.h \
FixedFontSelector.h \
HexStringValidator.h \
IAnalyzer.h \
IBinary.h \
IBreakpoint.h \
IDebugEvent.h \
IDebugEventHandler.h \
IDebugger.h \
IPlugin.h \
IProcess.h \
IThread.h \
IRegion.h \
IState.h \
ISymbolManager.h \
Instruction.h \
LineEdit.h \
MD5.h \
MemoryRegions.h \
Module.h \
OSTypes.h \
PluginModel.h \
ProcessInfo.h \
ProcessModel.h \
Prototype.h \
QDisassemblyView.h \
QLongValidator.h \
QULongValidator.h \
RecentFileManager.h \
RegionBuffer.h \
Register.h \
RegisterListWidget.h \
RegisterViewDelegate.h \
ShiftBuffer.h \
State.h \
Symbol.h \
SymbolManager.h \
SyntaxHighlighter.h \
TabWidget.h \
ThreadsModel.h \
Types.h \
Util.h \
edb.h \
string_hash.h \
version.h
FORMS += \
BinaryString.ui \
Debugger.ui \
DialogArguments.ui \
DialogAttach.ui \
DialogInputBinaryString.ui \
DialogInputValue.ui \
DialogMemoryRegions.ui \
DialogOptions.ui \
DialogPlugins.ui \
DialogThreads.ui \
FixedFontSelector.ui
SOURCES += \
ArchProcessor.cpp \
BasicBlock.cpp \
BinaryString.cpp \
ByteShiftArray.cpp \
CommentServer.cpp \
Configuration.cpp \
DataViewInfo.cpp \
Debugger.cpp \
DialogArguments.cpp \
DialogAttach.cpp \
DialogInputBinaryString.cpp \
DialogInputValue.cpp \
DialogMemoryRegions.cpp \
DialogOptions.cpp \
DialogPlugins.cpp \
DialogThreads.cpp \
FixedFontSelector.cpp \
Function.cpp \
HexStringValidator.cpp \
Instruction.cpp \
LineEdit.cpp \
MD5.cpp \
MemoryRegions.cpp \
PluginModel.cpp \
ProcessModel.cpp \
QDisassemblyView.cpp \
QLongValidator.cpp \
QULongValidator.cpp \
RecentFileManager.cpp \
RegionBuffer.cpp \
Register.cpp \
RegisterListWidget.cpp \
RegisterViewDelegate.cpp \
State.cpp \
SymbolManager.cpp \
SyntaxHighlighter.cpp \
TabWidget.cpp \
ThreadsModel.cpp \
edb.cpp \
main.cpp
# QHexView stuff
INCLUDEPATH += qhexview
VPATH += qhexview
SOURCES += qhexview.cpp
HEADERS += qhexview.h QHexView
win32 {
win32-msvc*:contains(QMAKE_HOST.arch, x86_64) {
VPATH += $$LEVEL/include/os/win32 arch/x86_64 $$LEVEL/include/arch/x86_64 edisassm
INCLUDEPATH += $$LEVEL/include/os/win32 arch/x86_64 $$LEVEL/include/arch/x86_64 edisassm "C:\\Program Files\\boost\\boost_1_51"
DEFINES += _CRT_SECURE_NO_WARNINGS
RC_FILE = edb.rc
}
win32-msvc*:contains(QMAKE_HOST.arch, i[3456]86) {
VPATH += $$LEVEL/include/os/win32 arch/x86 $$LEVEL/include/arch/x86 edisassm
INCLUDEPATH += $$LEVEL/include/os/win32 arch/x86 $$LEVEL/include/arch/x86 edisassm "C:\\Program Files\\boost\\boost_1_51"
DEFINES += _CRT_SECURE_NO_WARNINGS
RC_FILE = edb.rc
}
}
unix {
graph {
VPATH += graph
INCLUDEPATH += graph
HEADERS += GraphEdge.h GraphWidget.h GraphNode.h
SOURCES += GraphEdge.cpp GraphWidget.cpp GraphNode.cpp
LIBS += -lgvc
}
!isEmpty(DEFAULT_PLUGIN_PATH) {
DEFINES += DEFAULT_PLUGIN_PATH=$$DEFAULT_PLUGIN_PATH
}
VPATH += $$LEVEL/include/os/unix edisassm
INCLUDEPATH += $$LEVEL/include/os/unix edisassm
# OS include paths
openbsd-* : INCLUDEPATH += /usr/local/include
macx-* : INCLUDEPATH += /opt/local/include
macx {
VPATH += arch/x86_64 $$LEVEL/include/arch/x86_64
INCLUDEPATH += arch/x86_64 $$LEVEL/include/arch/x86_64
}
!macx:contains(QMAKE_HOST.arch, x86_64) {
VPATH += arch/x86_64 $$LEVEL/include/arch/x86_64
INCLUDEPATH += arch/x86_64 $$LEVEL/include/arch/x86_64
}
!macx:contains(QMAKE_HOST.arch, i[3456]86) {
VPATH += arch/x86 $$LEVEL/include/arch/x86
INCLUDEPATH += arch/x86 $$LEVEL/include/arch/x86
}
*-g++* | *-clang* {
QMAKE_CXXFLAGS_DEBUG += -g3
}
# linker flags
freebsd-g++* : QMAKE_LFLAGS += -lkvm -Wl,--export-dynamic $$(LDFLAGS)
linux-clang* : QMAKE_LFLAGS += -rdynamic $$(LDFLAGS)
linux-g++* : QMAKE_LFLAGS += -rdynamic $$(LDFLAGS)
macx-clang* : QMAKE_LFLAGS += -rdynamic $$(LDFLAGS)
macx-g++* : QMAKE_LFLAGS += -rdynamic $$(LDFLAGS)
openbsd-g++* : QMAKE_LFLAGS += -lkvm -Wl,--export-dynamic $$(LDFLAGS)
}