21b617b282394e8c5f7a520f76c08b0d9539bf7b
[platform/upstream/gstreamer.git] / gst-libs / gst / riff / Makefile.am
1 lib_LTLIBRARIES = libgstriff-@GST_API_VERSION@.la
2
3 libgstriff_@GST_API_VERSION@_la_SOURCES = \
4         riff.c \
5         riff-media.c \
6         riff-read.c
7
8 libgstriff_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/riff
9 libgstriff_@GST_API_VERSION@include_HEADERS = \
10         riff.h \
11         riff-ids.h \
12         riff-media.h \
13         riff-read.h
14
15 libgstriff_@GST_API_VERSION@_la_LIBADD = \
16   $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_API_VERSION@.la \
17   $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
18   $(GST_BASE_LIBS) $(GST_LIBS)
19
20 libgstriff_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
21 libgstriff_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
22
23 if HAVE_INTROSPECTION
24 BUILT_GIRSOURCES = GstRiff-@GST_API_VERSION@.gir
25
26 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstriff_@GST_API_VERSION@include_HEADERS))
27 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstriff_@GST_API_VERSION@_la_SOURCES))
28
29 GstRiff-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstriff-@GST_API_VERSION@.la
30         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
31                 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_UPDATE=no \
32                 $(INTROSPECTION_SCANNER) -v --namespace GstRiff \
33                 --nsversion=@GST_API_VERSION@ \
34                 --strip-prefix=Gst \
35                 --warn-all \
36                 --c-include "gst/riff/riff.h" \
37                 --add-include-path=$(builddir)/../tag \
38                 --add-include-path=$(builddir)/../audio \
39                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
40                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
41                 --library=libgstriff-@GST_API_VERSION@.la \
42                 --include=GstAudio-@GST_API_VERSION@ \
43                 --include=GstTag-@GST_API_VERSION@ \
44                 --include=Gst-@GST_API_VERSION@ \
45                 --libtool="$(top_builddir)/libtool" \
46                 --pkg gstreamer-@GST_API_VERSION@ \
47                 --pkg gstreamer-tag-@GST_API_VERSION@ \
48                 --pkg gstreamer-audio-@GST_API_VERSION@ \
49                 --pkg-export gstreamer-riff-@GST_API_VERSION@ \
50                 --add-init-section="gst_init(NULL,NULL);" \
51                 --output $@ \
52                 $(gir_headers) \
53                 $(gir_sources)
54
55 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
56 # install anything - we need to install inside our prefix.
57 girdir = $(datadir)/gir-1.0
58 gir_DATA = $(BUILT_GIRSOURCES)
59
60 typelibsdir = $(libdir)/girepository-1.0/
61
62 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
63
64 %.typelib: %.gir $(INTROSPECTION_COMPILER)
65         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
66                 $(INTROSPECTION_COMPILER) \
67                 --includedir=$(srcdir) \
68                 --includedir=$(builddir) \
69                 --includedir=$(builddir)/../tag \
70                 --includedir=$(builddir)/../audio \
71                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
72                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
73                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
74
75 CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
76 endif
77
78 Android.mk: Makefile.am
79         androgenizer -:PROJECT libgstriff -:SHARED libgstriff-@GST_API_VERSION@ \
80          -:TAGS eng debug \
81          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
82          -:SOURCES $(libgstriff_@GST_API_VERSION@_la_SOURCES) \
83          -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstriff_@GST_API_VERSION@_la_CFLAGS) \
84          -:LDFLAGS $(libgstriff_@GST_API_VERSION@_la_LDFLAGS) \
85                    $(libgstriff_@GST_API_VERSION@_la_LIBADD) \
86                    -ldl \
87          -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst/tag \
88          -:HEADERS $(libgstriff_@GST_API_VERSION@include_HEADERS) \
89          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
90         > $@