gst: Update versioning
[platform/upstream/gstreamer.git] / gst-libs / gst / rtsp / Makefile.am
1 libgstrtspincludedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/rtsp
2
3 libgstrtspinclude_HEADERS = gstrtsptransport.h \
4                             gstrtspurl.h \
5                             gstrtspmessage.h    \
6                             gstrtspconnection.h \
7                             gstrtspdefs.h       \
8                             gstrtspextension.h       \
9                             gstrtsprange.h
10
11 #gstrtspextreal.h    
12 #gstrtspextwms.h     
13
14 lib_LTLIBRARIES = libgstrtsp-@GST_API_VERSION@.la
15
16 built_sources = gstrtsp-marshal.c gstrtsp-enumtypes.c
17 built_headers = gstrtsp-marshal.h gstrtsp-enumtypes.h
18
19 libgstrtsp_@GST_API_VERSION@_la_SOURCES = gstrtsptransport.c \
20                                          gstrtspurl.c \
21                                          gstrtspmessage.c    \
22                                          gstrtspconnection.c \
23                                          gstrtspdefs.c       \
24                                          gstrtspextension.c  \
25                                          gstrtsprange.c
26
27 nodist_libgstrtsp_@GST_API_VERSION@_la_SOURCES = $(built_sources)
28 nodist_libgstrtspinclude_HEADERS = gstrtsp-enumtypes.h
29
30 noinst_HEADERS = gstrtsp.h
31
32 #gstrtspextwms.c  
33 #rtspextreal.c    
34
35 libgstrtsp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS)
36 libgstrtsp_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) $(GIO_LIBS)
37 libgstrtsp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
38
39 BUILT_SOURCES = $(built_headers) $(built_sources)
40 EXTRA_DIST = gstrtsp-marshal.list
41 CLEANFILES = $(BUILT_SOURCES)
42
43 glib_gen_prefix = __gst_rtsp
44 glib_enum_define = gst_rtsp
45 glib_enum_headers = gstrtspdefs.h
46 glib_gen_basename = gstrtsp
47
48 include $(top_srcdir)/common/gst-glib-gen.mak
49
50 if HAVE_INTROSPECTION
51 BUILT_GIRSOURCES = GstRtsp-@GST_API_VERSION@.gir
52
53 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstrtspinclude_HEADERS))
54 gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstrtspinclude_HEADERS))
55 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstrtsp_@GST_API_VERSION@_la_SOURCES))
56 gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstrtsp_@GST_API_VERSION@_la_SOURCES))
57 gir_cincludes=$(patsubst %,--c-include='gst/rtsp/%',$(libgstrtspinclude_HEADERS))
58 gir_cincludes+=$(patsubst %,--c-include='gst/rtsp/%',$(nodist_libgstrtspinclude_HEADERS))
59
60 GstRtsp-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstrtsp-@GST_API_VERSION@.la
61         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
62                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
63                 $(INTROSPECTION_SCANNER) -v --namespace GstRtsp \
64                 --nsversion=@GST_API_VERSION@ \
65                 --strip-prefix=Gst \
66                 --warn-all \
67                 $(gir_cincludes) \
68                 -DGST_USE_UNSTABLE_API \
69                 -I$(top_builddir)/gst-libs \
70                 -I$(top_srcdir)/gst-libs \
71                 --add-include-path=$(builddir)/../sdp \
72                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
73                 --library=libgstrtsp-@GST_API_VERSION@.la \
74                 --include=Gio-2.0 \
75                 --include=Gst-@GST_API_VERSION@ \
76                 --include=GstSdp-@GST_API_VERSION@ \
77                 --libtool="$(top_builddir)/libtool" \
78                 --pkg gio-2.0 \
79                 --pkg gstreamer-@GST_API_VERSION@ \
80                 --pkg gstreamer-sdp-@GST_API_VERSION@ \
81                 --pkg-export gstreamer-rtsp-@GST_API_VERSION@ \
82                 --add-init-section="gst_init(NULL,NULL);" \
83                 --output $@ \
84                 $(gir_headers) \
85                 $(gir_sources)
86
87 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
88 # install anything - we need to install inside our prefix.
89 girdir = $(datadir)/gir-1.0
90 gir_DATA = $(BUILT_GIRSOURCES)
91
92 typelibsdir = $(libdir)/girepository-1.0/
93
94 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
95
96 %.typelib: %.gir $(INTROSPECTION_COMPILER)
97         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
98                 $(INTROSPECTION_COMPILER) \
99                 --includedir=$(srcdir) \
100                 --includedir=$(builddir) \
101                 --includedir=$(builddir)/../sdp \
102                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
103                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
104
105 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
106 endif
107
108 Android.mk: Makefile.am $(BUILT_SOURCES)
109         androgenizer -:PROJECT libgstrtsp -:SHARED libgstrtsp-@GST_API_VERSION@ \
110          -:TAGS eng debug \
111          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
112          -:SOURCES $(libgstrtsp_@GST_API_VERSION@_la_SOURCES) \
113                    $(nodist_libgstrtsp_@GST_API_VERSION@_la_SOURCES) \
114          -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstrtsp_@GST_API_VERSION@_la_CFLAGS) \
115          -:LDFLAGS $(libgstrtsp_@GST_API_VERSION@_la_LDFLAGS) \
116                    $(libgstrtsp_@GST_API_VERSION@_la_LIBADD) \
117                    -ldl \
118          -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst/rtsp \
119          -:HEADERS $(libgstrtspinclude_HEADERS) \
120                    $(nodist_libgstrtspinclude_HEADERS) \
121          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
122         > $@