Makefile.am 2.77 KB
Newer Older
Thomas Vander Stichele's avatar
Thomas Vander Stichele committed
1
2
3
4
libgsttagincludedir = \
	$(includedir)/gstreamer-@GST_MAJORMINOR@/gst/tag

libgsttaginclude_HEADERS = \
5
	tag.h gsttagdemux.h
6

7
lib_LTLIBRARIES = libgsttag-@GST_MAJORMINOR@.la
8

9
libgsttag_@GST_MAJORMINOR@_la_SOURCES = \
10
    gstvorbistag.c gstid3tag.c gstxmptag.c gstexiftag.c \
11
    lang.c tags.c gsttagdemux.c gsttageditingprivate.c
12
libgsttag_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
13
libgsttag_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM)
14
libgsttag_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
15

16
17
18
# lang-tables.dat contains generated static data and is included by lang.c
EXTRA_DIST = lang-tables.dat

19
noinst_HEADERS = gsttageditingprivate.h
20
21
22
23
24
25
26
27
28

if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstTag-@GST_MAJORMINOR@.gir

gir_headers=$(patsubst %,$(srcdir)/%, $(libgsttaginclude_HEADERS))
gir_sources=$(patsubst %,$(srcdir)/%, $(libgsttag_@GST_MAJORMINOR@_la_SOURCES))
gir_cincludes=$(patsubst %,--c-include='gst/audio/%',$(libgsttainclude_HEADERS))

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

CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif
67
68
69
70
71
72
73
74
75
76
77
78
79
80

# little program that reads iso_639.xml and outputs tables for us as fallback
# for when iso-codes are not available (and so we don't have to read the xml
# just to map codes)
if USE_ISO_CODES
ISO_CODE_PROGS = mklangtables
mklangtables_SOURCES = mklangtables.c
mklangtables_CFLAGS = $(GST_CFLAGS)
mklangtables_LDADD = $(GST_LIBS)
else
ISO_CODE_PROGS =
endif

noinst_PROGRAMS = $(ISO_CODE_PROGS)