2017-03-29 10:18:37 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
|
2018-02-01 15:07:51 +00:00
|
|
|
TARGET = Cutter
|
2017-04-06 08:29:36 +00:00
|
|
|
|
2018-08-26 18:37:11 +00:00
|
|
|
CUTTER_VERSION_MAJOR = 1
|
2019-03-18 19:21:18 +00:00
|
|
|
CUTTER_VERSION_MINOR = 8
|
|
|
|
CUTTER_VERSION_PATCH = 0
|
2018-08-26 18:37:11 +00:00
|
|
|
|
|
|
|
VERSION = $${CUTTER_VERSION_MAJOR}.$${CUTTER_VERSION_MINOR}.$${CUTTER_VERSION_PATCH}
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2018-09-05 16:53:57 +00:00
|
|
|
# Required QT version
|
2018-08-20 15:27:35 +00:00
|
|
|
lessThan(QT_MAJOR_VERSION, 5): error("requires Qt 5")
|
|
|
|
|
2018-10-31 18:10:31 +00:00
|
|
|
TRANSLATIONS += translations/cutter_ca.ts \
|
|
|
|
translations/cutter_de.ts \
|
2019-01-19 21:16:50 +00:00
|
|
|
translations/cutter_es.ts \
|
2018-10-31 16:07:53 +00:00
|
|
|
translations/cutter_fr.ts \
|
|
|
|
translations/cutter_it.ts \
|
|
|
|
translations/cutter_nl.ts \
|
2019-01-19 21:16:50 +00:00
|
|
|
translations/cutter_pt.ts \
|
|
|
|
translations/cutter_ro.ts \
|
|
|
|
translations/cutter_ru.ts \
|
|
|
|
translations/cutter_tr.ts
|
2018-10-31 16:07:53 +00:00
|
|
|
|
2018-09-05 16:53:57 +00:00
|
|
|
# Icon for OS X
|
2017-11-05 14:19:47 +00:00
|
|
|
ICON = img/cutter.icns
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2018-09-05 16:53:57 +00:00
|
|
|
# Icon/resources for Windows
|
2018-09-06 07:26:19 +00:00
|
|
|
win32: RC_ICONS = img/cutter.ico
|
2018-09-05 16:53:57 +00:00
|
|
|
|
2018-09-13 06:32:14 +00:00
|
|
|
QT += core gui widgets svg network
|
2017-03-29 10:18:37 +00:00
|
|
|
QT_CONFIG -= no-pkg-config
|
2017-10-08 06:23:22 +00:00
|
|
|
CONFIG += c++11
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2019-02-23 07:24:31 +00:00
|
|
|
!defined(CUTTER_ENABLE_PYTHON, var) CUTTER_ENABLE_PYTHON=false
|
2019-02-11 20:26:11 +00:00
|
|
|
equals(CUTTER_ENABLE_PYTHON, true) CONFIG += CUTTER_ENABLE_PYTHON
|
|
|
|
|
2019-02-23 07:24:31 +00:00
|
|
|
!defined(CUTTER_ENABLE_PYTHON_BINDINGS, var) CUTTER_ENABLE_PYTHON_BINDINGS=false
|
2019-02-11 20:26:11 +00:00
|
|
|
equals(CUTTER_ENABLE_PYTHON, true) {
|
|
|
|
equals(CUTTER_ENABLE_PYTHON_BINDINGS, true) {
|
|
|
|
CONFIG += CUTTER_ENABLE_PYTHON_BINDINGS
|
|
|
|
!defined(SHIBOKEN_EXECUTABLE, var) SHIBOKEN_EXECUTABLE=shiboken2
|
|
|
|
}
|
|
|
|
}
|
2018-03-16 17:37:38 +00:00
|
|
|
|
2019-02-11 20:26:11 +00:00
|
|
|
!defined(CUTTER_BUNDLE_R2_APPBUNDLE, var) CUTTER_BUNDLE_R2_APPBUNDLE=false
|
|
|
|
equals(CUTTER_BUNDLE_R2_APPBUNDLE, true) CONFIG += CUTTER_BUNDLE_R2_APPBUNDLE
|
|
|
|
|
|
|
|
!defined(CUTTER_APPVEYOR_R2DEC, var) CUTTER_APPVEYOR_R2DEC=false
|
|
|
|
equals(CUTTER_APPVEYOR_R2DEC, true) CONFIG += CUTTER_APPVEYOR_R2DEC
|
|
|
|
|
|
|
|
CUTTER_ENABLE_PYTHON {
|
|
|
|
message("Python enabled.")
|
|
|
|
DEFINES += CUTTER_ENABLE_PYTHON
|
|
|
|
} else {
|
|
|
|
message("Python disabled.")
|
|
|
|
}
|
2018-04-15 12:41:10 +00:00
|
|
|
|
2019-02-11 20:26:11 +00:00
|
|
|
CUTTER_ENABLE_PYTHON_BINDINGS {
|
|
|
|
message("Python Bindings enabled.")
|
|
|
|
DEFINES += CUTTER_ENABLE_PYTHON_BINDINGS
|
|
|
|
} else {
|
|
|
|
message("Python Bindings disabled. (requires CUTTER_ENABLE_PYTHON=true)")
|
|
|
|
}
|
2018-11-10 12:10:26 +00:00
|
|
|
|
2019-02-22 16:50:45 +00:00
|
|
|
INCLUDEPATH *= . core widgets dialogs common plugins
|
2017-10-08 06:23:22 +00:00
|
|
|
|
|
|
|
win32 {
|
|
|
|
# Generate debug symbols in release mode
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -Zi # Compiler
|
|
|
|
QMAKE_LFLAGS_RELEASE += /DEBUG # Linker
|
2019-03-16 10:35:31 +00:00
|
|
|
|
2018-07-23 20:48:09 +00:00
|
|
|
# Multithreaded compilation
|
|
|
|
QMAKE_CXXFLAGS += -MP
|
2017-10-08 06:23:22 +00:00
|
|
|
}
|
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
macx {
|
|
|
|
QMAKE_CXXFLAGS = -mmacosx-version-min=10.7 -std=gnu0x -stdlib=libc++
|
2018-10-02 10:54:23 +00:00
|
|
|
QMAKE_TARGET_BUNDLE_PREFIX = org.radare
|
|
|
|
QMAKE_BUNDLE = cutter
|
|
|
|
QMAKE_INFO_PLIST = macos/Info.plist
|
2017-04-06 08:29:36 +00:00
|
|
|
}
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2018-12-13 12:23:03 +00:00
|
|
|
unix:exists(/usr/local/include/libr)|bsd:exists(/usr/local/include/libr) {
|
2017-08-31 17:51:45 +00:00
|
|
|
INCLUDEPATH += /usr/local/include/libr
|
|
|
|
}
|
2018-06-26 07:40:08 +00:00
|
|
|
unix {
|
|
|
|
QMAKE_LFLAGS += -rdynamic # Export dynamic symbols for plugins
|
|
|
|
}
|
2017-08-31 17:51:45 +00:00
|
|
|
|
2018-02-11 17:59:23 +00:00
|
|
|
# Libraries
|
|
|
|
include(lib_radare2.pri)
|
2018-02-25 19:17:03 +00:00
|
|
|
|
2019-03-08 23:01:24 +00:00
|
|
|
!win32 {
|
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
}
|
|
|
|
|
2019-02-11 20:26:11 +00:00
|
|
|
CUTTER_ENABLE_PYTHON {
|
|
|
|
win32 {
|
2019-03-16 10:35:31 +00:00
|
|
|
PYTHON_EXECUTABLE = $$system("where python", lines)
|
|
|
|
PYTHON_EXECUTABLE = $$first(PYTHON_EXECUTABLE)
|
2019-03-29 17:11:29 +00:00
|
|
|
pythonpath = $$clean_path($$dirname(PYTHON_EXECUTABLE))
|
2019-04-08 20:07:35 +00:00
|
|
|
LIBS += -L$${pythonpath}/libs -lpython3
|
2019-02-11 20:26:11 +00:00
|
|
|
INCLUDEPATH += $${pythonpath}/include
|
|
|
|
}
|
|
|
|
|
|
|
|
unix|macx|bsd {
|
|
|
|
defined(PYTHON_FRAMEWORK_DIR, var) {
|
|
|
|
message("Using Python.framework at $$PYTHON_FRAMEWORK_DIR")
|
|
|
|
INCLUDEPATH += $$PYTHON_FRAMEWORK_DIR/Python.framework/Headers
|
|
|
|
LIBS += -F$$PYTHON_FRAMEWORK_DIR -framework Python
|
|
|
|
DEFINES += MACOS_PYTHON_FRAMEWORK_BUNDLED
|
|
|
|
} else {
|
|
|
|
!packagesExist(python3) {
|
|
|
|
error("ERROR: Python 3 could not be found. Make sure it is available to pkg-config.")
|
|
|
|
}
|
|
|
|
PKGCONFIG += python3
|
2018-03-05 20:39:36 +00:00
|
|
|
}
|
2019-02-11 20:26:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CUTTER_ENABLE_PYTHON_BINDINGS {
|
2019-03-16 10:35:31 +00:00
|
|
|
isEmpty(SHIBOKEN_EXECUTABLE):!packagesExist(shiboken2) {
|
2019-02-18 12:51:14 +00:00
|
|
|
error("ERROR: Shiboken2, which is required to build the Python Bindings, could not be found. Make sure it is available to pkg-config.")
|
|
|
|
}
|
2019-03-16 10:35:31 +00:00
|
|
|
isEmpty(PYSIDE_LIBRARY):!packagesExist(pyside2) {
|
2019-02-18 12:51:14 +00:00
|
|
|
error("ERROR: PySide2, which is required to build the Python Bindings, could not be found. Make sure it is available to pkg-config.")
|
|
|
|
}
|
2019-02-28 13:56:54 +00:00
|
|
|
win32 {
|
2019-03-29 17:11:29 +00:00
|
|
|
BINDINGS_SRC_LIST_CMD = "\"$${PYTHON_EXECUTABLE}\" bindings/src_list.py"
|
2019-02-28 13:56:54 +00:00
|
|
|
} else {
|
|
|
|
BINDINGS_SRC_LIST_CMD = "python3 bindings/src_list.py"
|
|
|
|
}
|
2019-02-11 20:26:11 +00:00
|
|
|
BINDINGS_SRC_DIR = "$${PWD}/bindings"
|
|
|
|
BINDINGS_BUILD_DIR = "$${OUT_PWD}/bindings"
|
|
|
|
BINDINGS_SOURCE = $$system("$${BINDINGS_SRC_LIST_CMD} qmake \"$${BINDINGS_BUILD_DIR}\"")
|
|
|
|
BINDINGS_INCLUDE_DIRS = "$$[QT_INSTALL_HEADERS]" \
|
|
|
|
"$$[QT_INSTALL_HEADERS]/QtCore" \
|
|
|
|
"$$[QT_INSTALL_HEADERS]/QtWidgets" \
|
|
|
|
"$$[QT_INSTALL_HEADERS]/QtGui" \
|
|
|
|
"$$R2_INCLUDEPATH"
|
|
|
|
for(path, INCLUDEPATH) {
|
|
|
|
BINDINGS_INCLUDE_DIRS += $$absolute_path("$$path")
|
|
|
|
}
|
2019-03-16 10:35:31 +00:00
|
|
|
|
|
|
|
win32 {
|
|
|
|
PATH_SEP = ";"
|
|
|
|
} else {
|
|
|
|
PATH_SEP = ":"
|
|
|
|
}
|
|
|
|
BINDINGS_INCLUDE_DIRS = $$join(BINDINGS_INCLUDE_DIRS, $$PATH_SEP)
|
|
|
|
|
|
|
|
isEmpty(SHIBOKEN_EXECUTABLE) {
|
|
|
|
SHIBOKEN_EXECUTABLE = $$system("pkg-config --variable=generator_location shiboken2")
|
|
|
|
}
|
|
|
|
|
|
|
|
isEmpty(PYSIDE_TYPESYSTEMS) {
|
|
|
|
PYSIDE_TYPESYSTEMS = $$system("pkg-config --variable=typesystemdir pyside2")
|
|
|
|
}
|
|
|
|
isEmpty(PYSIDE_INCLUDEDIR) {
|
|
|
|
PYSIDE_INCLUDEDIR = $$system("pkg-config --variable=includedir pyside2")
|
|
|
|
}
|
|
|
|
|
2019-02-11 20:26:11 +00:00
|
|
|
QMAKE_SUBSTITUTES += bindings/bindings.txt.in
|
2019-03-16 10:35:31 +00:00
|
|
|
|
|
|
|
SHIBOKEN_OPTIONS = --project-file="$${BINDINGS_BUILD_DIR}/bindings.txt"
|
|
|
|
win32:SHIBOKEN_OPTIONS += --avoid-protected-hack
|
2019-02-11 20:26:11 +00:00
|
|
|
bindings.target = bindings_target
|
2019-03-16 10:35:31 +00:00
|
|
|
bindings.commands = "$${SHIBOKEN_EXECUTABLE}" $${SHIBOKEN_OPTIONS}
|
2019-02-11 20:26:11 +00:00
|
|
|
QMAKE_EXTRA_TARGETS += bindings
|
2019-03-16 10:35:31 +00:00
|
|
|
PRE_TARGETDEPS += bindings_target
|
2019-02-11 20:26:11 +00:00
|
|
|
GENERATED_SOURCES += $${BINDINGS_SOURCE}
|
2019-03-16 10:35:31 +00:00
|
|
|
|
2019-02-11 20:26:11 +00:00
|
|
|
INCLUDEPATH += "$${BINDINGS_BUILD_DIR}/CutterBindings"
|
2019-03-16 10:35:31 +00:00
|
|
|
|
|
|
|
win32:DEFINES += WIN32_LEAN_AND_MEAN
|
|
|
|
|
|
|
|
!isEmpty(PYSIDE_LIBRARY) {
|
|
|
|
LIBS += "$$SHIBOKEN_LIBRARY" "$$PYSIDE_LIBRARY"
|
|
|
|
INCLUDEPATH += "$$SHIBOKEN_INCLUDEDIR"
|
|
|
|
} else:macx {
|
2019-03-08 23:01:24 +00:00
|
|
|
# Hack needed because with regular PKGCONFIG qmake will mess up everything
|
|
|
|
QMAKE_CXXFLAGS += $$system("pkg-config --cflags shiboken2 pyside2")
|
|
|
|
LIBS += $$system("pkg-config --libs shiboken2 pyside2")
|
|
|
|
} else {
|
|
|
|
PKGCONFIG += shiboken2 pyside2
|
|
|
|
}
|
2019-03-16 10:35:31 +00:00
|
|
|
INCLUDEPATH += "$$PYSIDE_INCLUDEDIR" "$$PYSIDE_INCLUDEDIR/QtCore" "$$PYSIDE_INCLUDEDIR/QtWidgets" "$$PYSIDE_INCLUDEDIR/QtGui"
|
2018-02-25 19:17:03 +00:00
|
|
|
}
|
|
|
|
}
|
2018-02-11 17:59:23 +00:00
|
|
|
|
2019-02-11 20:26:11 +00:00
|
|
|
|
2018-04-15 12:41:10 +00:00
|
|
|
macx:CUTTER_BUNDLE_R2_APPBUNDLE {
|
|
|
|
message("Using r2 rom AppBundle")
|
|
|
|
DEFINES += MACOS_R2_BUNDLED
|
|
|
|
}
|
|
|
|
|
2018-11-10 12:10:26 +00:00
|
|
|
CUTTER_APPVEYOR_R2DEC {
|
|
|
|
message("Appveyor r2dec")
|
|
|
|
DEFINES += CUTTER_APPVEYOR_R2DEC
|
|
|
|
}
|
|
|
|
|
2018-08-26 18:37:11 +00:00
|
|
|
QMAKE_SUBSTITUTES += CutterConfig.h.in
|
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
SOURCES += \
|
2018-03-04 17:42:02 +00:00
|
|
|
Main.cpp \
|
2019-02-22 16:50:45 +00:00
|
|
|
core/Cutter.cpp \
|
2017-09-28 21:53:59 +00:00
|
|
|
widgets/DisassemblerGraphView.cpp \
|
2019-01-24 17:13:04 +00:00
|
|
|
widgets/OverviewView.cpp \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/RichTextPainter.cpp \
|
2018-08-18 10:51:11 +00:00
|
|
|
dialogs/InitialOptionsDialog.cpp \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/AboutDialog.cpp \
|
|
|
|
dialogs/CommentsDialog.cpp \
|
2018-02-12 20:12:13 +00:00
|
|
|
dialogs/EditInstructionDialog.cpp \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/FlagDialog.cpp \
|
|
|
|
dialogs/RenameDialog.cpp \
|
|
|
|
dialogs/XrefsDialog.cpp \
|
2019-02-22 16:50:45 +00:00
|
|
|
core/MainWindow.cpp \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/Helpers.cpp \
|
|
|
|
common/HexAsciiHighlighter.cpp \
|
|
|
|
common/HexHighlighter.cpp \
|
|
|
|
common/Highlighter.cpp \
|
|
|
|
common/MdHighlighter.cpp \
|
2017-12-14 13:42:24 +00:00
|
|
|
dialogs/preferences/AsmOptionsWidget.cpp \
|
2017-10-02 16:18:40 +00:00
|
|
|
dialogs/NewFileDialog.cpp \
|
2019-02-22 16:50:45 +00:00
|
|
|
common/AnalTask.cpp \
|
2017-10-02 16:18:40 +00:00
|
|
|
widgets/CommentsWidget.cpp \
|
|
|
|
widgets/ConsoleWidget.cpp \
|
|
|
|
widgets/Dashboard.cpp \
|
|
|
|
widgets/EntrypointWidget.cpp \
|
|
|
|
widgets/ExportsWidget.cpp \
|
|
|
|
widgets/FlagsWidget.cpp \
|
|
|
|
widgets/FunctionsWidget.cpp \
|
|
|
|
widgets/ImportsWidget.cpp \
|
|
|
|
widgets/Omnibar.cpp \
|
|
|
|
widgets/RelocsWidget.cpp \
|
|
|
|
widgets/SectionsWidget.cpp \
|
2018-10-20 18:20:06 +00:00
|
|
|
widgets/SegmentsWidget.cpp \
|
2017-10-02 16:18:40 +00:00
|
|
|
widgets/StringsWidget.cpp \
|
2017-10-10 10:17:05 +00:00
|
|
|
widgets/SymbolsWidget.cpp \
|
2017-10-11 21:07:32 +00:00
|
|
|
menus/DisassemblyContextMenu.cpp \
|
2017-10-12 19:55:15 +00:00
|
|
|
widgets/DisassemblyWidget.cpp \
|
2017-10-14 09:35:49 +00:00
|
|
|
widgets/HexdumpWidget.cpp \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/Configuration.cpp \
|
|
|
|
common/Colors.cpp \
|
2017-11-20 20:11:56 +00:00
|
|
|
dialogs/SaveProjectDialog.cpp \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/TempConfig.cpp \
|
|
|
|
common/SvgIconEngine.cpp \
|
|
|
|
common/SyntaxHighlighter.cpp \
|
2017-12-08 15:00:52 +00:00
|
|
|
widgets/PseudocodeWidget.cpp \
|
2017-12-13 22:38:46 +00:00
|
|
|
widgets/VisualNavbar.cpp \
|
2017-12-14 13:42:24 +00:00
|
|
|
widgets/GraphView.cpp \
|
2017-12-14 15:14:33 +00:00
|
|
|
dialogs/preferences/PreferencesDialog.cpp \
|
2018-10-17 07:30:56 +00:00
|
|
|
dialogs/preferences/AppearanceOptionsWidget.cpp \
|
2017-12-19 18:38:06 +00:00
|
|
|
dialogs/preferences/GraphOptionsWidget.cpp \
|
2018-05-13 07:52:49 +00:00
|
|
|
dialogs/preferences/PreferenceCategory.cpp \
|
2017-12-23 16:42:42 +00:00
|
|
|
widgets/QuickFilterView.cpp \
|
2018-02-04 14:32:18 +00:00
|
|
|
widgets/ClassesWidget.cpp \
|
2018-02-10 18:04:31 +00:00
|
|
|
widgets/ResourcesWidget.cpp \
|
2018-02-26 22:26:18 +00:00
|
|
|
widgets/VTablesWidget.cpp \
|
2018-03-06 17:21:48 +00:00
|
|
|
widgets/TypesWidget.cpp \
|
2018-05-21 17:34:41 +00:00
|
|
|
widgets/HeadersWidget.cpp \
|
2018-03-08 12:24:15 +00:00
|
|
|
widgets/SearchWidget.cpp \
|
2017-12-13 17:36:00 +00:00
|
|
|
CutterApplication.cpp \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/PythonAPI.cpp \
|
2018-03-16 21:46:57 +00:00
|
|
|
dialogs/R2PluginsDialog.cpp \
|
|
|
|
widgets/CutterDockWidget.cpp \
|
2018-10-10 12:34:46 +00:00
|
|
|
widgets/CutterTreeWidget.cpp \
|
2018-03-17 19:26:51 +00:00
|
|
|
widgets/GraphWidget.cpp \
|
2019-01-24 17:13:04 +00:00
|
|
|
widgets/OverviewWidget.cpp \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/JsonTreeItem.cpp \
|
|
|
|
common/JsonModel.cpp \
|
2018-05-24 15:37:37 +00:00
|
|
|
dialogs/VersionInfoDialog.cpp \
|
2018-05-26 16:21:23 +00:00
|
|
|
widgets/ZignaturesWidget.cpp \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/AsyncTask.cpp \
|
2018-06-06 11:05:20 +00:00
|
|
|
dialogs/AsyncTaskDialog.cpp \
|
|
|
|
widgets/StackWidget.cpp \
|
|
|
|
widgets/RegistersWidget.cpp \
|
2018-06-20 09:24:28 +00:00
|
|
|
widgets/BacktraceWidget.cpp \
|
2018-05-28 20:06:24 +00:00
|
|
|
dialogs/OpenFileDialog.cpp \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/CommandTask.cpp \
|
|
|
|
common/ProgressIndicator.cpp \
|
|
|
|
common/R2Task.cpp \
|
2018-12-21 20:36:40 +00:00
|
|
|
widgets/DebugActions.cpp \
|
2018-06-14 11:49:22 +00:00
|
|
|
widgets/MemoryMapWidget.cpp \
|
2018-06-22 08:45:00 +00:00
|
|
|
dialogs/preferences/DebugOptionsWidget.cpp \
|
2019-03-16 12:41:45 +00:00
|
|
|
dialogs/preferences/PluginsOptionsWidget.cpp \
|
2018-06-26 07:38:44 +00:00
|
|
|
widgets/BreakpointWidget.cpp \
|
2018-07-01 21:29:38 +00:00
|
|
|
dialogs/BreakpointsDialog.cpp \
|
2018-07-19 14:35:46 +00:00
|
|
|
dialogs/AttachProcDialog.cpp \
|
2018-08-04 18:05:56 +00:00
|
|
|
widgets/RegisterRefsWidget.cpp \
|
2018-10-03 20:10:53 +00:00
|
|
|
dialogs/SetToDataDialog.cpp \
|
2018-12-19 08:39:23 +00:00
|
|
|
dialogs/EditVariablesDialog.cpp \
|
2018-10-10 09:37:24 +00:00
|
|
|
widgets/ColorSchemePrefWidget.cpp \
|
2018-10-22 09:16:56 +00:00
|
|
|
common/ColorSchemeFileSaver.cpp \
|
2018-11-10 09:17:52 +00:00
|
|
|
dialogs/EditFunctionDialog.cpp \
|
2018-11-17 19:17:16 +00:00
|
|
|
widgets/CutterTreeView.cpp \
|
2018-12-18 17:26:38 +00:00
|
|
|
widgets/ComboQuickFilterView.cpp \
|
2018-09-30 18:30:25 +00:00
|
|
|
dialogs/HexdumpRangeDialog.cpp \
|
2019-01-13 14:20:07 +00:00
|
|
|
common/QtResImporter.cpp \
|
2019-01-14 18:43:44 +00:00
|
|
|
common/CutterSeekable.cpp \
|
2019-01-19 20:54:02 +00:00
|
|
|
common/RefreshDeferrer.cpp \
|
2019-01-28 13:37:20 +00:00
|
|
|
dialogs/WelcomeDialog.cpp \
|
2019-02-22 16:50:45 +00:00
|
|
|
common/RunScriptTask.cpp \
|
2019-02-11 09:34:15 +00:00
|
|
|
dialogs/EditMethodDialog.cpp \
|
2019-02-13 06:38:47 +00:00
|
|
|
dialogs/LoadNewTypesDialog.cpp \
|
2018-06-23 16:59:23 +00:00
|
|
|
widgets/SdbWidget.cpp \
|
2019-02-09 13:05:06 +00:00
|
|
|
common/PythonManager.cpp \
|
2019-02-19 18:56:59 +00:00
|
|
|
plugins/PluginManager.cpp \
|
2019-03-04 21:45:17 +00:00
|
|
|
common/BasicBlockHighlighter.cpp \
|
2019-03-09 13:11:39 +00:00
|
|
|
dialogs/LinkTypeDialog.cpp \
|
2019-03-27 08:24:54 +00:00
|
|
|
common/UpdateWorker.cpp \
|
2019-04-03 08:55:39 +00:00
|
|
|
widgets/MemoryDockWidget.cpp \
|
2019-04-04 05:54:42 +00:00
|
|
|
common/HighDpiPixmap.cpp \
|
|
|
|
widgets/GraphGridLayout.cpp
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
HEADERS += \
|
2019-02-22 16:50:45 +00:00
|
|
|
core/Cutter.h \
|
|
|
|
core/CutterCommon.h \
|
|
|
|
core/CutterDescriptions.h \
|
2017-09-28 21:53:59 +00:00
|
|
|
widgets/DisassemblerGraphView.h \
|
2019-01-24 17:13:04 +00:00
|
|
|
widgets/OverviewView.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/RichTextPainter.h \
|
|
|
|
common/CachedFontMetrics.h \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/AboutDialog.h \
|
2017-12-14 13:42:24 +00:00
|
|
|
dialogs/preferences/AsmOptionsWidget.h \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/CommentsDialog.h \
|
2018-02-12 20:12:13 +00:00
|
|
|
dialogs/EditInstructionDialog.h \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/FlagDialog.h \
|
|
|
|
dialogs/RenameDialog.h \
|
|
|
|
dialogs/XrefsDialog.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/Helpers.h \
|
|
|
|
common/HexAsciiHighlighter.h \
|
|
|
|
common/HexHighlighter.h \
|
2019-02-22 16:50:45 +00:00
|
|
|
core/MainWindow.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/Highlighter.h \
|
|
|
|
common/MdHighlighter.h \
|
2018-08-18 10:51:11 +00:00
|
|
|
dialogs/InitialOptionsDialog.h \
|
2017-10-02 16:18:40 +00:00
|
|
|
dialogs/NewFileDialog.h \
|
2019-02-22 16:50:45 +00:00
|
|
|
common/AnalTask.h \
|
2017-10-02 16:18:40 +00:00
|
|
|
widgets/CommentsWidget.h \
|
|
|
|
widgets/ConsoleWidget.h \
|
|
|
|
widgets/Dashboard.h \
|
|
|
|
widgets/EntrypointWidget.h \
|
|
|
|
widgets/ExportsWidget.h \
|
|
|
|
widgets/FlagsWidget.h \
|
|
|
|
widgets/FunctionsWidget.h \
|
|
|
|
widgets/ImportsWidget.h \
|
|
|
|
widgets/Omnibar.h \
|
|
|
|
widgets/RelocsWidget.h \
|
|
|
|
widgets/SectionsWidget.h \
|
2018-10-20 18:20:06 +00:00
|
|
|
widgets/SegmentsWidget.h \
|
2017-10-02 16:18:40 +00:00
|
|
|
widgets/StringsWidget.h \
|
2017-10-10 10:17:05 +00:00
|
|
|
widgets/SymbolsWidget.h \
|
2017-10-11 21:07:32 +00:00
|
|
|
menus/DisassemblyContextMenu.h \
|
2017-10-12 19:55:15 +00:00
|
|
|
widgets/DisassemblyWidget.h \
|
2017-10-14 09:35:49 +00:00
|
|
|
widgets/HexdumpWidget.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/Configuration.h \
|
|
|
|
common/Colors.h \
|
2017-11-20 20:11:56 +00:00
|
|
|
dialogs/SaveProjectDialog.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/TempConfig.h \
|
|
|
|
common/SvgIconEngine.h \
|
|
|
|
common/SyntaxHighlighter.h \
|
2017-12-08 15:00:52 +00:00
|
|
|
widgets/PseudocodeWidget.h \
|
2017-12-13 22:38:46 +00:00
|
|
|
widgets/VisualNavbar.h \
|
2017-12-14 13:42:24 +00:00
|
|
|
widgets/GraphView.h \
|
2017-12-14 15:14:33 +00:00
|
|
|
dialogs/preferences/PreferencesDialog.h \
|
2018-10-17 07:30:56 +00:00
|
|
|
dialogs/preferences/AppearanceOptionsWidget.h \
|
2018-05-13 07:52:49 +00:00
|
|
|
dialogs/preferences/PreferenceCategory.h \
|
2017-12-19 18:38:06 +00:00
|
|
|
dialogs/preferences/GraphOptionsWidget.h \
|
2017-12-23 16:42:42 +00:00
|
|
|
widgets/QuickFilterView.h \
|
2018-02-04 14:32:18 +00:00
|
|
|
widgets/ClassesWidget.h \
|
2018-02-10 18:04:31 +00:00
|
|
|
widgets/ResourcesWidget.h \
|
2018-02-26 22:26:18 +00:00
|
|
|
CutterApplication.h \
|
2017-12-13 17:36:00 +00:00
|
|
|
widgets/VTablesWidget.h \
|
2018-03-06 17:21:48 +00:00
|
|
|
widgets/TypesWidget.h \
|
2018-05-21 17:34:41 +00:00
|
|
|
widgets/HeadersWidget.h \
|
2018-03-08 12:24:15 +00:00
|
|
|
widgets/SearchWidget.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/PythonAPI.h \
|
2018-03-16 21:46:57 +00:00
|
|
|
dialogs/R2PluginsDialog.h \
|
|
|
|
widgets/CutterDockWidget.h \
|
2018-10-10 12:34:46 +00:00
|
|
|
widgets/CutterTreeWidget.h \
|
2018-03-17 19:26:51 +00:00
|
|
|
widgets/GraphWidget.h \
|
2019-01-24 17:13:04 +00:00
|
|
|
widgets/OverviewWidget.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/JsonTreeItem.h \
|
|
|
|
common/JsonModel.h \
|
2018-05-24 15:37:37 +00:00
|
|
|
dialogs/VersionInfoDialog.h \
|
2018-05-26 16:21:23 +00:00
|
|
|
widgets/ZignaturesWidget.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/AsyncTask.h \
|
2018-06-06 11:05:20 +00:00
|
|
|
dialogs/AsyncTaskDialog.h \
|
|
|
|
widgets/StackWidget.h \
|
|
|
|
widgets/RegistersWidget.h \
|
2018-06-20 09:24:28 +00:00
|
|
|
widgets/BacktraceWidget.h \
|
2018-05-28 20:06:24 +00:00
|
|
|
dialogs/OpenFileDialog.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/StringsTask.h \
|
|
|
|
common/FunctionsTask.h \
|
|
|
|
common/CommandTask.h \
|
|
|
|
common/ProgressIndicator.h \
|
2018-07-22 13:04:13 +00:00
|
|
|
plugins/CutterPlugin.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/R2Task.h \
|
2018-12-21 20:36:40 +00:00
|
|
|
widgets/DebugActions.h \
|
2018-06-14 11:49:22 +00:00
|
|
|
widgets/MemoryMapWidget.h \
|
2018-06-22 08:45:00 +00:00
|
|
|
dialogs/preferences/DebugOptionsWidget.h \
|
2019-03-16 12:41:45 +00:00
|
|
|
dialogs/preferences/PluginsOptionsWidget.h \
|
2018-06-26 07:38:44 +00:00
|
|
|
widgets/BreakpointWidget.h \
|
2018-07-01 21:29:38 +00:00
|
|
|
dialogs/BreakpointsDialog.h \
|
2018-07-19 14:35:46 +00:00
|
|
|
dialogs/AttachProcDialog.h \
|
2018-08-04 18:05:56 +00:00
|
|
|
widgets/RegisterRefsWidget.h \
|
2018-08-18 10:51:11 +00:00
|
|
|
dialogs/SetToDataDialog.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/InitialOptions.h \
|
2018-12-19 08:39:23 +00:00
|
|
|
dialogs/EditVariablesDialog.h \
|
2018-10-17 07:55:53 +00:00
|
|
|
common/ColorSchemeFileSaver.h \
|
2018-10-22 09:16:56 +00:00
|
|
|
widgets/ColorSchemePrefWidget.h \
|
2018-11-10 09:17:52 +00:00
|
|
|
dialogs/EditFunctionDialog.h \
|
2018-11-17 19:17:16 +00:00
|
|
|
widgets/CutterTreeView.h \
|
2018-12-18 17:26:38 +00:00
|
|
|
widgets/ComboQuickFilterView.h \
|
2018-09-30 18:30:25 +00:00
|
|
|
dialogs/HexdumpRangeDialog.h \
|
2019-01-13 14:20:07 +00:00
|
|
|
common/QtResImporter.h \
|
2019-01-14 18:43:44 +00:00
|
|
|
common/CutterSeekable.h \
|
2019-01-19 20:54:02 +00:00
|
|
|
common/RefreshDeferrer.h \
|
2019-01-28 13:37:20 +00:00
|
|
|
dialogs/WelcomeDialog.h \
|
2019-02-22 16:50:45 +00:00
|
|
|
common/RunScriptTask.h \
|
2018-08-17 11:27:07 +00:00
|
|
|
common/Json.h \
|
2019-02-11 09:34:15 +00:00
|
|
|
dialogs/EditMethodDialog.h \
|
2019-02-13 06:38:47 +00:00
|
|
|
dialogs/LoadNewTypesDialog.h \
|
2018-06-23 16:59:23 +00:00
|
|
|
widgets/SdbWidget.h \
|
2019-02-09 13:05:06 +00:00
|
|
|
common/PythonManager.h \
|
2019-02-19 18:56:59 +00:00
|
|
|
plugins/PluginManager.h \
|
2019-03-04 21:45:17 +00:00
|
|
|
common/BasicBlockHighlighter.h \
|
2019-03-09 13:11:39 +00:00
|
|
|
common/UpdateWorker.h \
|
2019-03-27 08:24:54 +00:00
|
|
|
dialogs/LinkTypeDialog.h \
|
2019-04-03 08:55:39 +00:00
|
|
|
widgets/MemoryDockWidget.h \
|
2019-04-04 05:54:42 +00:00
|
|
|
common/HighDpiPixmap.h \
|
|
|
|
widgets/GraphLayout.h \
|
|
|
|
widgets/GraphGridLayout.h
|
2017-10-01 14:36:40 +00:00
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
FORMS += \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/AboutDialog.ui \
|
2017-12-14 13:42:24 +00:00
|
|
|
dialogs/preferences/AsmOptionsWidget.ui \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/CommentsDialog.ui \
|
2018-02-12 20:12:13 +00:00
|
|
|
dialogs/EditInstructionDialog.ui \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/FlagDialog.ui \
|
|
|
|
dialogs/RenameDialog.ui \
|
|
|
|
dialogs/XrefsDialog.ui \
|
|
|
|
dialogs/NewfileDialog.ui \
|
2018-08-18 10:51:11 +00:00
|
|
|
dialogs/InitialOptionsDialog.ui \
|
2018-10-22 09:16:56 +00:00
|
|
|
dialogs/EditFunctionDialog.ui \
|
2019-02-22 16:50:45 +00:00
|
|
|
core/MainWindow.ui \
|
2017-10-02 16:18:40 +00:00
|
|
|
widgets/CommentsWidget.ui \
|
|
|
|
widgets/ConsoleWidget.ui \
|
|
|
|
widgets/Dashboard.ui \
|
|
|
|
widgets/EntrypointWidget.ui \
|
|
|
|
widgets/FlagsWidget.ui \
|
|
|
|
widgets/ExportsWidget.ui \
|
|
|
|
widgets/FunctionsWidget.ui \
|
|
|
|
widgets/ImportsWidget.ui \
|
|
|
|
widgets/RelocsWidget.ui \
|
|
|
|
widgets/StringsWidget.ui \
|
2017-10-12 19:55:15 +00:00
|
|
|
widgets/SymbolsWidget.ui \
|
2017-10-21 19:20:10 +00:00
|
|
|
widgets/HexdumpWidget.ui \
|
2017-12-06 23:19:14 +00:00
|
|
|
dialogs/SaveProjectDialog.ui \
|
2017-12-14 15:14:33 +00:00
|
|
|
dialogs/preferences/PreferencesDialog.ui \
|
2018-10-17 07:30:56 +00:00
|
|
|
dialogs/preferences/AppearanceOptionsWidget.ui \
|
2017-12-19 18:38:06 +00:00
|
|
|
dialogs/preferences/GraphOptionsWidget.ui \
|
2017-12-21 15:00:18 +00:00
|
|
|
widgets/QuickFilterView.ui \
|
2017-12-23 16:42:42 +00:00
|
|
|
widgets/PseudocodeWidget.ui \
|
2018-02-26 22:26:18 +00:00
|
|
|
widgets/ClassesWidget.ui \
|
2017-12-13 17:36:00 +00:00
|
|
|
widgets/VTablesWidget.ui \
|
2018-03-06 17:21:48 +00:00
|
|
|
widgets/TypesWidget.ui \
|
2018-05-21 17:34:41 +00:00
|
|
|
widgets/HeadersWidget.ui \
|
2018-03-08 12:24:15 +00:00
|
|
|
widgets/SearchWidget.ui \
|
2018-05-01 18:53:14 +00:00
|
|
|
dialogs/R2PluginsDialog.ui \
|
2018-05-24 15:37:37 +00:00
|
|
|
dialogs/VersionInfoDialog.ui \
|
2018-05-26 18:49:57 +00:00
|
|
|
widgets/ZignaturesWidget.ui \
|
2018-06-06 11:05:20 +00:00
|
|
|
dialogs/AsyncTaskDialog.ui \
|
|
|
|
widgets/StackWidget.ui \
|
|
|
|
widgets/RegistersWidget.ui \
|
2018-06-20 09:24:28 +00:00
|
|
|
widgets/BacktraceWidget.ui \
|
2018-06-12 08:43:14 +00:00
|
|
|
dialogs/OpenFileDialog.ui \
|
2018-06-14 11:49:22 +00:00
|
|
|
widgets/MemoryMapWidget.ui \
|
2018-06-22 08:45:00 +00:00
|
|
|
dialogs/preferences/DebugOptionsWidget.ui \
|
2018-06-26 07:38:44 +00:00
|
|
|
widgets/BreakpointWidget.ui \
|
2018-07-01 21:29:38 +00:00
|
|
|
dialogs/BreakpointsDialog.ui \
|
2018-07-19 14:35:46 +00:00
|
|
|
dialogs/AttachProcDialog.ui \
|
2018-08-04 18:05:56 +00:00
|
|
|
widgets/RegisterRefsWidget.ui \
|
2018-10-03 20:10:53 +00:00
|
|
|
dialogs/SetToDataDialog.ui \
|
2018-12-19 08:39:23 +00:00
|
|
|
dialogs/EditVariablesDialog.ui \
|
2018-11-10 09:17:52 +00:00
|
|
|
widgets/ColorSchemePrefWidget.ui \
|
2018-11-17 19:17:16 +00:00
|
|
|
widgets/CutterTreeView.ui \
|
2018-12-18 17:26:38 +00:00
|
|
|
widgets/ComboQuickFilterView.ui \
|
2019-01-19 20:54:02 +00:00
|
|
|
dialogs/HexdumpRangeDialog.ui \
|
2018-08-17 11:27:07 +00:00
|
|
|
dialogs/WelcomeDialog.ui \
|
2019-02-11 09:34:15 +00:00
|
|
|
dialogs/EditMethodDialog.ui \
|
2019-02-13 06:38:47 +00:00
|
|
|
dialogs/LoadNewTypesDialog.ui \
|
2019-03-04 21:45:17 +00:00
|
|
|
widgets/SdbWidget.ui \
|
|
|
|
dialogs/LinkTypeDialog.ui
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
RESOURCES += \
|
2018-01-09 11:03:07 +00:00
|
|
|
resources.qrc \
|
|
|
|
themes/qdarkstyle/style.qrc
|
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2018-03-04 17:42:02 +00:00
|
|
|
DISTFILES += Cutter.astylerc
|
2017-04-13 16:56:12 +00:00
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
# 'make install' for AppImage
|
|
|
|
unix {
|
|
|
|
isEmpty(PREFIX) {
|
|
|
|
PREFIX = /usr/local
|
2017-03-30 03:07:34 +00:00
|
|
|
}
|
|
|
|
|
2017-12-06 15:52:59 +00:00
|
|
|
icon_file = img/cutter.svg
|
2017-09-02 20:48:41 +00:00
|
|
|
|
|
|
|
share_pixmaps.path = $$PREFIX/share/pixmaps
|
|
|
|
share_pixmaps.files = $$icon_file
|
|
|
|
|
|
|
|
|
2018-10-20 08:10:00 +00:00
|
|
|
desktop_file = org.radare.Cutter.desktop
|
2017-04-06 08:29:36 +00:00
|
|
|
|
|
|
|
share_applications.path = $$PREFIX/share/applications
|
|
|
|
share_applications.files = $$desktop_file
|
|
|
|
|
2018-10-20 08:10:00 +00:00
|
|
|
appstream_file = org.radare.Cutter.appdata.xml
|
2018-06-12 13:03:01 +00:00
|
|
|
|
2018-10-20 08:10:00 +00:00
|
|
|
# Used by ???
|
2018-06-12 13:03:01 +00:00
|
|
|
share_appdata.path = $$PREFIX/share/appdata
|
|
|
|
share_appdata.files = $$appstream_file
|
|
|
|
|
2018-10-20 08:10:00 +00:00
|
|
|
# Used by AppImageHub (See https://www.freedesktop.org/software/appstream)
|
|
|
|
share_appdata.path = $$PREFIX/share/metainfo
|
|
|
|
share_appdata.files = $$appstream_file
|
|
|
|
|
2018-06-12 13:03:01 +00:00
|
|
|
# built-in no need for files atm
|
|
|
|
target.path = $$PREFIX/bin
|
|
|
|
|
2019-02-11 20:26:11 +00:00
|
|
|
INSTALLS += target share_appdata share_applications share_pixmaps
|
2017-04-06 08:29:36 +00:00
|
|
|
|
2017-05-22 21:43:13 +00:00
|
|
|
# Triggered for example by 'qmake APPIMAGE=1'
|
|
|
|
!isEmpty(APPIMAGE){
|
2017-04-06 08:29:36 +00:00
|
|
|
appimage_root.path = /
|
2017-12-06 15:52:59 +00:00
|
|
|
appimage_root.files = $$icon_file $$desktop_file
|
2017-04-06 08:29:36 +00:00
|
|
|
|
|
|
|
INSTALLS += appimage_root
|
2017-12-09 22:01:30 +00:00
|
|
|
DEFINES += APPIMAGE
|
2017-04-06 08:29:36 +00:00
|
|
|
}
|
|
|
|
}
|