-
Notifications
You must be signed in to change notification settings - Fork 2
/
venus-platform.pro
83 lines (74 loc) · 1.86 KB
/
venus-platform.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
80
81
82
83
QT = core dbus network
unix {
bindir = $$(bindir)
DESTDIR = $$(DESTDIR)
isEmpty(bindir) {
bindir = /opt/victronenergy/venus-platform
}
target.path = $${DESTDIR}$${bindir}
}
!isEmpty(target.path): INSTALLS += target
translations.path = $${target.path}/translations
translations.files = translations/*.qm
INSTALLS += translations
equals(QT_MAJOR_VERSION, 6): QMAKE_CXXFLAGS += -std=c++17
HEADERS = \
src/alarm_item.hpp \
src/alarm_monitor.hpp \
src/application.hpp \
src/buzzer.hpp \
src/display_controller.hpp \
src/led_controller.hpp \
src/network_controller.h \
src/notification.hpp \
src/notifications.hpp \
src/relay.hpp \
src/security_profiles.hpp \
src/time.hpp \
src/updater.hpp \
src/venus_service.hpp \
src/venus_services.hpp \
SOURCES = \
src/alarm_item.cpp \
src/alarm_monitor.cpp \
src/application.cpp \
src/buzzer.cpp \
src/display_controller.cpp \
src/led_controller.cpp \
src/main.cpp \
src/network_controller.cpp \
src/notification.cpp \
src/notifications.cpp \
src/relay.cpp \
src/security_profiles.cpp \
src/time.cpp \
src/updater.cpp \
src/venus_service.cpp \
src/venus_services.cpp \
TRANSLATIONS = \
translations/venus_ar.ts \
translations/venus_cs.ts \
translations/venus_da.ts \
translations/venus_de.ts \
translations/venus_es.ts \
translations/venus_fr.ts \
translations/venus_it.ts \
translations/venus_nl.ts \
translations/venus_pl.ts \
translations/venus_ru.ts \
translations/venus_ro.ts \
translations/venus_sv.ts \
translations/venus_tr.ts \
translations/venus_zh-CN.ts \
VE_CONFIG += udev
include("ext/qt-json/qt-json.pri")
include("ext/veutil/veutil.pri")
include("connman/connman.pri")
QMAKE_CXXFLAGS *= -ffunction-sections
QMAKE_LFLAGS *= -Wl,--gc-sections
!lessThan(QT_VERSION, 5) {
QMAKE_CXXFLAGS += "-Wsuggest-override"
CONFIG(debug, debug|release) {
QMAKE_CXXFLAGS += "-Werror=suggest-override"
}
}