~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to solid/modemmanager-0.4/dbus/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
14
 
 
15
include_directories(
 
16
   ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs
 
17
)
 
18
 
 
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
 
31
   )
 
32
 
 
33
set( ADAPTER_INTROSPECTION_XML_FILES
 
34
   )
 
35
 
 
36
set_source_files_properties( ${INTERFACE_INTROSPECTION_XML_FILES} ${ADAPTER_INTROSPECTION_XML_FILES} PROPERTIES NO_NAMESPACE TRUE )
 
37
 
 
38
set( UNUSED_XML
 
39
)
 
40
 
 
41
 
 
42
set( FILES_TO_BUILD
 
43
   )
 
44
set ( UNUSED_FILES
 
45
   mm-manager-clientinterface.cpp
 
46
)
 
47
 
 
48
set( UNUSED_GENERATED_FILES
 
49
)
 
50
 
 
51
QT4_ADD_DBUS_INTERFACES( FILES_TO_BUILD ${INTERFACE_INTROSPECTION_XML_FILES} )
 
52
 
 
53
kde4_add_library(modemmanagerdbus ${FILES_TO_BUILD})
 
54
 
 
55
TARGET_LINK_LIBRARIES(modemmanagerdbus ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY})
 
56