Files
WorkPad/WorkPad.pro

115 lines
3.4 KiB
Prolog

QT += core gui
greaterThan(QT_MAJOR_VERSION, 5): QT += widgets webenginewidgets
CONFIG += c++17
win32:VERSION = 3.0.0.0 # major.minor.patch.build
else:VERSION = 3.0.0 # major.minor.patch
DEFINES += APP_VERSION=\"\\\"$${VERSION}-rc1\\\"\"
DEFINES += APP_NAME=\"\\\"WorkPad\\\"\"
# remove possible other optimization flags
win32 {
message("Build for Windows")
QMAKE_CXXFLAGS_RELEASE -= -O
QMAKE_CXXFLAGS_RELEASE -= -O1
QMAKE_CXXFLAGS_RELEASE *= -O2
DEFINES += APP_OS=\"\\\"Windows\\\"\"
DEFINES += APP_OS_VERSION=\"\\\"$$system(ver)\\\"\"
equals(QMAKE_TARGET.arch, arm64) {
message("CPU Architecture : aarch64")
DEFINES += APP_ARCH=\"\\\"arm64\\\"\"
}
equals(QMAKE_TARGET.arch, x86_64) {
message("CPU Architecture : x64")
QMAKE_CXXFLAGS_RELEASE += -favor:INTEL64
DEFINES += APP_ARCH=\"\\\"x64\\\"\"
}
RC_ICONS = icon.ico
QMAKE_TARGET_COMPANY = "Aurelie Delhaie"
QMAKE_TARGET_PRODUCT = "WorkPad"
QMAKE_TARGET_DESCRIPTION = "WorkPad"
}
macx {
message("Build for macOS")
ICON = icon.icns
QMAKE_INFO_PLIST = Info.plist
QMAKE_CXXFLAGS_RELEASE -= -O
QMAKE_CXXFLAGS_RELEASE -= -O1
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE *= -O3
QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64
DEFINES += APP_OS=\"\\\"macOS\\\"\"
DEFINES += APP_OS_VERSION=\"\\\"$$system(uname -r)\\\"\"
DEFINES += APP_ARCH=\"\\\"universal\\\"\"
}
linux-* {
message("Build for Linux")
DEFINES += APP_OS=\"\\\"$$system(cat /etc/issue | cut -d\' \' -f1)\\\"\"
DEFINES += APP_OS_VERSION=\"\\\"$$system(uname -r)\\\"\"
DEFINES += APP_ARCH=\"\\\"$$system(uname -m)\\\"\"
ARCH = $$system(uname -m)
equals(ARCH, aarch64) {
message("CPU Architecture : aarch64")
QMAKE_CXXFLAGS_RELEASE += -mtune=cortex-a72
}
equals(ARCH, amd64) {
message("CPU Architecture : amd64")
QMAKE_CXXFLAGS_RELEASE += -march=skylake
}
QMAKE_CXXFLAGS_RELEASE *= -O3
}
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
src/frames/configdialog.cpp \
src/services/configmanager.cpp \
src/frames/exportdialog.cpp \
src/frames/renamedialog.cpp \
src/frames/createdialog.cpp \
src/frames/movedialog.cpp \
src/main.cpp \
src/frames/mainwindow.cpp \
src/models/appconfiguration.cpp \
src/models/note.cpp \
src/models/folder.cpp \
src/services/savemanager.cpp
HEADERS += \
maddy/parserconfig.h \
maddy/parser.h \
src/frames/configdialog.h \
src/services/configmanager.h \
src/frames/exportdialog.h \
src/frames/renamedialog.h \
src/frames/createdialog.h \
src/frames/mainwindow.h \
src/frames/movedialog.h \
src/models/appconfiguration.h \
src/models/note.h \
src/models/folder.h \
src/services/savemanager.h
FORMS += \
src/frames/configdialog.ui \
src/frames/exportdialog.ui \
src/frames/renamedialog.ui \
src/frames/createdialog.ui \
src/frames/mainwindow.ui \
src/frames/movedialog.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
icons.qrc