59a3ddd4ba8e4ca7c76da0b39ee535041ea84bec
[platform/upstream/gstreamer.git] / gst-libs / gst / mpegts / Makefile.am
1 lib_LTLIBRARIES = libgstmpegts-@GST_API_VERSION@.la
2
3 libgstmpegts_@GST_API_VERSION@_la_SOURCES = \
4         gstmpegtssection.c \
5         gstmpegtsdescriptor.c \
6         gst-dvb-descriptor.c \
7         gst-dvb-section.c \
8         gst-atsc-section.c
9
10 libgstmpegts_@GST_API_VERSION@includedir = \
11         $(includedir)/gstreamer-@GST_API_VERSION@/gst/mpegts
12
13 noinst_HEADERS = gstmpegts-private.h
14
15 libgstmpegts_@GST_API_VERSION@include_HEADERS = \
16         gstmpegtssection.h                      \
17         gst-atsc-section.h                      \
18         gst-dvb-section.h                       \
19         gst-scte-section.h                      \
20         gstmpegtsdescriptor.h                   \
21         gst-dvb-descriptor.h                    \
22         mpegts-prelude.h                        \
23         mpegts.h
24
25 nodist_libgstmpegts_@GST_API_VERSION@include_HEADERS = \
26         gstmpegts-enumtypes.h
27
28 libgstmpegts_@GST_API_VERSION@_la_CFLAGS = \
29         $(GST_PLUGINS_BAD_CFLAGS) \
30         -DGST_USE_UNSTABLE_API \
31         -DBUILDING_GST_MPEGTS \
32         $(GST_CFLAGS)
33
34 libgstmpegts_@GST_API_VERSION@_la_LIBADD = \
35         $(GST_BASE_LIBS) \
36         $(GST_LIBS)
37
38 libgstmpegts_@GST_API_VERSION@_la_LDFLAGS = \
39         $(GST_LIB_LDFLAGS) \
40         $(GST_ALL_LDFLAGS) \
41         $(GST_LT_LDFLAGS)
42
43 glib_enum_headers=gstmpegtssection.h    \
44         gstmpegtsdescriptor.h           \
45         gst-atsc-section.h              \
46         gst-dvb-section.h               \
47         gst-scte-section.h              \
48         gst-dvb-descriptor.h
49
50 glib_enum_define=GST_MPEGTS
51 glib_gen_prefix=gst_mpegts
52 glib_gen_basename=gstmpegts
53 glib_gen_decl_banner=GST_MPEGTS_API
54 glib_gen_decl_include=\#include <gst/mpegts/mpegts-prelude.h>
55
56 BUILT_SOURCES = gstmpegts-enumtypes.c gstmpegts-enumtypes.h
57 nodist_libgstmpegts_@GST_API_VERSION@_la_SOURCES = gstmpegts-enumtypes.c
58
59 CLEANFILES = $(BUILT_SOURCES)
60
61 if HAVE_INTROSPECTION
62 BUILT_GIRSOURCES = GstMpegts-@GST_API_VERSION@.gir
63
64 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstmpegts_@GST_API_VERSION@include_HEADERS))
65 gir_headers+=$(patsubst %,$(builddir)/%, $(built_headers))
66 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstmpegts_@GST_API_VERSION@_la_SOURCES))
67 gir_sources+=$(patsubst %,$(builddir)/%, $(built_sources))
68
69 GstMpegts-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstmpegts-@GST_API_VERSION@.la
70         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)"  GI_SCANNER_DISABLE_CACHE=yes\
71                 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_UPDATE=no \
72                 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
73                 $(INTROSPECTION_SCANNER) -v --namespace GstMpegts \
74                 --nsversion=@GST_API_VERSION@ \
75                 --identifier-prefix=GstMpegts \
76                 --symbol-prefix=gst_mpegts \
77                 --symbol-prefix=gst \
78                 --warn-all -v \
79                 --c-include "gst/mpegts/mpegts.h" \
80                 -I$(top_srcdir)/gst-libs \
81                 -I$(top_builddir)/gst-libs \
82                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
83                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-video-@GST_API_VERSION@` \
84                 --library=libgstmpegts-@GST_API_VERSION@.la \
85                 --include=Gst-@GST_API_VERSION@ \
86                 --libtool="${LIBTOOL}" \
87                 --pkg gstreamer-@GST_API_VERSION@ \
88                 --pkg gstreamer-video-@GST_API_VERSION@ \
89                 --pkg-export gstreamer-mpegts-@GST_API_VERSION@ \
90                 --add-init-section="$(INTROSPECTION_INIT)" \
91                 -DGST_USE_UNSTABLE_API \
92                 --output $@ \
93                 $(gir_headers) \
94                 $(gir_sources)
95
96 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
97 # install anything - we need to install inside our prefix.
98 girdir = $(datadir)/gir-1.0
99 gir_DATA = $(BUILT_GIRSOURCES)
100
101 typelibsdir = $(libdir)/girepository-1.0/
102
103 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
104
105 %.typelib: %.gir $(INTROSPECTION_COMPILER)
106         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
107                 $(INTROSPECTION_COMPILER) \
108                 --includedir=$(srcdir) \
109                 --includedir=$(builddir) \
110                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
111                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
112                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
113
114 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
115 endif
116
117 include $(top_srcdir)/common/gst-glib-gen.mak