4 CONTEXT_MANAGER_IMPL = gupnp-windows-context-manager.c \
5 gupnp-windows-context-manager.h
6 CONTEXT_MANAGER_CFLAGS =
7 CONTEXT_MANAGER_LIBS = -lws2_32 -liphlpapi
8 WIN32_LDFLAGS = -no-undefined
10 CONTEXT_MANAGER_IMPL = gupnp-unix-context-manager.c \
11 gupnp-unix-context-manager.h
12 if USE_NETWORK_MANAGER
13 CONTEXT_MANAGER_IMPL += gupnp-network-manager.c \
14 gupnp-network-manager.h
15 CONTEXT_MANAGER_CFLAGS = -DUSE_NETWORK_MANAGER
18 CONTEXT_MANAGER_IMPL += gupnp-connman-manager.c \
19 gupnp-connman-manager.h
20 CONTEXT_MANAGER_CFLAGS = -DUSE_CONNMAN
26 CONTEXT_MANAGER_IMPL += \
27 gupnp-linux-context-manager.c \
28 gupnp-linux-context-manager.h
32 NETLINK_CFLAGS = -DUSE_NETLINK
37 AM_CFLAGS = $(LIBGUPNP_CFLAGS) \
41 $(CONTEXT_MANAGER_CFLAGS)
43 libgupnpincdir = $(includedir)/gupnp-1.0/libgupnp
45 lib_LTLIBRARIES = libgupnp-1.0.la
47 libgupnpinc_HEADERS = gupnp-context.h \
48 gupnp-context-manager.h \
49 gupnp-control-point.h \
52 gupnp-device-proxy.h \
54 gupnp-resource-factory.h \
57 gupnp-service-info.h \
58 gupnp-service-proxy.h \
59 gupnp-service-introspection.h \
64 introspection_sources = $(libgupnpinc_HEADERS) \
66 gupnp-context-manager.c \
67 gupnp-control-point.c \
70 gupnp-device-proxy.c \
72 gupnp-resource-factory.c \
75 gupnp-service-info.c \
76 gupnp-service-proxy.c \
77 gupnp-service-introspection.c \
82 gupnp-marshal.c: gupnp-marshal.list
83 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=gupnp_marshal $(srcdir)/gupnp-marshal.list --header --body > gupnp-marshal.c
85 gupnp-marshal.h: gupnp-marshal.list
86 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=gupnp_marshal $(srcdir)/gupnp-marshal.list --header > gupnp-marshal.h
88 BUILT_SOURCES = gupnp-marshal.c gupnp-marshal.h
90 libgupnp_1_0_la_LDFLAGS = -version-info $(LTVERSION) $(WIN32_LDFLAGS)
92 libgupnp_1_0_la_SOURCES = $(introspection_sources) \
95 gupnp-context-private.h \
96 $(CONTEXT_MANAGER_IMPL) \
97 gupnp-simple-context-manager.h \
98 gupnp-simple-context-manager.c \
99 gupnp-device-info-private.h \
100 gupnp-error-private.h \
101 gupnp-resource-factory-private.h \
102 gupnp-service-introspection-private.h \
103 gupnp-types-private.h \
111 libgupnp_1_0_la_LIBADD = $(LIBGUPNP_LIBS) $(DBUS_GLIB_LIBS) $(CONTEXT_MANAGER_LIBS)
113 EXTRA_DIST = gupnp-marshal.list \
114 gupnp-network-manager.c \
115 gupnp-network-manager.h \
116 gupnp-connman-manager.c \
117 gupnp-connman-manager.h \
118 gupnp-linux-context-manager.c \
119 gupnp-linux-context-manager.h \
120 gupnp-unix-context-manager.c \
121 gupnp-unix-context-manager.h \
122 gupnp-windows-context-manager.c \
123 gupnp-windows-context-manager.h
125 -include $(INTROSPECTION_MAKEFILE)
127 INTROSPECTION_SCANNER_ARGS = --warn-all \
128 --symbol-prefix=gupnp \
129 --identifier-prefix=GUPnP \
130 --add-include-path=$(top_srcdir) \
131 --pkg-export=gupnp-1.0
132 INTROSPECTION_COMPILER_ARGS = --includedir=$(top_srcdir)
134 if HAVE_INTROSPECTION
135 GUPnP-1.0.gir: libgupnp-1.0.la
136 GUPnP_1_0_gir_INCLUDES = libxml2-2.0 GObject-2.0 Soup-2.4 GSSDP-1.0
137 GUPnP_1_0_gir_CFLAGS = -DGOBJECT_INTROSPECTION_SKIP $(INCLUDES) $(AM_CFLAGS)
138 GUPnP_1_0_gir_LIBS = libgupnp-1.0.la
139 GUPnP_1_0_gir_FILES = $(introspection_sources)
140 GUPnP_1_0_gir_NAMESPACE = GUPnP
141 GUPnP_1_0_gir_VERSION = 1.0
143 INTROSPECTION_GIRS += GUPnP-1.0.gir
145 girdir = $(datadir)/gir-1.0
146 gir_DATA = GUPnP-1.0.gir
148 typelibdir = $(libdir)/girepository-1.0/
149 typelib_DATA = $(gir_DATA:.gir=.typelib)
152 CLEANFILES = $(BUILT_SOURCES) $(gir_DATA) $(typelib_DATA)
153 DISTCLEANFILES = $(BUILT_SOURCES)
154 MAINTAINERCLEANFILES = Makefile.in $(BUILT_SOURCES)