forked from Eeems-Org/remarkable-template-qt-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
src.pro
74 lines (58 loc) · 1.93 KB
/
src.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Change this to rename the built application
TARGET = myapp
VERSION = 1.0
QT += gui
QT += quick
CONFIG += ltcg
CONFIG += c++11
CONFIG += c++17
CONFIG += c++20
CONFIG += c++latest
CONFIG += qml_debug
CONFIG += qtquickcompiler
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x051510
SOURCES += \
main.cpp
# This provides more context on crashes when built in debug mode
CONFIG(debug, debug|release){
LIBS += -lunwind
contains(DEFINES, SANITIZER){
QMAKE_LFLAGS += -fno-omit-frame-pointer
QMAKE_LFLAGS += -fsanitize-recover=address
QMAKE_LFLAGS += -fsanitize=address
QMAKE_LFLAGS += -fsanitize=leak
# QMAKE_LFLAGS += -fsanitize=thread # Incompatible with address and leak
QMAKE_LFLAGS += -fsanitize=undefined
QMAKE_LFLAGS += -fsanitize=pointer-compare
QMAKE_LFLAGS += -fsanitize=pointer-subtract
}
}
# This makes sure that libraries installed by toltec can be loaded by the application
QMAKE_RPATHDIR += /lib /usr/lib /opt/lib /opt/usr/lib
# This allows you to use APP_VERSION in your code to output the application version
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
QMAKE_LFLAGS += -flto
QMAKE_CFLAGS += -fPIC
QMAKE_CXXFLAGS += -fPIC
# The application will be installed to /opt/bin on the device
target.path = /opt/bin
INSTALLS += target
# This installs the oxide application registration file
applications.files = $$_PRO_FILE_PWD_/myapp.oxide
applications.path = /opt/usr/share/applications/
INSTALLS += applications
# This installs the application icon
# icons.files += $$_PRO_FILE_PWD_/myapp.png
# icons.path = /opt/usr/share/icons/oxide/48x48/apps
# INSTALLS += icons
# this installs the application splashscreen
# splash.files += $$_PRO_FILE_PWD_/splash.png
# splash.path = /opt/usr/share/icons/oxide/702x702/splash
# INSTALLS += splash
HEADERS += \
controller.h
RESOURCES += \
qml.qrc
include(vendor/epaper.pri)
include(vendor/liboxide.pri)