Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git] / gst-libs / gst / audio / Makefile.am
1 # variables used for enum/marshal generation
2 glib_enum_headers=              \
3         multichannel.h          \
4         gstringbuffer.h
5
6 glib_enum_define = GST_AUDIO
7 glib_gen_prefix = gst_audio
8 glib_gen_basename = audio
9
10 built_sources = audio-enumtypes.c
11 built_headers = audio-enumtypes.h
12 BUILT_SOURCES = $(built_sources) $(built_headers)
13
14 lib_LTLIBRARIES = \
15         libgstaudio-@GST_MAJORMINOR@.la
16
17 CLEANFILES = $(BUILT_SOURCES)
18
19 libgstaudio_@GST_MAJORMINOR@_la_SOURCES = \
20         audio.c \
21         gstringbuffer.c \
22         gstaudioclock.c \
23         mixerutils.c \
24         multichannel.c \
25         gstbaseaudiosink.c \
26         gstbaseaudiosrc.c \
27         gstaudiofilter.c \
28         gstaudiosink.c \
29         gstaudiosrc.c
30 nodist_libgstaudio_@GST_MAJORMINOR@_la_SOURCES = $(built_sources) $(built_headers)
31
32 libgstaudio_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/audio
33 libgstaudio_@GST_MAJORMINOR@include_HEADERS = \
34         audio.h \
35         gstringbuffer.h \
36         gstaudioclock.h \
37         gstaudiofilter.h \
38         gstbaseaudiosink.h \
39         gstbaseaudiosrc.h \
40         gstaudiosink.h \
41         gstaudiosrc.h \
42         mixerutils.h \
43         multichannel.h
44
45 nodist_libgstaudio_@GST_MAJORMINOR@include_HEADERS = \
46         audio-enumtypes.h
47
48 libgstaudio_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
49 libgstaudio_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) \
50   $(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-@GST_MAJORMINOR@.la
51 libgstaudio_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
52
53 noinst_PROGRAMS = testchannels
54 testchannels_SOURCES = testchannels.c
55 testchannels_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
56 testchannels_LDADD = $(GST_LIBS)
57
58 include $(top_srcdir)/common/gst-glib-gen.mak
59
60 if HAVE_INTROSPECTION
61 BUILT_GIRSOURCES = GstAudio-@GST_MAJORMINOR@.gir
62
63 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstaudio_@GST_MAJORMINOR@include_HEADERS))
64 gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstaudio_@GST_MAJORMINOR@include_HEADERS))
65 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstaudio_@GST_MAJORMINOR@_la_SOURCES))
66 gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstaudio_@GST_MAJORMINOR@_la_SOURCES))
67 gir_cincludes=$(patsubst %,--c-include='gst/audio/%',$(libgstaudio_@GST_MAJORMINOR@include_HEADERS))
68 gir_cincludes+=$(patsubst %,--c-include='gst/audio/%',$(nodist_libgstaudio_@GST_MAJORMINOR@include_HEADERS))
69
70 GstAudio-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstaudio-@GST_MAJORMINOR@.la
71         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
72                 $(INTROSPECTION_SCANNER) -v --namespace GstAudio \
73                 --nsversion=@GST_MAJORMINOR@ \
74                 --strip-prefix=Gst \
75                 -I$(top_srcdir)/gst-libs \
76                 -I$(top_builddir)/gst-libs \
77                 $(gir_cincludes) \
78                 --add-include-path=$(builddir)/../interfaces \
79                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
80                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
81                 --library=libgstaudio-@GST_MAJORMINOR@.la \
82                 --include=Gst-@GST_MAJORMINOR@ \
83                 --include=GstBase-@GST_MAJORMINOR@ \
84                 --include=GstInterfaces-@GST_MAJORMINOR@ \
85                 --libtool="$(top_builddir)/libtool" \
86                 --pkg gstreamer-@GST_MAJORMINOR@ \
87                 --pkg gstreamer-base-@GST_MAJORMINOR@ \
88                 --pkg gstreamer-interfaces-@GST_MAJORMINOR@ \
89                 --pkg-export gstreamer-audio-@GST_MAJORMINOR@ \
90                 --output $@ \
91                 $(gir_headers) \
92                 $(gir_sources)
93
94 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
95 # install anything - we need to install inside our prefix.
96 girdir = $(datadir)/gir-1.0
97 gir_DATA = $(BUILT_GIRSOURCES)
98
99 typelibsdir = $(libdir)/girepository-1.0/
100
101 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
102
103 %.typelib: %.gir $(INTROSPECTION_COMPILER)
104         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
105                 $(INTROSPECTION_COMPILER) \
106                 --includedir=$(srcdir) \
107                 --includedir=$(builddir) \
108                 --includedir=$(builddir)/../interfaces \
109                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
110                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
111                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
112
113 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
114 endif