3 CONTEXT_MANAGER_IMPL = gupnp-unix-context-manager.c \
4 gupnp-unix-context-manager.h
6 CONTEXT_MANAGER_IMPL += gupnp-network-manager.c \
7 gupnp-network-manager.h
8 CONTEXT_MANAGER_CFLAGS = -DUSE_NETWORK_MANAGER
11 CONTEXT_MANAGER_IMPL += gupnp-connman-manager.c \
12 gupnp-connman-manager.h
13 CONTEXT_MANAGER_CFLAGS = -DUSE_CONNMAN
18 CONTEXT_MANAGER_IMPL += \
19 gupnp-linux-context-manager.c \
20 gupnp-linux-context-manager.h
24 NETLINK_CFLAGS = -DUSE_NETLINK
29 AM_CFLAGS = $(LIBGUPNP_CFLAGS) \
33 $(CONTEXT_MANAGER_CFLAGS)
35 libgupnpincdir = $(includedir)/gupnp-1.0/libgupnp
37 lib_LTLIBRARIES = libgupnp-1.0.la
39 libgupnpinc_HEADERS = gupnp-context.h \
40 gupnp-context-manager.h \
41 gupnp-control-point.h \
44 gupnp-device-proxy.h \
46 gupnp-resource-factory.h \
49 gupnp-service-info.h \
50 gupnp-service-proxy.h \
51 gupnp-service-introspection.h \
56 introspection_sources = $(libgupnpinc_HEADERS) \
58 gupnp-context-manager.c \
59 gupnp-control-point.c \
62 gupnp-device-proxy.c \
64 gupnp-resource-factory.c \
67 gupnp-service-info.c \
68 gupnp-service-proxy.c \
69 gupnp-service-introspection.c \
74 gupnp-marshal.c: gupnp-marshal.list
75 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=gupnp_marshal $(srcdir)/gupnp-marshal.list --header --body > gupnp-marshal.c
77 gupnp-marshal.h: gupnp-marshal.list
78 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=gupnp_marshal $(srcdir)/gupnp-marshal.list --header > gupnp-marshal.h
80 BUILT_SOURCES = gupnp-marshal.c gupnp-marshal.h
82 libgupnp_1_0_la_LDFLAGS = -version-info $(LTVERSION)
84 libgupnp_1_0_la_SOURCES = $(introspection_sources) \
87 gupnp-context-private.h \
88 $(CONTEXT_MANAGER_IMPL) \
89 gupnp-simple-context-manager.h \
90 gupnp-simple-context-manager.c \
91 gupnp-device-info-private.h \
92 gupnp-error-private.h \
93 gupnp-resource-factory-private.h \
94 gupnp-service-introspection-private.h \
95 gupnp-types-private.h \
103 libgupnp_1_0_la_LIBADD = $(LIBGUPNP_LIBS) $(DBUS_GLIB_LIBS) $(LIBCONIC_LIBS)
105 EXTRA_DIST = gupnp-marshal.list \
106 gupnp-network-manager.c \
107 gupnp-network-manager.h \
108 gupnp-connman-manager.c \
109 gupnp-connman-manager.h \
110 gupnp-linux-context-manager.c \
111 gupnp-linux-context-manager.h \
112 gupnp-unix-context-manager.c \
113 gupnp-unix-context-manager.h
115 -include $(INTROSPECTION_MAKEFILE)
117 INTROSPECTION_SCANNER_ARGS = --warn-all \
118 --symbol-prefix=gupnp \
119 --identifier-prefix=GUPnP \
120 --add-include-path=$(top_srcdir) \
121 --pkg-export=gupnp-1.0
122 INTROSPECTION_COMPILER_ARGS = --includedir=$(top_srcdir)
124 if HAVE_INTROSPECTION
125 GUPnP-1.0.gir: libgupnp-1.0.la
126 GUPnP_1_0_gir_INCLUDES = libxml2-2.0 GObject-2.0 Soup-2.4 GSSDP-1.0
127 GUPnP_1_0_gir_CFLAGS = -DGOBJECT_INTROSPECTION_SKIP $(INCLUDES) $(AM_CFLAGS)
128 GUPnP_1_0_gir_LIBS = libgupnp-1.0.la
129 GUPnP_1_0_gir_FILES = $(introspection_sources)
130 GUPnP_1_0_gir_NAMESPACE = GUPnP
131 GUPnP_1_0_gir_VERSION = 1.0
133 INTROSPECTION_GIRS += GUPnP-1.0.gir
135 girdir = $(datadir)/gir-1.0
136 gir_DATA = GUPnP-1.0.gir
138 typelibdir = $(libdir)/girepository-1.0/
139 typelib_DATA = $(gir_DATA:.gir=.typelib)
142 CLEANFILES = $(BUILT_SOURCES) $(gir_DATA) $(typelib_DATA)
143 DISTCLEANFILES = $(BUILT_SOURCES)
144 MAINTAINERCLEANFILES = Makefile.in $(BUILT_SOURCES)