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