aboutsummaryrefslogtreecommitdiffstats
path: root/dbus_interface/dbus_interface.pro
blob: d647da335df3b387f9d3e5951d6ff480f79980f0 (plain)
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
QT += dbus
TARGET = dbus_interface
TEMPLATE = lib
CONFIG += staticlib

SOURCES +=
HEADERS += \
    dbus_types.h

XMLSOURCES = \
    org.genivi.navigationcore.xml \
    org.agl.naviapi.xml

gen_adaptor_cpp.input = XMLSOURCES
gen_adaptor_cpp.commands = \
    qdbusxml2cpp -i $$PWD/dbus_types.h -m -a ${QMAKE_FILE_IN_BASE}_adaptor ${QMAKE_FILE_IN}; \
    moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_adaptor.moc
gen_adaptor_cpp.output = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
gen_adaptor_cpp.variable_out = SOURCES
gen_adaptor_cpp.clean = ${QMAKE_FILE_IN_BASE}_adaptor.cpp

gen_adaptor_h.input = XMLSOURCES
gen_adaptor_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
gen_adaptor_h.depends = ${QMAKE_FILE_IN_BASE}_adaptor.cpp
gen_adaptor_h.output = ${QMAKE_FILE_IN_BASE}_adaptor.h
gen_adaptor_h.clean = ${QMAKE_FILE_IN_BASE}_adaptor.h

gen_interface_cpp.input = XMLSOURCES
gen_interface_cpp.commands = \
    qdbusxml2cpp -i $$PWD/dbus_types.h -m -p ${QMAKE_FILE_IN_BASE}_interface ${QMAKE_FILE_IN}; \
    moc $$OUT_PWD/${QMAKE_FILE_IN_BASE}_interface.h -o $$OUT_PWD/${QMAKE_FILE_IN_BASE}_interface.moc
gen_interface_cpp.output = ${QMAKE_FILE_IN_BASE}_interface.cpp
gen_interface_cpp.variable_out = SOURCES
gen_interface_cpp.clean = ${QMAKE_FILE_IN_BASE}_interface.cpp

gen_interface_h.input = XMLSOURCES
gen_interface_h.commands = @echo Fake making the header for ${QMAKE_FILE_IN}
gen_interface_h.depends = ${QMAKE_FILE_IN_BASE}_interface.cpp
gen_interface_h.output = ${QMAKE_FILE_IN_BASE}_interface.h
gen_interface_h.clean = ${QMAKE_FILE_IN_BASE}_interface.h

QMAKE_EXTRA_COMPILERS += gen_adaptor_cpp gen_adaptor_h gen_interface_cpp gen_interface_h

DISTFILES +=