libs: Use foo/foo.h as single-include header consistently everywhere
[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         streamvolume.c \
42         gstaudioiec61937.c
43
44 nodist_libgstaudio_@GST_API_VERSION@_la_SOURCES = $(BUILT_SOURCES)
45
46 libgstaudio_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/audio
47 libgstaudio_@GST_API_VERSION@include_HEADERS = \
48         audio.h \
49         audio-format.h \
50         audio-channels.h \
51         audio-info.h \
52         gstaudioringbuffer.h \
53         gstaudioclock.h \
54         gstaudiofilter.h \
55         gstaudiocdsrc.h \
56         gstaudiodecoder.h \
57         gstaudioencoder.h \
58         gstaudiobasesink.h \
59         gstaudiobasesrc.h \
60         gstaudiometa.h \
61         gstaudiosink.h \
62         gstaudiosrc.h \
63         streamvolume.h \
64         gstaudioiec61937.h
65
66 nodist_libgstaudio_@GST_API_VERSION@include_HEADERS = \
67         audio-enumtypes.h
68
69 libgstaudio_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) \
70                 $(ORC_CFLAGS)
71 libgstaudio_@GST_API_VERSION@_la_LIBADD = \
72   $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
73   $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) $(ORC_LIBS)
74 libgstaudio_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
75
76 include $(top_srcdir)/common/gst-glib-gen.mak
77
78 if HAVE_INTROSPECTION
79 BUILT_GIRSOURCES = GstAudio-@GST_API_VERSION@.gir
80
81 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstaudio_@GST_API_VERSION@include_HEADERS))
82 gir_headers+=$(patsubst %,$(builddir)/%, $(built_headers))
83 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstaudio_@GST_API_VERSION@_la_SOURCES))
84 gir_sources+=$(patsubst %,$(builddir)/%, $(built_sources))
85
86 GstAudio-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstaudio-@GST_API_VERSION@.la
87         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
88                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
89                 $(INTROSPECTION_SCANNER) -v --namespace GstAudio \
90                 --nsversion=@GST_API_VERSION@ \
91                 --warn-all \
92                 --strip-prefix=Gst \
93                 -I$(top_srcdir)/gst-libs \
94                 -I$(top_builddir)/gst-libs \
95                 --c-include "gst/audio/audio.h" \
96                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
97                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
98                 --add-include-path="$(top_builddir)/gst-libs/gst/tag/" \
99                 --library=libgstaudio-@GST_API_VERSION@.la \
100                 --library-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=libdir gstreamer-@GST_API_VERSION@` \
101                 --library-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=libdir gstreamer-base-@GST_API_VERSION@` \
102                 --library-path="$(top_builddir)/gst-libs/gst/tag/" \
103                 --include=Gst-@GST_API_VERSION@ \
104                 --include=GstBase-@GST_API_VERSION@ \
105                 --include=GstTag-@GST_API_VERSION@ \
106                 --libtool="$(top_builddir)/libtool" \
107                 --pkg gstreamer-@GST_API_VERSION@ \
108                 --pkg gstreamer-base-@GST_API_VERSION@ \
109                 --pkg-export gstreamer-audio-@GST_API_VERSION@ \
110                 --add-init-section="gst_init(NULL,NULL);" \
111                 --output $@ \
112                 $(gir_headers) \
113                 $(gir_sources)
114
115 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
116 # install anything - we need to install inside our prefix.
117 girdir = $(datadir)/gir-1.0
118 gir_DATA = $(BUILT_GIRSOURCES)
119
120 typelibsdir = $(libdir)/girepository-1.0/
121
122 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
123
124 %.typelib: %.gir $(INTROSPECTION_COMPILER)
125         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
126                 $(INTROSPECTION_COMPILER) \
127                 --includedir=$(srcdir) \
128                 --includedir=$(builddir) \
129                 --includedir="$(top_builddir)/gst-libs/gst/tag/" \
130                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
131                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
132                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
133
134 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
135 endif
136
137 Android.mk: Makefile.am $(BUILT_SOURCES)
138         androgenizer -:PROJECT libgstaudio -:SHARED libgstaudio-@GST_API_VERSION@ \
139          -:TAGS eng debug \
140          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
141          -:SOURCES $(libgstaudio_@GST_API_VERSION@_la_SOURCES) \
142                    $(nodist_libgstaudio_@GST_API_VERSION@_la_SOURCES) \
143          -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstaudio_@GST_API_VERSION@_la_CFLAGS) \
144          -:LDFLAGS $(libgstaudio_@GST_API_VERSION@_la_LDFLAGS) \
145                    $(libgstaudio_@GST_API_VERSION@_la_LIBADD) \
146                    -ldl \
147          -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst/tag \
148          -:HEADERS $(libgstaudio_@GST_API_VERSION@include_HEADERS) \
149                    $(nodist_libgstaudio_@GST_API_VERSION@include_HEADERS) \
150          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
151         > $@