-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathzmkBATx.pro
80 lines (51 loc) · 1.8 KB
/
zmkBATx.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
75
76
77
78
79
QT += core gui bluetooth
CONFIG += c++17
QT += widgets
# Validate Qt version
!versionAtLeast(QT_VERSION, 6.2) : error("You need at least Qt version 6.2 for $${TARGET}")
TARGET = zmkBATx
TEMPLATE = app
SOURCES += src/main.cpp\
src/about.cpp \
src/appSettings.cpp \
src/bleinterfacebluez.cpp \
src/mainwindow.cpp
HEADERS += src/mainwindow.h \
src/about.h \
src/appSettings.h \
src/bleinterfacebluez.h
INCLUDEPATH += src/ src/thirdparty/
FORMS += src/forms/mainwindow.ui \
src/forms/about.ui
RESOURCES += \
resources.qrc
OTHER_FILES += README.md \
deploy_dep.sh \
.gitignore
LIBS += -L$$PWD/src/thirdparty/ -lsimplebluez
INCLUDEPATH += $$PWD/src/thirdparty
DEPENDPATH += $$PWD/src/thirdparty
# Inclui o diretório do D-Bus
INCLUDEPATH += /usr/include/dbus-1.0
# Inclui o diretório para o mecanismo de sistema de mensagem D-Bus
INCLUDEPATH += /usr/lib/x86_64-linux-gnu/dbus-1.0/include
# Link com a biblioteca D-Bus
LIBS += -ldbus-1
# Build artifacts ##############################################################
OBJECTS_DIR = build/$${QT_ARCH}/
MOC_DIR = build/$${QT_ARCH}/
RCC_DIR = build/$${QT_ARCH}/
UI_DIR = $$PWD/src/forms
DESTDIR = bin/
linux:!android {
TARGET = $$lower($${TARGET})
# Installation steps
isEmpty(PREFIX) { PREFIX = /usr/local }
target_app.files += $${OUT_PWD}/$${DESTDIR}/$$lower($${TARGET})
target_app.path = $${PREFIX}/bin/
target_appentry.files += $${OUT_PWD}/assets/linux/$$lower($${TARGET}).desktop
target_appentry.path = $${PREFIX}/share/applications
target_appdata.files += $${OUT_PWD}/assets/linux/$$lower($${TARGET}).appdata.xml
target_appdata.path = $${PREFIX}/share/appdata
INSTALLS += target_app target_appentry target_appdata
}