1
# Steps to generate the dbus interface files
2
# 1) Place the ModemManager introspection dbus xml in introspection/
3
# 2) Update the list of xml files below that we want to generate interfaces for
4
# 3) Enable dbus subdirectory in ../CMakeLists.txt
5
# Make, in order to generate the interface sources
6
# 3.1) Add annotations to the xml so qdbusxml2cpp knows what type or typedef to use
7
# Add typedefs as needed to generic-types.h
8
# 4) Add the list of generated files needed for the plugin to FILES_TO_BUILD
9
# 6) Copy the working generated interface sources into the source dir
10
# 5) Edit the sources as required to get them to build
11
# 5.1) Fix the inclusion guards as the compiler ignores anything after a '-' so the compiler thinks
12
# headers have already been included
13
# Run do-hand-edits to update the diff of the interfaces vs what is generated; this speeds up regenerating them since you just have to apply the diff to make them compile
16
${KDEBASE_WORKSPACE_SOURCE_DIR}/libs
19
set( INTERFACE_INTROSPECTION_XML_FILES
20
introspection/mm-manager-client.xml
21
introspection/mm-modem.xml
22
introspection/mm-modem-cdma.xml
23
introspection/mm-modem-location.xml
24
introspection/mm-modem-simple.xml
25
introspection/mm-modem-gsm-card.xml
26
introspection/mm-modem-gsm-contacts.xml
27
introspection/mm-modem-gsm-network.xml
28
introspection/mm-modem-gsm-sms.xml
29
introspection/mm-modem-gsm-hso.xml
30
introspection/mm-modem-gsm-ussd.xml
33
set( ADAPTER_INTROSPECTION_XML_FILES
36
set_source_files_properties( ${INTERFACE_INTROSPECTION_XML_FILES} ${ADAPTER_INTROSPECTION_XML_FILES} PROPERTIES NO_NAMESPACE TRUE )
45
mm-manager-clientinterface.cpp
48
set( UNUSED_GENERATED_FILES
51
QT4_ADD_DBUS_INTERFACES( FILES_TO_BUILD ${INTERFACE_INTROSPECTION_XML_FILES} )
53
kde4_add_library(modemmanagerdbus ${FILES_TO_BUILD})
55
TARGET_LINK_LIBRARIES(modemmanagerdbus ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY})