2017-03-29 10:18:37 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
TARGET = iaito
|
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
# The application version
|
2017-03-30 03:07:34 +00:00
|
|
|
win32 {
|
|
|
|
VERSION = 1.0
|
|
|
|
} else {
|
|
|
|
VERSION = 1.0-dev
|
|
|
|
}
|
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
|
|
|
|
|
|
|
QT += core gui webkit webkitwidgets
|
2017-04-06 08:29:36 +00:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
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-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 \
|
|
|
|
qrcore.cpp \
|
|
|
|
createnewdialog.cpp \
|
|
|
|
hexascii_highlighter.cpp \
|
|
|
|
webserverthread.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-03-29 10:18:37 +00:00
|
|
|
qrdisasm.cpp \
|
|
|
|
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 \
|
|
|
|
widgets/sectionsdock.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 \
|
|
|
|
qrcore.h \
|
|
|
|
createnewdialog.h \
|
|
|
|
hexascii_highlighter.h \
|
|
|
|
webserverthread.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-03-29 10:18:37 +00:00
|
|
|
qrdisasm.h \
|
|
|
|
widgets/sdbdock.h \
|
|
|
|
analthread.h \
|
|
|
|
dialogs/commentsdialog.h \
|
|
|
|
widgets/sidebar.h \
|
|
|
|
helpers.h \
|
|
|
|
widgets/omnibar.h \
|
|
|
|
widgets/dashboard.h \
|
|
|
|
dialogs/xrefsdialog.h \
|
|
|
|
widgets/banned.h \
|
2017-04-12 10:16:43 +00:00
|
|
|
hexhighlighter.h \
|
|
|
|
widgets/sectionsdock.h
|
2017-03-29 10:18:37 +00:00
|
|
|
|
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-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 \
|
|
|
|
widgets/sectionsdock.ui
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
resources.qrc
|
|
|
|
|
2017-04-06 08:29:36 +00:00
|
|
|
include(lib_radare2.pri)
|
|
|
|
|
|
|
|
|
|
|
|
# 'make install' for AppImage
|
|
|
|
unix {
|
|
|
|
isEmpty(PREFIX) {
|
|
|
|
PREFIX = /usr/local
|
|
|
|
DEFAULT_PREFIX = true
|
2017-03-30 03:07:34 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# TODO:
|
|
|
|
# iaito.png should be copied to $PREFIX/share/icons/$WIDTHx$HEIGHT
|
|
|
|
|
|
|
|
INSTALLS += target share_applications
|
|
|
|
|
|
|
|
# if a custom PREFIX is supplied, we asume it's an AppImage install
|
|
|
|
!defined(DEFAULT_PREFIX, var) {
|
|
|
|
# UGLY work around for the logo name in iaito.desktop
|
|
|
|
# Would be better to have a file called iaito.png in the first place
|
|
|
|
system(cp img/logo-small.png $$OUT_PWD/iaito.png)
|
|
|
|
|
|
|
|
appimage_root.path = /
|
|
|
|
appimage_root.files = $$OUT_PWD/iaito.png $$desktop_file
|
|
|
|
|
|
|
|
INSTALLS += appimage_root
|
|
|
|
}
|
|
|
|
}
|