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 gsttagmux.h xmpwriter.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 licenses.c tags.c gsttagdemux.c gsttagmux.c \
12         gsttageditingprivate.c id3v2.c id3v2frames.c xmpwriter.c
13
14 libgsttag_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
15         $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(ZLIB_CFLAGS) \
16         -DLICENSE_TRANSLATIONS_PATH=\"$(pkgdatadir)/license-translations.dict\"
17 libgsttag_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) $(ZLIB_LIBS)
18 libgsttag_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
19
20 # lang-tables.dat contains generated static data and is included by lang.c
21 # licenses-tables.dat contains generated data and is included by licenses.c
22 EXTRA_DIST = lang-tables.dat licenses-tables.dat license-translations.dict
23
24 noinst_HEADERS = gsttageditingprivate.h id3v2.h
25
26 if HAVE_INTROSPECTION
27 BUILT_GIRSOURCES = GstTag-@GST_MAJORMINOR@.gir
28
29 gir_headers=$(patsubst %,$(srcdir)/%, $(libgsttaginclude_HEADERS))
30 gir_sources=$(patsubst %,$(srcdir)/%, $(libgsttag_@GST_MAJORMINOR@_la_SOURCES))
31 gir_cincludes=$(patsubst %,--c-include='gst/tag/%',$(libgsttaginclude_HEADERS))
32
33 GstTag-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgsttag-@GST_MAJORMINOR@.la
34         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
35                 GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
36                 $(INTROSPECTION_SCANNER) -v --namespace GstTag \
37                 --nsversion=@GST_MAJORMINOR@ \
38                 --strip-prefix=Gst \
39                 --warn-all \
40                 $(gir_cincludes) \
41                 -DGST_USE_UNSTABLE_API \
42                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
43                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
44                 --library=libgsttag-@GST_MAJORMINOR@.la \
45                 --include=Gst-@GST_MAJORMINOR@ \
46                 --include=GstBase-@GST_MAJORMINOR@ \
47                 --libtool="$(top_builddir)/libtool" \
48                 --pkg gstreamer-@GST_MAJORMINOR@ \
49                 --pkg gstreamer-base-@GST_MAJORMINOR@ \
50                 --pkg-export gstreamer-tag-@GST_MAJORMINOR@ \
51                 --add-init-section="gst_init(NULL,NULL);" \
52                 --output $@ \
53                 $(gir_headers) \
54                 $(gir_sources)
55
56 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
57 # install anything - we need to install inside our prefix.
58 girdir = $(datadir)/gir-1.0
59 gir_DATA = $(BUILT_GIRSOURCES)
60
61 typelibsdir = $(libdir)/girepository-1.0/
62
63 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
64
65 %.typelib: %.gir $(INTROSPECTION_COMPILER)
66         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
67                 $(INTROSPECTION_COMPILER) \
68                 --includedir=$(srcdir) \
69                 --includedir=$(builddir) \
70                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
71                 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
72                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
73
74 CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
75 endif
76
77 # little program that reads iso_639.xml and outputs tables for us as fallback
78 # for when iso-codes are not available (and so we don't have to read the xml
79 # just to map codes)
80 mklangtables_SOURCES = mklangtables.c
81 mklangtables_CFLAGS = $(GST_CFLAGS)
82 mklangtables_LDADD = $(GST_LIBS)
83
84 mklicensestables_SOURCES = mklicensestables.c
85 mklicensestables_CFLAGS = $(GST_CFLAGS)
86 mklicensestables_LDADD = $(GST_LIBS)
87
88 EXTRA_PROGRAMS = mklangtables mklicensestables
89
90 update-isocodes: mklangtables
91         $(builddir)/mklangtables > $(srcdir)/lang-tables.dat && \
92                 echo "Updated lang-tables.dat"
93
94 update-licenses: mklicensestables
95         $(builddir)/mklicensestables \
96                 --translation-dictionary=$(srcdir)/license-translations.dict \
97                 > $(srcdir)/licenses-tables.dat && \
98                 echo "Updated licenses-tables.dat and license-translations.dict"
99
100 #if USE_NLS
101 # Yes, this is not great, but it's only an implementation detail. The
102 # translations come from an external source here, so we don't want the
103 # strings retranslated, but also we don't want to create 30 1kB .mo files,
104 # so just do something for now, we can change it later if someone really cares.
105 licensetransdir = $(pkgdatadir)
106 licensetrans_DATA = $(srcdir)/license-translations.dict
107 #endif
108
109 Android.mk: Makefile.am
110         androgenizer -:PROJECT libgsttag -:SHARED libgsttag-@GST_MAJORMINOR@ \
111          -:TAGS eng debug \
112          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
113          -:SOURCES $(libgsttag_@GST_MAJORMINOR@_la_SOURCES) \
114          -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgsttag_@GST_MAJORMINOR@_la_CFLAGS) \
115          -:LDFLAGS $(libgsttag_@GST_MAJORMINOR@_la_LDFLAGS) \
116                    $(libgsttag_@GST_MAJORMINOR@_la_LIBADD) \
117                    -ldl \
118          -:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/tag \
119          -:HEADERS $(libgsttaginclude_HEADERS) \
120          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
121         > $@