d8a79388f78cb1db4faccacb4bb1b629ba3e1fe7
[platform/upstream/gstreamer.git] / gst-libs / gst / audio / Makefile.am
1 # variables used for enum/marshal generation
2 ORC_SOURCE=gstaudiopack
3 include $(top_srcdir)/common/orc.mak
4
5 glib_enum_headers=              \
6         audio.h                 \
7         audio-format.h                  \
8         audio-channels.h                        \
9         audio-info.h                    \
10         gstaudioringbuffer.h
11
12 glib_enum_define = GST_AUDIO
13 glib_gen_prefix = gst_audio
14 glib_gen_basename = audio
15
16 built_sources = audio-enumtypes.c
17 built_headers = audio-enumtypes.h
18 BUILT_SOURCES += $(built_sources) $(built_headers)
19
20 lib_LTLIBRARIES = \
21         libgstaudio-@GST_API_VERSION@.la
22
23 CLEANFILES = $(BUILT_SOURCES)
24
25 libgstaudio_@GST_API_VERSION@_la_SOURCES = \
26         audio.c \
27         audio-format.c \
28         audio-channels.c \
29         audio-info.c \
30         gstaudioringbuffer.c \
31         gstaudioclock.c \
32         gstaudiocdsrc.c \
33         gstaudiodecoder.c \
34         gstaudioencoder.c \
35         gstaudiobasesink.c \
36         gstaudiobasesrc.c \
37         gstaudiofilter.c \
38         gstaudiometa.c \
39         gstaudiosink.c \
40         gstaudiosrc.c \
41         gstaudioutilsprivate.c \
42         streamvolume.c \
43         gstaudioiec61937.c
44
45 nodist_libgstaudio_@GST_API_VERSION@_la_SOURCES = $(BUILT_SOURCES)
46
47 libgstaudio_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/audio
48 libgstaudio_@GST_API_VERSION@include_HEADERS = \
49         audio.h \
50         audio-format.h \
51         audio-channels.h \
52         audio-info.h \
53         gstaudioringbuffer.h \
54         gstaudioclock.h \
55         gstaudiofilter.h \
56         gstaudiocdsrc.h \
57         gstaudiodecoder.h \
58         gstaudioencoder.h \
59         gstaudiobasesink.h \
60         gstaudiobasesrc.h \
61         gstaudiometa.h \
62         gstaudiosink.h \
63         gstaudiosrc.h \
64         streamvolume.h \
65         gstaudioiec61937.h
66
67 nodist_libgstaudio_@GST_API_VERSION@include_HEADERS = \
68         audio-enumtypes.h
69
70 noinst_HEADERS = gstaudioutilsprivate.h
71
72 libgstaudio_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) \
73                 $(ORC_CFLAGS)
74 libgstaudio_@GST_API_VERSION@_la_LIBADD = \
75   $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
76   $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) $(ORC_LIBS)
77 libgstaudio_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
78
79 include $(top_srcdir)/common/gst-glib-gen.mak
80
81 if HAVE_INTROSPECTION
82 BUILT_GIRSOURCES = GstAudio-@GST_API_VERSION@.gir
83
84 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstaudio_@GST_API_VERSION@include_HEADERS))
85 gir_headers+=$(patsubst %,$(builddir)/%, $(built_headers))
86 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstaudio_@GST_API_VERSION@_la_SOURCES))
87 gir_sources+=$(patsubst %,$(builddir)/%, $(built_sources))
88
89 GstAudio-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstaudio-@GST_API_VERSION@.la
90         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
91                 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_UPDATE=no \
92                 $(INTROSPECTION_SCANNER) -v --namespace GstAudio \
93                 --nsversion=@GST_API_VERSION@ \
94                 --warn-all \
95                 --strip-prefix=Gst \
96                 -I$(top_srcdir)/gst-libs \
97                 -I$(top_builddir)/gst-libs \
98                 --c-include "gst/audio/audio.h" \
99                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
100                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
101                 --add-include-path="$(top_builddir)/gst-libs/gst/tag/" \
102                 --library=libgstaudio-@GST_API_VERSION@.la \
103                 --library-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=libdir gstreamer-@GST_API_VERSION@` \
104                 --library-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=libdir gstreamer-base-@GST_API_VERSION@` \
105                 --library-path="$(top_builddir)/gst-libs/gst/tag/" \
106                 --include=Gst-@GST_API_VERSION@ \
107                 --include=GstBase-@GST_API_VERSION@ \
108                 --include=GstTag-@GST_API_VERSION@ \
109                 --libtool="$(top_builddir)/libtool" \
110                 --pkg gstreamer-@GST_API_VERSION@ \
111                 --pkg gstreamer-base-@GST_API_VERSION@ \
112                 --pkg-export gstreamer-audio-@GST_API_VERSION@ \
113                 --add-init-section="gst_init(NULL,NULL);" \
114                 --output $@ \
115                 $(gir_headers) \
116                 $(gir_sources)
117
118 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
119 # install anything - we need to install inside our prefix.
120 girdir = $(datadir)/gir-1.0
121 gir_DATA = $(BUILT_GIRSOURCES)
122
123 typelibsdir = $(libdir)/girepository-1.0/
124
125 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
126
127 %.typelib: %.gir $(INTROSPECTION_COMPILER)
128         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
129                 $(INTROSPECTION_COMPILER) \
130                 --includedir=$(srcdir) \
131                 --includedir=$(builddir) \
132                 --includedir="$(top_builddir)/gst-libs/gst/tag/" \
133                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
134                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
135                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
136
137 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
138 endif
139
140 Android.mk: Makefile.am $(BUILT_SOURCES)
141         androgenizer -:PROJECT libgstaudio -:SHARED libgstaudio-@GST_API_VERSION@ \
142          -:TAGS eng debug \
143          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
144          -:SOURCES $(libgstaudio_@GST_API_VERSION@_la_SOURCES) \
145                    $(nodist_libgstaudio_@GST_API_VERSION@_la_SOURCES) \
146          -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstaudio_@GST_API_VERSION@_la_CFLAGS) \
147          -:LDFLAGS $(libgstaudio_@GST_API_VERSION@_la_LDFLAGS) \
148                    $(libgstaudio_@GST_API_VERSION@_la_LIBADD) \
149                    -ldl \
150          -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst/tag \
151          -:HEADERS $(libgstaudio_@GST_API_VERSION@include_HEADERS) \
152                    $(nodist_libgstaudio_@GST_API_VERSION@include_HEADERS) \
153          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
154         > $@