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-03-30 03:07:34 +00:00
|
|
|
win32 {
|
2017-08-31 17:51:45 +00:00
|
|
|
VERSION = 1.0
|
|
|
|
# Generate debug symbols in release mode
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -Zi # Compiler
|
|
|
|
QMAKE_LFLAGS_RELEASE += /DEBUG # Linker
|
2017-03-30 03:07:34 +00:00
|
|
|
} else {
|
2017-08-31 17:51:45 +00:00
|
|
|
VERSION = 1.0-dev
|
2017-03-30 03:07:34 +00:00
|
|
|
}
|
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-04-06 08:29:36 +00:00
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
QT_CONFIG -= no-pkg-config
|
|
|
|
|
|
|
|
CONFIG += c++11
|
|
|
|
|
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-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-04-06 08:29:36 +00:00
|
|
|
INCLUDEPATH *= .
|
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 \
|
|
|
|
mainwindow.cpp \
|
2017-03-29 10:18:37 +00:00
|
|
|
newfiledialog.cpp \
|
|
|
|
optionsdialog.cpp \
|
|
|
|
highlighter.cpp \
|
2017-09-25 12:55:41 +00:00
|
|
|
cutter.cpp \
|
2017-03-29 10:18:37 +00:00
|
|
|
createnewdialog.cpp \
|
|
|
|
hexascii_highlighter.cpp \
|
|
|
|
widgets/pieview.cpp \
|
|
|
|
widgets/sectionswidget.cpp \
|
|
|
|
widgets/codegraphic.cpp \
|
|
|
|
widgets/notepad.cpp \
|
|
|
|
mdhighlighter.cpp \
|
|
|
|
widgets/functionswidget.cpp \
|
|
|
|
dialogs/renamedialog.cpp \
|
|
|
|
dialogs/aboutdialog.cpp \
|
|
|
|
widgets/importswidget.cpp \
|
|
|
|
widgets/symbolswidget.cpp \
|
|
|
|
widgets/relocswidget.cpp \
|
|
|
|
widgets/commentswidget.cpp \
|
|
|
|
widgets/stringswidget.cpp \
|
|
|
|
widgets/flagswidget.cpp \
|
2017-04-10 10:25:33 +00:00
|
|
|
widgets/memorywidget.cpp \
|
2017-05-19 07:45:26 +00:00
|
|
|
widgets/exportswidget.cpp \
|
2017-03-29 10:18:37 +00:00
|
|
|
widgets/sdbdock.cpp \
|
|
|
|
analthread.cpp \
|
|
|
|
dialogs/commentsdialog.cpp \
|
|
|
|
widgets/sidebar.cpp \
|
|
|
|
helpers.cpp \
|
|
|
|
widgets/omnibar.cpp \
|
|
|
|
widgets/dashboard.cpp \
|
|
|
|
dialogs/xrefsdialog.cpp \
|
2017-04-12 10:16:43 +00:00
|
|
|
hexhighlighter.cpp \
|
2017-04-26 22:56:19 +00:00
|
|
|
widgets/sectionsdock.cpp \
|
2017-05-13 16:46:30 +00:00
|
|
|
widgets/consolewidget.cpp \
|
2017-07-11 11:05:42 +00:00
|
|
|
radarewebserver.cpp \
|
2017-07-13 18:49:12 +00:00
|
|
|
widgets/entrypointwidget.cpp \
|
2017-07-11 11:05:42 +00:00
|
|
|
dialogs/flagdialog.cpp
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
HEADERS += \
|
|
|
|
mainwindow.h \
|
2017-03-29 10:18:37 +00:00
|
|
|
newfiledialog.h \
|
|
|
|
optionsdialog.h \
|
|
|
|
highlighter.h \
|
|
|
|
createnewdialog.h \
|
|
|
|
hexascii_highlighter.h \
|
|
|
|
widgets/pieview.h \
|
|
|
|
widgets/sectionswidget.h \
|
|
|
|
widgets/codegraphic.h \
|
|
|
|
widgets/notepad.h \
|
|
|
|
mdhighlighter.h \
|
|
|
|
widgets/functionswidget.h \
|
|
|
|
dialogs/renamedialog.h \
|
|
|
|
dialogs/aboutdialog.h \
|
|
|
|
widgets/importswidget.h \
|
|
|
|
widgets/symbolswidget.h \
|
|
|
|
widgets/relocswidget.h \
|
|
|
|
widgets/commentswidget.h \
|
|
|
|
widgets/stringswidget.h \
|
|
|
|
widgets/flagswidget.h \
|
2017-04-10 10:25:33 +00:00
|
|
|
widgets/memorywidget.h \
|
2017-05-19 07:45:26 +00:00
|
|
|
widgets/exportswidget.h \
|
2017-03-29 10:18:37 +00:00
|
|
|
widgets/sdbdock.h \
|
|
|
|
analthread.h \
|
|
|
|
dialogs/commentsdialog.h \
|
|
|
|
widgets/sidebar.h \
|
|
|
|
helpers.h \
|
|
|
|
widgets/omnibar.h \
|
|
|
|
widgets/dashboard.h \
|
|
|
|
dialogs/xrefsdialog.h \
|
2017-04-12 10:16:43 +00:00
|
|
|
hexhighlighter.h \
|
2017-04-13 15:05:33 +00:00
|
|
|
widgets/sectionsdock.h \
|
2017-04-26 22:56:19 +00:00
|
|
|
widgets/dockwidget.h \
|
2017-05-13 16:46:30 +00:00
|
|
|
widgets/consolewidget.h \
|
2017-05-13 18:09:36 +00:00
|
|
|
radarewebserver.h \
|
2017-07-02 11:11:02 +00:00
|
|
|
settings.h \
|
2017-07-13 18:49:12 +00:00
|
|
|
widgets/entrypointwidget.h \
|
2017-09-25 12:55:41 +00:00
|
|
|
cutter.h \
|
2017-07-11 11:05:42 +00:00
|
|
|
dialogs/flagdialog.h
|
2017-04-06 08:29:36 +00:00
|
|
|
FORMS += \
|
|
|
|
mainwindow.ui \
|
2017-03-29 10:18:37 +00:00
|
|
|
newfiledialog.ui \
|
|
|
|
optionsdialog.ui \
|
|
|
|
createnewdialog.ui \
|
|
|
|
widgets/notepad.ui \
|
|
|
|
widgets/functionswidget.ui \
|
|
|
|
dialogs/aboutdialog.ui \
|
|
|
|
dialogs/renamedialog.ui \
|
|
|
|
widgets/importswidget.ui \
|
|
|
|
widgets/symbolswidget.ui \
|
|
|
|
widgets/relocswidget.ui \
|
|
|
|
widgets/commentswidget.ui \
|
|
|
|
widgets/stringswidget.ui \
|
|
|
|
widgets/flagswidget.ui \
|
2017-04-10 10:25:33 +00:00
|
|
|
widgets/memorywidget.ui \
|
2017-05-19 07:45:26 +00:00
|
|
|
widgets/exportswidget.ui \
|
2017-03-29 10:18:37 +00:00
|
|
|
widgets/sdbdock.ui \
|
|
|
|
dialogs/commentsdialog.ui \
|
|
|
|
widgets/sidebar.ui \
|
|
|
|
widgets/dashboard.ui \
|
2017-04-12 10:16:43 +00:00
|
|
|
dialogs/xrefsdialog.ui \
|
2017-04-26 22:56:19 +00:00
|
|
|
widgets/sectionsdock.ui \
|
2017-07-11 11:05:42 +00:00
|
|
|
widgets/consolewidget.ui \
|
2017-07-13 18:49:12 +00:00
|
|
|
widgets/entrypointwidget.ui \
|
2017-07-11 11:05:42 +00:00
|
|
|
dialogs/flagdialog.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-02 20:48:41 +00:00
|
|
|
icon_file = img/iaito-small.png
|
|
|
|
|
|
|
|
share_pixmaps.path = $$PREFIX/share/pixmaps
|
|
|
|
share_pixmaps.files = $$icon_file
|
|
|
|
|
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
desktop_file = iaito.desktop
|
|
|
|
|
|
|
|
# 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-04-06 08:29:36 +00:00
|
|
|
# UGLY work around for the logo name in iaito.desktop
|
|
|
|
# Would be better to have a file called iaito.png in the first place
|
2017-09-02 20:48:41 +00:00
|
|
|
system(cp img/iaito-small.png $$OUT_PWD/iaito-small.png)
|
2017-04-06 08:29:36 +00:00
|
|
|
|
|
|
|
appimage_root.path = /
|
|
|
|
appimage_root.files = $$OUT_PWD/iaito.png $$desktop_file
|
|
|
|
|
|
|
|
INSTALLS += appimage_root
|
|
|
|
}
|
|
|
|
}
|