Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git] / gst-libs / gst / tag / Makefile.am
1 libgsttagincludedir = \
2         $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/tag
3
4 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 # lang-tables.dat contains generated static data and is included by lang.c
17 EXTRA_DIST = lang-tables.dat
18
19 noinst_HEADERS = gsttageditingprivate.h
20
21 if HAVE_INTROSPECTION
22 BUILT_GIRSOURCES = GstTag-@GST_MAJORMINOR@.gir
23
24 gir_headers=$(patsubst %,$(srcdir)/%, $(libgsttaginclude_HEADERS))
25 gir_sources=$(patsubst %,$(srcdir)/%, $(libgsttag_@GST_MAJORMINOR@_la_SOURCES))
26 gir_cincludes=$(patsubst %,--c-include='gst/tag/%',$(libgsttaginclude_HEADERS))
27
28 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                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
35                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
36                 --library=libgsttag-@GST_MAJORMINOR@.la \
37                 --include=Gst-@GST_MAJORMINOR@ \
38                 --include=GstBase-@GST_MAJORMINOR@ \
39                 --libtool="$(top_builddir)/libtool" \
40                 --pkg gstreamer-@GST_MAJORMINOR@ \
41                 --pkg gstreamer-base-@GST_MAJORMINOR@ \
42                 --pkg-export gstreamer-tag-@GST_MAJORMINOR@ \
43                 --output $@ \
44                 $(gir_headers) \
45                 $(gir_sources)
46
47 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
48 # install anything - we need to install inside our prefix.
49 girdir = $(datadir)/gir-1.0
50 gir_DATA = $(BUILT_GIRSOURCES)
51
52 typelibsdir = $(libdir)/girepository-1.0/
53
54 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
55
56 %.typelib: %.gir $(INTROSPECTION_COMPILER)
57         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
58                 $(INTROSPECTION_COMPILER) \
59                 --includedir=$(srcdir) \
60                 --includedir=$(builddir) \
61                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
62                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
63                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
64
65 CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
66 endif
67
68 # little program that reads iso_639.xml and outputs tables for us as fallback
69 # for when iso-codes are not available (and so we don't have to read the xml
70 # just to map codes)
71 if USE_ISO_CODES
72 ISO_CODE_PROGS = mklangtables
73 mklangtables_SOURCES = mklangtables.c
74 mklangtables_CFLAGS = $(GST_CFLAGS)
75 mklangtables_LDADD = $(GST_LIBS)
76 else
77 ISO_CODE_PROGS =
78 endif
79
80 noinst_PROGRAMS = $(ISO_CODE_PROGS)