Makefile.am 2.74 KB
Newer Older
1
lib_LTLIBRARIES = libgstriff-@GST_MAJORMINOR@.la
2

3
libgstriff_@GST_MAJORMINOR@_la_SOURCES = \
4
5
	riff.c \
	riff-media.c \
6
	riff-read.c
7

8
9
libgstriff_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/riff
libgstriff_@GST_MAJORMINOR@include_HEADERS = \
10
11
	riff-ids.h \
	riff-media.h \
12
	riff-read.h
13

14
libgstriff_@GST_MAJORMINOR@_la_LIBADD = \
15
  $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \
16
17
18
  $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_MAJORMINOR@.la \
  $(GST_BASE_LIBS) $(GST_LIBS)

19
libgstriff_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
20
libgstriff_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
21
22
23
24
25
26
27
28
29

if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstRiff-@GST_MAJORMINOR@.gir

gir_headers=$(patsubst %,$(srcdir)/%, $(libgstriff_@GST_MAJORMINOR@include_HEADERS))
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstriff_@GST_MAJORMINOR@_la_SOURCES))
gir_cincludes=$(patsubst %,--c-include='gst/riff/%',$(libgstriff_@GST_MAJORMINOR@include_HEADERS))

GstRiff-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstriff-@GST_MAJORMINOR@.la
30
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
31
		$(INTROSPECTION_SCANNER) -v --namespace GstRiff \
32
		--nsversion=@GST_MAJORMINOR@ \
33
		--strip-prefix=Gst \
34
		$(gir_cincludes) \
35
36
37
		--add-include-path=$(builddir)/../tag \
		--add-include-path=$(builddir)/../audio \
		--add-include-path=$(builddir)/../interfaces \
38
39
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \
40
		--library=libgstriff-0.10.la \
41
42
		--include=GstAudio-0.10 \
		--include=GstTag-0.10 \
43
44
45
		--include=Gst-0.10 \
		--libtool="$(top_builddir)/libtool" \
		--pkg gstreamer-0.10 \
46
47
48
		--pkg gstreamer-tag-0.10 \
		--pkg gstreamer-audio-0.10 \
		--pkg gstreamer-interfaces-0.10 \
49
		--pkg-export gstreamer-riff-0.10 \
50
51
52
53
54
55
56
57
58
59
60
61
62
63
		--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)
64
65
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
		$(INTROSPECTION_COMPILER) \
66
67
68
69
70
		--includedir=$(srcdir) \
		--includedir=$(builddir) \
		--includedir=$(builddir)/../tag \
		--includedir=$(builddir)/../audio \
		--includedir=$(builddir)/../interfaces \
71
72
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \
73
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
74
75
76

CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif