-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdbus_modbustcp.pro
92 lines (77 loc) · 1.78 KB
/
dbus_modbustcp.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
84
85
86
87
88
89
90
91
92
# version
VERSION = 1.0.78
# Add more folders to ship with the application here
unix {
bindir = $$(bindir)
DESTDIR = $$(DESTDIR)
isEmpty(bindir) {
bindir = /usr/local/bin
}
INSTALLS += target csv
target.path = $${DESTDIR}$${bindir}
csv.path = $${DESTDIR}$${bindir}
csv.files = *.csv
}
#CONFIG(release, debug|release):
DEFINES += QT_NO_DEBUG_OUTPUT
DEFINES += VERSION=\\\"$${VERSION}\\\"
QT += core dbus network xml
QT -= gui
TARGET = dbus-modbustcp
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
MOC_DIR=.moc
OBJECTS_DIR=.obj
include(ext/QsLog/QsLog.pri)
include(ext/veutil/veutil.pri)
INCLUDEPATH += \
ext/QsLog \
ext/velib/inc
SOURCES += main.cpp \
server.cpp \
adu.cpp \
pdu.cpp \
backend.cpp \
dbus_service.cpp \
dbus_services.cpp \
mappings.cpp \
app.cpp \
arguments.cpp \
backend_request.cpp \
mapping_request.cpp \
diagnostics_service.cpp \
ve_qitem_init_monitor.cpp \
connection.cpp
HEADERS += \
server.h \
adu.h \
pdu.h \
backend.h \
dbus_service.h \
dbus_services.h \
mappings.h \
app.h \
arguments.h \
velib/velib_config_app.h \
nostorage_qitem_producer.h \
backend_request.h \
mapping_request.h \
diagnostics_service.h \
ve_qitem_init_monitor.h \
connection.h
OTHER_FILES += \
attributes.csv \
unitid2di.csv \
modbustcp_tb.py
*g++* {
# suppress the mangling of va_arg has changed for gcc 4.4
QMAKE_CXXFLAGS += -Wno-psabi
# these warnings appear when compiling with QT4.8.3-debug. Problem appears to be
# solved in newer QT versions.
QMAKE_CXXFLAGS += -Wno-unused-local-typedefs
}
*clang* {
QMAKE_CXXFLAGS_WARN_ON = -Wall -Wno-unused-local-typedef
}
equals(QT_MAJOR_VERSION, 6): QMAKE_CXXFLAGS += -std=c++17