c94743f3b5a5ed6859c2953952a65a8fb2bff6c1
[platform/upstream/gstreamer.git] / gst-libs / gst / sdp / Makefile.am
1 libgstsdpincludedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/sdp
2
3 libgstsdpinclude_HEADERS = gstsdp.h            \
4                            gstsdpmessage.h
5
6 lib_LTLIBRARIES = libgstsdp-@GST_MAJORMINOR@.la
7
8 libgstsdp_@GST_MAJORMINOR@_la_SOURCES = gstsdpmessage.c
9
10 libgstsdp_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
11 libgstsdp_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS) $(WIN32_LIBS)
12 libgstsdp_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
13
14 if HAVE_INTROSPECTION
15 BUILT_GIRSOURCES = GstSdp-@GST_MAJORMINOR@.gir
16
17 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstsdpinclude_HEADERS))
18 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstsdp_@GST_MAJORMINOR@_la_SOURCES))
19 gir_cincludes=$(patsubst %,--c-include='gst/audio/%',$(libgstsdpinclude_HEADERS))
20
21 GstSdp-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstsdp-@GST_MAJORMINOR@.la
22         $(AM_V_GEN)PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
23                 $(INTROSPECTION_SCANNER) -v --namespace GstSdp \
24                 --nsversion=@GST_MAJORMINOR@ \
25                 --strip-prefix=Gst \
26                 $(gir_cincludes) \
27                 -I$(top_srcdir)/gst-libs \
28                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
29                 --library=gstsdp-0.10 \
30                 --include=Gst-0.10 \
31                 --libtool="$(top_builddir)/libtool" \
32                 --pkg gstreamer-0.10 \
33                 --output $@ \
34                 $(gir_headers) \
35                 $(gir_sources)
36
37 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
38 # install anything - we need to install inside our prefix.
39 girdir = $(datadir)/gir-1.0
40 gir_DATA = $(BUILT_GIRSOURCES)
41
42 typelibsdir = $(libdir)/girepository-1.0/
43
44 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
45
46 %.typelib: %.gir $(INTROSPECTION_COMPILER)
47         $(AM_V_GEN)$(INTROSPECTION_COMPILER) \
48                 --includedir=$(srcdir) \
49                 --includedir=$(builddir) \
50                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
51                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
52
53 CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
54 endif