1 # variables used for enum/marshal generation
6 glib_enum_define = GST_AUDIO
7 glib_gen_prefix = gst_audio
8 glib_gen_basename = audio
10 built_sources = audio-enumtypes.c
11 built_headers = audio-enumtypes.h
12 BUILT_SOURCES = $(built_sources) $(built_headers)
15 libgstaudio-@GST_MAJORMINOR@.la
17 CLEANFILES = $(BUILT_SOURCES)
19 libgstaudio_@GST_MAJORMINOR@_la_SOURCES = \
30 nodist_libgstaudio_@GST_MAJORMINOR@_la_SOURCES = $(built_sources) $(built_headers)
32 libgstaudio_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/audio
33 libgstaudio_@GST_MAJORMINOR@include_HEADERS = \
45 nodist_libgstaudio_@GST_MAJORMINOR@include_HEADERS = \
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)
53 noinst_PROGRAMS = testchannels
54 testchannels_SOURCES = testchannels.c
55 testchannels_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
56 testchannels_LDADD = $(GST_LIBS)
58 include $(top_srcdir)/common/gst-glib-gen.mak
61 BUILT_GIRSOURCES = GstAudio-@GST_MAJORMINOR@.gir
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))
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@ \
75 -I$(top_srcdir)/gst-libs \
76 -I$(top_builddir)/gst-libs \
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@ \
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)
99 typelibsdir = $(libdir)/girepository-1.0/
101 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
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)
113 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)