735921d373d738823c6e4147dc6062d56efe93fd
[NetworkManager.git] / introspection / Makefile.am
1 noinst_LTLIBRARIES = \
2         libnmdbus.la
3
4 # gdbus-codegen 2.38 will emit code that requires glib 2.38, which
5 # will then cause availability warnings if we define
6 # GLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32.
7 #
8 # This is fixed in GLib 2.40 (it emits code that takes
9 # GLIB_VERSION_MAX_ALLOWED into account), so this workaround can go
10 # away when we depend on that.
11 AM_CPPFLAGS = $(filter-out -DGLIB_VERSION_MAX_ALLOWED%,$(GLIB_CFLAGS))
12
13 nodist_libnmdbus_la_SOURCES = \
14         nmdbus-access-point.c \
15         nmdbus-access-point.h \
16         nmdbus-active-connection.c \
17         nmdbus-active-connection.h \
18         nmdbus-agent-manager.c \
19         nmdbus-agent-manager.h \
20         nmdbus-device-adsl.c \
21         nmdbus-device-adsl.h \
22         nmdbus-device-bond.c \
23         nmdbus-device-bond.h \
24         nmdbus-device-bridge.c \
25         nmdbus-device-bridge.h \
26         nmdbus-device-bt.c \
27         nmdbus-device-bt.h \
28         nmdbus-device-ethernet.c \
29         nmdbus-device-ethernet.h \
30         nmdbus-device.c \
31         nmdbus-device.h \
32         nmdbus-device-generic.c \
33         nmdbus-device-generic.h \
34         nmdbus-device-infiniband.c \
35         nmdbus-device-infiniband.h \
36         nmdbus-device-ip-tunnel.c \
37         nmdbus-device-ip-tunnel.h \
38         nmdbus-device-macvlan.c \
39         nmdbus-device-macvlan.h \
40         nmdbus-device-modem.c \
41         nmdbus-device-modem.h \
42         nmdbus-device-olpc-mesh.c \
43         nmdbus-device-olpc-mesh.h \
44         nmdbus-device-team.c \
45         nmdbus-device-team.h \
46         nmdbus-device-tun.c \
47         nmdbus-device-tun.h \
48         nmdbus-device-veth.c \
49         nmdbus-device-veth.h \
50         nmdbus-device-vlan.c \
51         nmdbus-device-vlan.h \
52         nmdbus-device-vxlan.c \
53         nmdbus-device-vxlan.h \
54         nmdbus-device-wifi.c \
55         nmdbus-device-wifi.h \
56         nmdbus-device-wimax.c \
57         nmdbus-device-wimax.h \
58         nmdbus-dhcp4-config.c \
59         nmdbus-dhcp4-config.h \
60         nmdbus-dhcp6-config.c \
61         nmdbus-dhcp6-config.h \
62         nmdbus-ip4-config.c \
63         nmdbus-ip4-config.h \
64         nmdbus-ip6-config.c \
65         nmdbus-ip6-config.h \
66         nmdbus-manager.c \
67         nmdbus-manager.h \
68         nmdbus-ppp-manager.c \
69         nmdbus-ppp-manager.h \
70         nmdbus-secret-agent.c \
71         nmdbus-secret-agent.h \
72         nmdbus-settings-connection.c \
73         nmdbus-settings-connection.h \
74         nmdbus-settings.c \
75         nmdbus-settings.h \
76         nmdbus-vpn-connection.c \
77         nmdbus-vpn-connection.h \
78         nmdbus-vpn-plugin.c \
79         nmdbus-vpn-plugin.h
80
81 define _make_nmdbus_rule
82 $(1): $(patsubst nmdbus-%.c,nm-%.xml,$(1))
83         $$(AM_V_GEN) gdbus-codegen \
84                 --generate-c-code $$(basename $$@) \
85                 --c-namespace NMDBus \
86                 --interface-prefix org.freedesktop.NetworkManager \
87                 $$<
88
89 $(basename $(1)).h: $(1)
90         @true
91 endef
92
93 $(foreach f,$(filter %.c,$(nodist_libnmdbus_la_SOURCES)),$(eval $(call _make_nmdbus_rule,$f)))
94
95 CLEANFILES = $(nodist_libnmdbus_la_SOURCES)
96
97 EXTRA_DIST = \
98         all.xml.in \
99         generic-types.xml \
100         errors.xml \
101         vpn-errors.xml \
102         nm-access-point.xml \
103         nm-active-connection.xml \
104         nm-agent-manager.xml \
105         nm-device-adsl.xml \
106         nm-device-bond.xml \
107         nm-device-bridge.xml \
108         nm-device-bt.xml \
109         nm-device-ethernet.xml \
110         nm-device-generic.xml \
111         nm-device-infiniband.xml \
112         nm-device-ip-tunnel.xml \
113         nm-device-macvlan.xml \
114         nm-device-modem.xml \
115         nm-device-olpc-mesh.xml \
116         nm-device-team.xml \
117         nm-device-tun.xml \
118         nm-device-veth.xml \
119         nm-device-vlan.xml \
120         nm-device-vxlan.xml \
121         nm-device-wifi.xml \
122         nm-device-wimax.xml \
123         nm-device.xml \
124         nm-dhcp4-config.xml \
125         nm-dhcp6-config.xml \
126         nm-ip4-config.xml \
127         nm-ip6-config.xml \
128         nm-manager.xml \
129         nm-ppp-manager.xml \
130         nm-secret-agent.xml \
131         nm-settings-connection.xml \
132         nm-settings.xml \
133         nm-vpn-connection.xml \
134         nm-vpn-plugin.xml \
135         nm-wimax-nsp.xml