c93369954be956eef408bff6e149400b8381fe76
[platform/upstream/gstreamer.git] / gst-libs / gst / rtsp / Makefile.am
1 libgstrtspincludedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/rtsp
2
3 libgstrtspinclude_HEADERS = \
4                             rtsp.h \
5                             rtsp-prelude.h \
6                             gstrtsp.h \
7                             gstrtsptransport.h \
8                             gstrtspurl.h \
9                             gstrtspmessage.h    \
10                             gstrtspconnection.h \
11                             gstrtspdefs.h       \
12                             gstrtspextension.h       \
13                             gstrtsprange.h
14
15 #gstrtspextreal.h    
16 #gstrtspextwms.h     
17
18 lib_LTLIBRARIES = libgstrtsp-@GST_API_VERSION@.la
19
20 built_sources = gstrtsp-enumtypes.c
21 built_headers = gstrtsp-enumtypes.h
22
23 libgstrtsp_@GST_API_VERSION@_la_SOURCES = gstrtsptransport.c \
24                                          gstrtspurl.c \
25                                          gstrtspmessage.c    \
26                                          gstrtspconnection.c \
27                                          gstrtspdefs.c       \
28                                          gstrtspextension.c  \
29                                          gstrtsprange.c
30
31 nodist_libgstrtsp_@GST_API_VERSION@_la_SOURCES = $(built_sources)
32 nodist_libgstrtspinclude_HEADERS = gstrtsp-enumtypes.h
33
34 #gstrtspextwms.c  
35 #rtspextreal.c    
36
37 libgstrtsp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS)
38 libgstrtsp_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(GIO_LIBS) $(LIBM)
39 libgstrtsp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) $(WIN32_LIBS)
40
41 BUILT_SOURCES = $(built_headers) $(built_sources)
42 CLEANFILES = $(BUILT_SOURCES)
43
44 glib_gen_prefix = __gst_rtsp
45 glib_enum_define = gst_rtsp
46 glib_enum_headers = $(libgstrtspinclude_HEADERS)
47 glib_gen_basename = gstrtsp
48 glib_gen_decl_banner=GST_RTSP_API
49 glib_gen_decl_include=\#include <gst/rtsp/rtsp-prelude.h>
50
51 include $(top_srcdir)/common/gst-glib-gen.mak
52
53 if HAVE_INTROSPECTION
54 BUILT_GIRSOURCES = GstRtsp-@GST_API_VERSION@.gir
55
56 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstrtspinclude_HEADERS))
57 gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstrtspinclude_HEADERS))
58 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstrtsp_@GST_API_VERSION@_la_SOURCES))
59 gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstrtsp_@GST_API_VERSION@_la_SOURCES))
60
61 GstRtsp-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstrtsp-@GST_API_VERSION@.la
62         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
63                 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
64                 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
65                 $(INTROSPECTION_SCANNER) -v --namespace GstRtsp \
66                 --nsversion=@GST_API_VERSION@ \
67                 --identifier-prefix=Gst \
68                 --symbol-prefix=gst \
69                 --warn-all \
70                 --c-include "gst/rtsp/rtsp.h" \
71                 -I$(top_builddir)/gst-libs \
72                 -I$(top_srcdir)/gst-libs \
73                 --add-include-path=$(builddir)/../sdp \
74                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
75                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
76                 --library=libgstrtsp-@GST_API_VERSION@.la \
77                 --include=Gio-2.0 \
78                 --include=Gst-@GST_API_VERSION@ \
79                 --include=GstBase-@GST_API_VERSION@ \
80                 --include=GstSdp-@GST_API_VERSION@ \
81                 --libtool="${LIBTOOL}" \
82                 --pkg gio-2.0 \
83                 --pkg gstreamer-@GST_API_VERSION@ \
84                 --pkg gstreamer-base-@GST_API_VERSION@ \
85                 --pkg gstreamer-sdp-@GST_API_VERSION@ \
86                 --pkg-export gstreamer-rtsp-@GST_API_VERSION@ \
87                 --add-init-section="$(INTROSPECTION_INIT)" \
88                 --output $@ \
89                 $(gir_headers) \
90                 $(gir_sources)
91
92 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
93 # install anything - we need to install inside our prefix.
94 girdir = $(datadir)/gir-1.0
95 gir_DATA = $(BUILT_GIRSOURCES)
96
97 typelibsdir = $(libdir)/girepository-1.0/
98
99 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
100
101 %.typelib: %.gir $(INTROSPECTION_COMPILER)
102         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
103                 $(INTROSPECTION_COMPILER) \
104                 --includedir=$(srcdir) \
105                 --includedir=$(builddir) \
106                 --includedir=$(builddir)/../sdp \
107                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
108                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
109                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
110
111 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
112 endif