forked from csantosbh/gdb-imagewatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gdb-imagewatch.pro
130 lines (108 loc) · 3.41 KB
/
gdb-imagewatch.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
# BUILD_MODE variable can be either release or debug
isEmpty(BUILD_MODE) {
BUILD_MODE = release
}
message(GDB-ImageWatch build mode: $$BUILD_MODE)
CONFIG += $$BUILD_MODE
# Prevent strip from producing spurious error messages
QMAKE_STRIP = echo "strip disabled: "
QT += \
core \
gui \
opengl \
widgets \
gui
QMAKE_CXXFLAGS += \
-fPIC \
-fvisibility=hidden \
-pthread
QMAKE_LFLAGS += \
# If you have an error "cannot find -lGL", uncomment the following line and
# replace the folder by the location of your libGL.so
#-L/path/to/your/opengl/folder \
-Wl,--exclude-libs,ALL
SOURCES += \
src/giw_window.cpp \
src/debuggerinterface/buffer_request_message.cpp \
src/debuggerinterface/managed_pointer.cpp \
src/debuggerinterface/python_native_interface.cpp \
src/io/buffer_exporter.cpp \
src/math/assorted.cpp \
src/math/linear_algebra.cpp \
src/ui/gl_canvas.cpp \
src/ui/symbol_completer.cpp \
src/ui/symbol_search_input.cpp \
src/ui/main_window/main_window.cpp \
src/ui/main_window/initialization.cpp \
src/ui/main_window/auto_contrast.cpp \
src/ui/main_window/ui_events.cpp \
src/visualization/events.cpp \
src/visualization/game_object.cpp \
src/visualization/shader.cpp \
src/visualization/stage.cpp \
src/visualization/components/background.cpp \
src/visualization/components/buffer.cpp \
src/visualization/components/buffer_values.cpp \
src/visualization/components/camera.cpp\
src/visualization/components/component.cpp\
src/visualization/shaders/background_fs.cpp \
src/visualization/shaders/background_vs.cpp \
src/visualization/shaders/buffer_fs.cpp \
src/visualization/shaders/buffer_vs.cpp \
src/visualization/shaders/text_fs.cpp \
src/visualization/shaders/text_vs.cpp \
src/ui/gl_text_renderer.cpp \
src/ui/go_to_widget.cpp \
src/ui/decorated_line_edit.cpp
# Qt related headers
HEADERS += \
src/debuggerinterface/preprocessor_directives.h \
src/ui/gl_canvas.h \
src/ui/main_window/main_window.h \
src/ui/symbol_completer.h \
src/ui/symbol_search_input.h \
src/ui/gl_text_renderer.h \
src/ui/go_to_widget.h \
src/ui/decorated_line_edit.h
# Copy resource files to build folder
copydata.commands = \
$(COPY_DIR) \"$$shell_path($$PWD\\resources\\giwscripts)\" \"$$shell_path($$OUT_PWD)\"; \
$(COPY_DIR) \"$$shell_path($$PWD\\resources\\matlab)\" \"$$shell_path($$OUT_PWD)\"; \
$(COPY_FILE) \"$$shell_path($$PWD\\resources\\gdb-imagewatch.py)\" \"$$shell_path($$OUT_PWD)\"
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
QMAKE_EXTRA_TARGETS += first copydata
# Instalation instructions
isEmpty(PREFIX) {
PREFIX = /usr/local
}
VERSION = 1.2
TARGET = giwwindow
TEMPLATE = lib
target.path = $$PREFIX/bin/gdb-imagewatch/
install_debugger_scripts.path = $$PREFIX/bin/gdb-imagewatch/
install_debugger_scripts.files = \
resources/gdb-imagewatch.py \
resources/giwscripts
install_fonts.path = $$PREFIX/bin/gdb-imagewatch/fonts/
install_fonts.files = resources/fonts/*
install_matlab_scripts.path = $$PREFIX/bin/gdb-imagewatch/matlab
install_matlab_scripts.files = resources/matlab/*
INSTALLS += \
install_fonts \
install_matlab_scripts \
install_debugger_scripts \
target
# Assorted configuration
INCLUDEPATH += \
$$PWD/src \
$$PWD/src/thirdparty/Khronos/
CONFIG += \
link_pkgconfig \
warn_on \
c++11 \
no_keywords
PKGCONFIG += python3
FORMS += ui/main_window.ui
RESOURCES += resources/resources.qrc