2017-03-29 10:18:37 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
|
2017-09-25 12:55:41 +00:00
|
|
|
TARGET = cutter
|
2017-04-06 08:29:36 +00:00
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
# The application version
|
2017-10-03 12:42:31 +00:00
|
|
|
VERSION = 1.0
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
ICON = img/Enso.icns
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-12 16:49:01 +00:00
|
|
|
QT += core gui widgets webengine webenginewidgets
|
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
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
# Define the preprocessor macro to get the application version in our application.
|
|
|
|
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-10-08 06:23:22 +00:00
|
|
|
INCLUDEPATH *= .
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
# Generate debug symbols in release mode
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -Zi # Compiler
|
|
|
|
QMAKE_LFLAGS_RELEASE += /DEBUG # Linker
|
|
|
|
}
|
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
macx {
|
|
|
|
QMAKE_CXXFLAGS = -mmacosx-version-min=10.7 -std=gnu0x -stdlib=libc++
|
|
|
|
}
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-03-30 03:07:34 +00:00
|
|
|
|
2017-08-31 17:51:45 +00:00
|
|
|
unix:exists(/usr/local/include/libr) {
|
|
|
|
INCLUDEPATH += /usr/local/include/libr
|
|
|
|
}
|
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
SOURCES += \
|
|
|
|
main.cpp \
|
2017-09-25 12:55:41 +00:00
|
|
|
cutter.cpp \
|
2017-09-28 21:53:59 +00:00
|
|
|
widgets/DisassemblerGraphView.cpp \
|
2017-10-12 19:55:15 +00:00
|
|
|
widgets/PreviewWidget.cpp \
|
2017-10-01 14:36:40 +00:00
|
|
|
utils/RichTextPainter.cpp \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/OptionsDialog.cpp \
|
|
|
|
dialogs/AboutDialog.cpp \
|
|
|
|
dialogs/CommentsDialog.cpp \
|
|
|
|
dialogs/FlagDialog.cpp \
|
|
|
|
dialogs/RenameDialog.cpp \
|
|
|
|
dialogs/XrefsDialog.cpp \
|
|
|
|
MainWindow.cpp \
|
|
|
|
utils/Helpers.cpp \
|
|
|
|
utils/HexAsciiHighlighter.cpp \
|
|
|
|
utils/HexHighlighter.cpp \
|
|
|
|
utils/Highlighter.cpp \
|
2017-10-02 09:41:28 +00:00
|
|
|
utils/MdHighlighter.cpp \
|
|
|
|
dialogs/AsmOptionsDialog.cpp \
|
|
|
|
dialogs/CreateNewDialog.cpp \
|
2017-10-02 16:18:40 +00:00
|
|
|
dialogs/NewFileDialog.cpp \
|
|
|
|
RadareWebServer.cpp \
|
|
|
|
AnalThread.cpp \
|
|
|
|
widgets/CodeGraphic.cpp \
|
|
|
|
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/Notepad.cpp \
|
|
|
|
widgets/Omnibar.cpp \
|
|
|
|
widgets/PieView.cpp \
|
|
|
|
widgets/RelocsWidget.cpp \
|
|
|
|
widgets/SdbDock.cpp \
|
|
|
|
widgets/SectionsDock.cpp \
|
|
|
|
widgets/SectionsWidget.cpp \
|
|
|
|
widgets/Sidebar.cpp \
|
|
|
|
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 \
|
|
|
|
widgets/SidebarWidget.cpp \
|
2017-10-14 09:35:49 +00:00
|
|
|
widgets/HexdumpWidget.cpp \
|
|
|
|
utils/Configuration.cpp
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
HEADERS += \
|
2017-09-25 12:55:41 +00:00
|
|
|
cutter.h \
|
2017-09-28 21:53:59 +00:00
|
|
|
widgets/DisassemblerGraphView.h \
|
2017-10-12 19:55:15 +00:00
|
|
|
widgets/PreviewWidget.h \
|
2017-09-28 21:53:59 +00:00
|
|
|
utils/RichTextPainter.h \
|
2017-10-01 14:36:40 +00:00
|
|
|
utils/CachedFontMetrics.h \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/AboutDialog.h \
|
|
|
|
dialogs/AsmOptionsDialog.h \
|
|
|
|
dialogs/CommentsDialog.h \
|
|
|
|
dialogs/FlagDialog.h \
|
|
|
|
dialogs/RenameDialog.h \
|
|
|
|
dialogs/XrefsDialog.h \
|
|
|
|
utils/Helpers.h \
|
|
|
|
utils/HexAsciiHighlighter.h \
|
|
|
|
utils/HexHighlighter.h \
|
|
|
|
MainWindow.h \
|
|
|
|
utils/Highlighter.h \
|
|
|
|
utils/MdHighlighter.h \
|
2017-10-02 09:41:28 +00:00
|
|
|
dialogs/OptionsDialog.h \
|
|
|
|
dialogs/CreateNewDialog.h \
|
2017-10-02 16:18:40 +00:00
|
|
|
dialogs/NewFileDialog.h \
|
|
|
|
RadareWebServer.h \
|
|
|
|
AnalThread.h \
|
|
|
|
widgets/CodeGraphic.h \
|
|
|
|
widgets/CommentsWidget.h \
|
|
|
|
widgets/ConsoleWidget.h \
|
|
|
|
widgets/Dashboard.h \
|
|
|
|
widgets/DockWidget.h \
|
|
|
|
widgets/EntrypointWidget.h \
|
|
|
|
widgets/ExportsWidget.h \
|
|
|
|
widgets/FlagsWidget.h \
|
|
|
|
widgets/FunctionsWidget.h \
|
|
|
|
widgets/ImportsWidget.h \
|
|
|
|
widgets/Notepad.h \
|
|
|
|
widgets/Omnibar.h \
|
|
|
|
widgets/PieView.h \
|
|
|
|
widgets/RelocsWidget.h \
|
|
|
|
widgets/SdbDock.h \
|
|
|
|
widgets/SectionsDock.h \
|
|
|
|
widgets/SectionsWidget.h \
|
|
|
|
widgets/Sidebar.h \
|
|
|
|
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 \
|
|
|
|
widgets/SidebarWidget.h \
|
2017-10-14 09:35:49 +00:00
|
|
|
widgets/HexdumpWidget.h \
|
|
|
|
utils/Configuration.h
|
2017-10-01 14:36:40 +00:00
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
FORMS += \
|
2017-10-12 19:55:15 +00:00
|
|
|
widgets/PreviewWidget.ui \
|
2017-10-01 19:09:42 +00:00
|
|
|
dialogs/AboutDialog.ui \
|
|
|
|
dialogs/AsmOptionsDialog.ui \
|
|
|
|
dialogs/CommentsDialog.ui \
|
|
|
|
dialogs/FlagDialog.ui \
|
|
|
|
dialogs/RenameDialog.ui \
|
|
|
|
dialogs/XrefsDialog.ui \
|
|
|
|
dialogs/NewfileDialog.ui \
|
|
|
|
dialogs/OptionsDialog.ui \
|
2017-10-02 09:41:28 +00:00
|
|
|
MainWindow.ui \
|
2017-10-02 16:18:40 +00:00
|
|
|
dialogs/CreateNewDialog.ui \
|
|
|
|
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/Notepad.ui \
|
|
|
|
widgets/SdbDock.ui \
|
|
|
|
widgets/RelocsWidget.ui \
|
|
|
|
widgets/SectionsDock.ui \
|
|
|
|
widgets/Sidebar.ui \
|
|
|
|
widgets/StringsWidget.ui \
|
2017-10-12 19:55:15 +00:00
|
|
|
widgets/SymbolsWidget.ui \
|
|
|
|
widgets/SidebarWidget.ui \
|
|
|
|
widgets/HexdumpWidget.ui
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
resources.qrc
|
|
|
|
|
2017-09-25 12:55:41 +00:00
|
|
|
DISTFILES += cutter.astylerc
|
2017-04-13 16:56:12 +00:00
|
|
|
|
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
include(lib_radare2.pri)
|
|
|
|
|
|
|
|
|
|
|
|
# 'make install' for AppImage
|
|
|
|
unix {
|
|
|
|
isEmpty(PREFIX) {
|
|
|
|
PREFIX = /usr/local
|
2017-03-30 03:07:34 +00:00
|
|
|
}
|
|
|
|
|
2017-09-25 17:51:49 +00:00
|
|
|
icon_file = img/cutter-small.png
|
2017-09-02 20:48:41 +00:00
|
|
|
|
|
|
|
share_pixmaps.path = $$PREFIX/share/pixmaps
|
|
|
|
share_pixmaps.files = $$icon_file
|
|
|
|
|
|
|
|
|
2017-09-25 17:51:49 +00:00
|
|
|
desktop_file = cutter.desktop
|
2017-04-06 08:29:36 +00:00
|
|
|
|
|
|
|
# built-in no need for files atm
|
|
|
|
target.path = $$PREFIX/bin
|
|
|
|
|
|
|
|
share_applications.path = $$PREFIX/share/applications
|
|
|
|
share_applications.files = $$desktop_file
|
|
|
|
|
2017-09-02 20:48:41 +00:00
|
|
|
INSTALLS += target 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-09-25 17:51:49 +00:00
|
|
|
# UGLY work around for the logo name in cutter.desktop
|
|
|
|
# Would be better to have a file called cutter.png in the first place
|
|
|
|
system(cp img/cutter-small.png $$OUT_PWD/cutter-small.png)
|
2017-04-06 08:29:36 +00:00
|
|
|
|
|
|
|
appimage_root.path = /
|
2017-09-25 17:51:49 +00:00
|
|
|
appimage_root.files = $$OUT_PWD/cutter.png $$desktop_file
|
2017-04-06 08:29:36 +00:00
|
|
|
|
|
|
|
INSTALLS += appimage_root
|
|
|
|
}
|
|
|
|
}
|