Warning, /frameworks/networkmanager-qt/src/dbus/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # Steps to generate the dbus interface files
0002 # 1) Place the NetworkManager introspection dbus xml in introspection/
0003 # 2) Update the list of xml files below that we want to generate interfaces for
0004 # 3) Enable dbus subdirectory in ../CMakeLists.txt
0005 #    Make, in order to generate the interface sources
0006 # 3.1) Add annotations to the xml so qdbusxml2cpp knows what type or typedef to use
0007 #      Add typedefs as needed to generictypes.h
0008 # 4)   Add the list of generated files needed for the plugin to FILES_TO_BUILD
0009 # 6) Copy the working generated interface sources into the source dir
0010 # 5) Edit the sources as required to get them to build
0011 # 5.1) Fix the inclusion guards as the compiler ignores anything after a '-' so the compiler thinks
0012 #      headers have already been included
0013 # 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
0014 
0015 set(INTERFACE_INTROSPECTION_XML_FILES
0016     introspection/nm-agent-manager.xml
0017     introspection/org.freedesktop.NetworkManager.AccessPoint.xml
0018     introspection/org.freedesktop.NetworkManager.AgentManager.xml
0019     introspection/org.freedesktop.NetworkManager.Connection.Active.xml
0020     introspection/org.freedesktop.NetworkManager.Device.Adsl.xml
0021     introspection/org.freedesktop.NetworkManager.Device.Bluetooth.xml
0022     introspection/org.freedesktop.NetworkManager.Device.Bond.xml
0023     introspection/org.freedesktop.NetworkManager.Device.Bridge.xml
0024     introspection/org.freedesktop.NetworkManager.Device.Generic.xml
0025     introspection/org.freedesktop.NetworkManager.Device.Gre.xml
0026     introspection/org.freedesktop.NetworkManager.Device.Infiniband.xml
0027     introspection/org.freedesktop.NetworkManager.Device.IPTunnel.xml
0028     introspection/org.freedesktop.NetworkManager.Device.Macsec.xml
0029     introspection/org.freedesktop.NetworkManager.Device.Macvlan.xml
0030     introspection/org.freedesktop.NetworkManager.Device.Modem.xml
0031     introspection/org.freedesktop.NetworkManager.Device.OlpcMesh.xml
0032     introspection/org.freedesktop.NetworkManager.Device.Statistics.xml
0033     introspection/org.freedesktop.NetworkManager.Device.Team.xml
0034     introspection/org.freedesktop.NetworkManager.Device.Tun.xml
0035     introspection/org.freedesktop.NetworkManager.Device.Veth.xml
0036     introspection/org.freedesktop.NetworkManager.Device.Vlan.xml
0037     introspection/org.freedesktop.NetworkManager.Device.Vxlan.xml
0038     introspection/org.freedesktop.NetworkManager.Device.WiMax.xml
0039     introspection/org.freedesktop.NetworkManager.Device.Wired.xml
0040     introspection/org.freedesktop.NetworkManager.Device.Wireless.xml
0041     introspection/org.freedesktop.NetworkManager.Device.xml
0042     introspection/org.freedesktop.NetworkManager.DHCP4Config.xml
0043     introspection/org.freedesktop.NetworkManager.DHCP6Config.xml
0044     introspection/org.freedesktop.NetworkManager.DnsManager.xml
0045     introspection/org.freedesktop.NetworkManager.Checkpoint.xml
0046     introspection/org.freedesktop.NetworkManager.IP4Config.xml
0047     introspection/org.freedesktop.NetworkManager.IP6Config.xml
0048     introspection/org.freedesktop.NetworkManager.PPP.xml
0049 #     introspection/org.freedesktop.NetworkManager.Settings.Connection.xml
0050     introspection/org.freedesktop.NetworkManager.Settings.xml
0051     introspection/org.freedesktop.NetworkManager.VPN.Connection.xml
0052     introspection/org.freedesktop.NetworkManager.VPN.Plugin.xml
0053     introspection/org.freedesktop.NetworkManager.WiMax.Nsp.xml
0054     introspection/org.freedesktop.NetworkManager.xml
0055    )
0056 
0057 set_property(SOURCE ${INTERFACE_INTROSPECTION_XML_FILES} PROPERTY INCLUDE generictypes.h)
0058 
0059 set(ADAPTER_INTROSPECTION_XML_FILES
0060    )
0061 
0062 set_source_files_properties(${INTERFACE_INTROSPECTION_XML_FILES} ${ADAPTER_INTROSPECTION_XML_FILES} PROPERTIES NO_NAMESPACE TRUE)
0063 
0064 set(FILES_TO_BUILD
0065    )
0066 
0067 qt_add_dbus_interfaces(FILES_TO_BUILD ${INTERFACE_INTROSPECTION_XML_FILES})
0068 qt_add_dbus_adaptor(FILES_TO_BUILD introspection/org.freedesktop.NetworkManager.SecretAgent.xml "secretagent.h" "NetworkManager::SecretAgent")
0069 foreach(adaptor ${ADAPTER_INTROSPECTION_XML_FILES})
0070     qt_add_dbus_adaptor(FILES_TO_BUILD ${adaptor} "generictypes.h")
0071 endforeach(adaptor ${ADAPTER_INTROSPECTION_XML_FILES})
0072 
0073 add_library(networkmanagerdbus ${FILES_TO_BUILD})
0074 
0075 target_link_libraries(networkmanagerdbus ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY})