author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 23 Jun 2010 19:07:03 +0300 | |
changeset 29 | b72c6db6890b |
parent 0 | 1918ee327afb |
child 33 | 3e2da88830cd |
permissions | -rw-r--r-- |
0 | 1 |
load(moc) |
2 |
||
29
b72c6db6890b
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
3 |
qtPrepareTool(QMAKE_QDBUSXML2CPP, qdbusxml2cpp) |
0 | 4 |
|
5 |
for(DBUS_INTERFACE, $$list($$unique(DBUS_INTERFACES))) { |
|
6 |
||
7 |
!contains(DBUS_INTERFACE, .*\w\.xml$) { |
|
8 |
warning("Invalid D-BUS interface : '$${DBUS_INTERFACE}', please use 'com.mydomain.myinterface.xml' instead.") |
|
9 |
next() |
|
10 |
} |
|
11 |
||
12 |
DBUS_INTERFACE_LIST += $${DBUS_INTERFACE} |
|
13 |
} |
|
14 |
||
15 |
dbus_interface_header.commands = $$QMAKE_QDBUSXML2CPP -p ${QMAKE_FILE_OUT}: ${QMAKE_FILE_IN} |
|
16 |
dbus_interface_header.output_function = dbus_interface_header_output |
|
17 |
dbus_interface_header.name = DBUSXML2CPP INTERFACE HEADER ${QMAKE_FILE_IN} |
|
18 |
dbus_interface_header.variable_out = DBUS_INTERFACE_HEADERS |
|
19 |
dbus_interface_header.input = DBUS_INTERFACE_LIST |
|
20 |
||
21 |
defineReplace(dbus_interface_header_output) { |
|
22 |
return("$$lower($$section($$list($$basename(1)),.,-2,-2))_interface.h") |
|
23 |
} |
|
24 |
||
25 |
dbus_interface_source.commands = $$QMAKE_QDBUSXML2CPP -i ${QMAKE_FILE_OUT_BASE}.h -p :${QMAKE_FILE_OUT} ${QMAKE_FILE_IN} |
|
26 |
dbus_interface_source.output_function = dbus_interface_source_output |
|
27 |
dbus_interface_source.name = DBUSXML2CPP INTERFACE SOURCE ${QMAKE_FILE_IN} |
|
28 |
dbus_interface_source.variable_out = SOURCES |
|
29 |
dbus_interface_source.input = DBUS_INTERFACE_LIST |
|
30 |
||
31 |
dbus_interface_moc.commands = $$moc_header.commands |
|
32 |
dbus_interface_moc.output = $$moc_header.output |
|
33 |
dbus_interface_moc.depends = $$dbus_interface_header.output |
|
34 |
dbus_interface_moc.input = DBUS_INTERFACE_HEADERS |
|
35 |
dbus_interface_moc.variable_out = GENERATED_SOURCES |
|
36 |
dbus_interface_moc.name = $$moc_header.name |
|
37 |
||
38 |
defineReplace(dbus_interface_source_output) { |
|
39 |
return("$$lower($$section($$list($$basename(1)),.,-2,-2))_interface.cpp") |
|
40 |
} |
|
41 |
||
42 |
QMAKE_EXTRA_COMPILERS += dbus_interface_header dbus_interface_source dbus_interface_moc |