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

« back to all changes in this revision

Viewing changes to solid/networkmanager-0.7/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 NetworkManager 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
 
 
16
set( INTERFACE_INTROSPECTION_XML_FILES
 
17
   introspection/nm-manager-client.xml
 
18
   introspection/nm-device.xml
 
19
   introspection/nm-access-point.xml
 
20
   introspection/nm-device-wifi.xml
 
21
   introspection/nm-device-ethernet.xml
 
22
   #Solid doesn't know about connections
 
23
   #introspection/nm-exported-connection.xml
 
24
   introspection/nm-ip4-config.xml
 
25
   introspection/nm-dhcp4-config.xml
 
26
   introspection/nm-device-gsm.xml
 
27
   introspection/nm-device-cdma.xml
 
28
   introspection/nm-device-serial.xml
 
29
   )
 
30
 
 
31
set( ADAPTER_INTROSPECTION_XML_FILES
 
32
#   introspection/nm-settings.xml
 
33
   )
 
34
 
 
35
set_source_files_properties( ${INTERFACE_INTROSPECTION_XML_FILES} ${ADAPTER_INTROSPECTION_XML_FILES} PROPERTIES NO_NAMESPACE TRUE )
 
36
 
 
37
set( UNUSED_XML
 
38
)
 
39
 
 
40
 
 
41
set( FILES_TO_BUILD
 
42
   )
 
43
set ( UNUSED_FILES
 
44
   activeconnection.cpp
 
45
   nm-manager-clientinterface.cpp
 
46
   nm-deviceinterface.cpp
 
47
   nm-access-pointinterface.cpp 
 
48
   nm-device-802-3-ethernetinterface.cpp
 
49
   nm-device-802-11-wirelessinterface.cpp
 
50
   nm-ip4-configinterface.cpp
 
51
)
 
52
 
 
53
set( UNUSED_GENERATED_FILES
 
54
   nm-vpn-connectioninterface.cpp
 
55
   nm-exported-connectioninterface.cpp
 
56
   nm-vpn-managerinterface.cpp
 
57
   nm-vpn-plugininterface.cpp
 
58
)
 
59
 
 
60
QT4_ADD_DBUS_INTERFACES( FILES_TO_BUILD ${INTERFACE_INTROSPECTION_XML_FILES} )
 
61
 
 
62
kde4_add_library(networkmanagerdbus ${FILES_TO_BUILD})
 
63
 
 
64
TARGET_LINK_LIBRARIES(networkmanagerdbus ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY})
 
65