rtsp: Port to GIO
[platform/upstream/gstreamer.git] / gst-libs / gst / pbutils / Makefile.am
1 lib_LTLIBRARIES = libgstpbutils-@GST_MAJORMINOR@.la
2
3 headers_pbutils = \
4         pbutils.h         \
5         codec-utils.h     \
6         descriptions.h    \
7         encoding-profile.h      \
8         encoding-target.h       \
9         install-plugins.h \
10         missing-plugins.h \
11         gstdiscoverer.h
12
13 # variables used for enum/marshal generation
14 glib_enum_headers = $(headers_pbutils)
15 glib_enum_define = PB_UTILS
16 glib_gen_prefix = pbutils
17 glib_gen_basename = pbutils
18
19 built_headers_configure = \
20         gstpluginsbaseversion.h
21
22 libgstpbutils_@GST_MAJORMINOR@_la_SOURCES = \
23         gstpluginsbaseversion.c \
24         pbutils.c         \
25         codec-utils.c     \
26         descriptions.c    \
27         encoding-profile.c      \
28         encoding-target.c       \
29         install-plugins.c \
30         missing-plugins.c \
31         gstdiscoverer.c   \
32         gstdiscoverer-types.c
33
34 nodist_libgstpbutils_@GST_MAJORMINOR@_la_SOURCES = \
35         pbutils-enumtypes.c     \
36         pbutils-marshal.c
37
38 libgstpbutils_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/pbutils
39 libgstpbutils_@GST_MAJORMINOR@include_HEADERS = \
40         $(headers_pbutils)
41 nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS = \
42         $(built_headers_configure) \
43         pbutils-enumtypes.h
44 noinst_HEADERS = \
45         pbutils-private.h
46 EXTRA_DIST = pbutils-marshal.list
47
48 libgstpbutils_@GST_MAJORMINOR@_la_LIBADD = \
49   $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la \
50   $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
51   $(GST_LIBS)
52 libgstpbutils_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
53 libgstpbutils_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
54
55 BUILT_SOURCES = \
56         pbutils-enumtypes.c \
57         pbutils-enumtypes.h \
58         pbutils-marshal.c   \
59         pbutils-marshal.h
60
61 CLEANFILES = $(BUILT_SOURCES)
62
63 # DISTCLEANFILES is for files generated by configure
64 DISTCLEANFILES = $(built_headers_configure)
65
66 include $(top_srcdir)/common/gst-glib-gen.mak
67
68 if HAVE_INTROSPECTION
69 BUILT_GIRSOURCES = GstPbutils-@GST_MAJORMINOR@.gir
70
71 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
72 gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
73 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstpbutils_@GST_MAJORMINOR@_la_SOURCES))
74 gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstpbutils_@GST_MAJORMINOR@_la_SOURCES))
75 gir_cincludes=$(patsubst %,--c-include='gst/pbutils/%',$(libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
76 gir_cincludes+=$(patsubst %,--c-include='gst/pbutils/%',$(nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
77
78 GstPbutils-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstpbutils-@GST_MAJORMINOR@.la
79         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
80                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
81                 $(INTROSPECTION_SCANNER) -v --namespace GstPbutils \
82                 --nsversion=@GST_MAJORMINOR@ \
83                 --strip-prefix=Gst \
84                 --warn-all \
85                 $(gir_cincludes) \
86                 -DGST_USE_UNSTABLE_API \
87                 -I$(top_srcdir)/gst-libs \
88                 -I$(top_builddir)/gst-libs \
89                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
90                 --library=libgstpbutils-@GST_MAJORMINOR@.la \
91                 --library-path=`$(PKG_CONFIG) --variable=libdir gstreamer-@GST_MAJORMINOR@` \
92                 --library=gstreamer-@GST_MAJORMINOR@ \
93                 --include=Gst-@GST_MAJORMINOR@ \
94                 --libtool="$(top_builddir)/libtool" \
95                 --pkg gstreamer-@GST_MAJORMINOR@ \
96                 --pkg-export gstreamer-pbutils-@GST_MAJORMINOR@ \
97                 --add-init-section="gst_init(NULL,NULL);" \
98                 --output $@ \
99                 $(gir_headers) \
100                 $(gir_sources)
101
102 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
103 # install anything - we need to install inside our prefix.
104 girdir = $(datadir)/gir-1.0
105 gir_DATA = $(BUILT_GIRSOURCES)
106
107 typelibsdir = $(libdir)/girepository-1.0/
108
109 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
110
111 %.typelib: %.gir $(INTROSPECTION_COMPILER)
112         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
113                 $(INTROSPECTION_COMPILER) \
114                 --includedir=$(srcdir) \
115                 --includedir=$(builddir) \
116                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
117                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
118
119 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
120 endif
121
122 Android.mk: Makefile.am $(BUILT_SOURCES)
123         androgenizer -:PROJECT libgstpbutils -:SHARED libgstpbutils-@GST_MAJORMINOR@ \
124          -:TAGS eng debug \
125          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
126          -:SOURCES $(libgstpbutils_@GST_MAJORMINOR@_la_SOURCES) \
127                    $(nodist_libgstpbutils_@GST_MAJORMINOR@_la_SOURCES) \
128          -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstpbutils_@GST_MAJORMINOR@_la_CFLAGS) \
129          -:LDFLAGS $(libgstpbutils_@GST_MAJORMINOR@_la_LDFLAGS) \
130                    $(libgstpbutils_@GST_MAJORMINOR@_la_LIBADD) \
131                    -ldl \
132          -:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/pbutils \
133          -:HEADERS $(libgstpbutils_@GST_MAJORMINOR@include_HEADERS) \
134                    $(nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS) \
135          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
136         > $@