Makefile.am 3.79 KB
Newer Older
Ronald S. Bultje's avatar
Ronald S. Bultje committed
1
# variables used for enum/marshal generation
2
3
4
5
glib_enum_headers= 		\
	multichannel.h		\
	gstringbuffer.h

6
glib_enum_define = GST_AUDIO
7
glib_gen_prefix = gst_audio
8
glib_gen_basename = audio
Ronald S. Bultje's avatar
Ronald S. Bultje committed
9

10
11
built_sources = audio-enumtypes.c
built_headers = audio-enumtypes.h
Ronald S. Bultje's avatar
Ronald S. Bultje committed
12
13
BUILT_SOURCES = $(built_sources) $(built_headers)

14
lib_LTLIBRARIES = \
15
	libgstaudio-@GST_MAJORMINOR@.la
16

17
CLEANFILES = $(BUILT_SOURCES)
18

19
20
libgstaudio_@GST_MAJORMINOR@_la_SOURCES = \
	audio.c \
21
	gstringbuffer.c \
22
23
	gstaudioclock.c \
	mixerutils.c \
24
25
	multichannel.c \
	gstbaseaudiosink.c \
Wim Taymans's avatar
Wim Taymans committed
26
	gstbaseaudiosrc.c \
27
28
29
	gstaudiofilter.c \
	gstaudiosink.c \
	gstaudiosrc.c
30
nodist_libgstaudio_@GST_MAJORMINOR@_la_SOURCES = $(built_sources) $(built_headers)
31

32
33
libgstaudio_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/audio
libgstaudio_@GST_MAJORMINOR@include_HEADERS = \
Ronald S. Bultje's avatar
Ronald S. Bultje committed
34
	audio.h \
35
	gstringbuffer.h \
36
	gstaudioclock.h \
Ronald S. Bultje's avatar
Ronald S. Bultje committed
37
	gstaudiofilter.h \
38
	gstbaseaudiosink.h \
Wim Taymans's avatar
Wim Taymans committed
39
	gstbaseaudiosrc.h \
40
41
	gstaudiosink.h \
	gstaudiosrc.h \
42
	mixerutils.h \
43
44
45
	multichannel.h

nodist_libgstaudio_@GST_MAJORMINOR@include_HEADERS = \
46
	audio-enumtypes.h
47

Tim-Philipp Müller's avatar
Tim-Philipp Müller committed
48
libgstaudio_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
49
50
libgstaudio_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) \
  $(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)
David Schleef's avatar
David Schleef committed
52

53
54
noinst_PROGRAMS = testchannels
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
61
62
63

if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstAudio-@GST_MAJORMINOR@.gir

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
76
		-I$(top_srcdir)/gst-libs \
		-I$(top_builddir)/gst-libs \
77
78
		$(gir_cincludes) \
		--add-include-path=$(builddir)/../interfaces \
79
80
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \
81
		--library=libgstaudio-0.10.la \
82
83
84
85
86
87
88
		--include=Gst-0.10 \
		--include=GstBase-0.10 \
		--include=GstInterfaces-0.10 \
		--libtool="$(top_builddir)/libtool" \
		--pkg gstreamer-0.10 \
		--pkg gstreamer-base-0.10 \
		--pkg gstreamer-interfaces-0.10 \
89
		--pkg-export gstreamer-audio-0.10 \
90
91
92
93
94
95
96
97
98
99
100
101
102
103
		--output $@ \
		$(gir_headers) \
		$(gir_sources)

# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)

typelibsdir = $(libdir)/girepository-1.0/

typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)

%.typelib: %.gir $(INTROSPECTION_COMPILER)
104
105
106
107
	$(AM_V_GEN)$(INTROSPECTION_COMPILER) \
		--includedir=$(srcdir) \
		--includedir=$(builddir) \
		--includedir=$(builddir)/../interfaces \
108
109
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
110
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
111
112
113

CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif