1 libgsttagincludedir = \
2 $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/tag
4 libgsttaginclude_HEADERS = \
5 tag.h gsttagdemux.h gsttagmux.h xmpwriter.h
7 lib_LTLIBRARIES = libgsttag-@GST_MAJORMINOR@.la
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 xmpwriter.c
14 libgsttag_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
15 $(GST_BASE_CFLAGS) $(GST_CFLAGS) \
16 -DLICENSE_TRANSLATIONS_PATH=\"$(pkgdatadir)/license-translations.dict\"
17 libgsttag_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM)
18 libgsttag_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
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
24 noinst_HEADERS = gsttageditingprivate.h
27 BUILT_GIRSOURCES = GstTag-@GST_MAJORMINOR@.gir
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))
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@ \
40 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
41 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
42 --library=libgsttag-@GST_MAJORMINOR@.la \
43 --include=Gst-@GST_MAJORMINOR@ \
44 --include=GstBase-@GST_MAJORMINOR@ \
45 --libtool="$(top_builddir)/libtool" \
46 --pkg gstreamer-@GST_MAJORMINOR@ \
47 --pkg gstreamer-base-@GST_MAJORMINOR@ \
48 --pkg-export gstreamer-tag-@GST_MAJORMINOR@ \
49 --add-init-section="gst_init(NULL,NULL);" \
54 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
55 # install anything - we need to install inside our prefix.
56 girdir = $(datadir)/gir-1.0
57 gir_DATA = $(BUILT_GIRSOURCES)
59 typelibsdir = $(libdir)/girepository-1.0/
61 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
63 %.typelib: %.gir $(INTROSPECTION_COMPILER)
64 $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
65 $(INTROSPECTION_COMPILER) \
66 --includedir=$(srcdir) \
67 --includedir=$(builddir) \
68 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
69 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
70 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
72 CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA)
75 # little program that reads iso_639.xml and outputs tables for us as fallback
76 # for when iso-codes are not available (and so we don't have to read the xml
78 mklangtables_SOURCES = mklangtables.c
79 mklangtables_CFLAGS = $(GST_CFLAGS)
80 mklangtables_LDADD = $(GST_LIBS)
82 mklicensestables_SOURCES = mklicensestables.c
83 mklicensestables_CFLAGS = $(GST_CFLAGS)
84 mklicensestables_LDADD = $(GST_LIBS)
86 EXTRA_PROGRAMS = mklangtables mklicensestables
88 update-isocodes: mklangtables
89 $(builddir)/mklangtables > $(srcdir)/lang-tables.dat && \
90 echo "Updated lang-tables.dat"
92 update-licenses: mklicensestables
93 $(builddir)/mklicensestables \
94 --translation-dictionary=$(srcdir)/license-translations.dict \
95 > $(srcdir)/licenses-tables.dat && \
96 echo "Updated licenses-tables.dat and license-translations.dict"
99 # Yes, this is not great, but it's only an implementation detail. The
100 # translations come from an external source here, so we don't want the
101 # strings retranslated, but also we don't want to create 30 1kB .mo files,
102 # so just do something for now, we can change it later if someone really cares.
103 licensetransdir = $(pkgdatadir)
104 licensetrans_DATA = $(builddir)/license-translations.dict
107 Android.mk: Makefile.am
108 androgenizer -:PROJECT libgsttag -:SHARED libgsttag-@GST_MAJORMINOR@ \
110 -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
111 -:SOURCES $(libgsttag_@GST_MAJORMINOR@_la_SOURCES) \
112 -:CFLAGS $(DEFS) $(libgsttag_@GST_MAJORMINOR@_la_CFLAGS) \
113 -:LDFLAGS $(libgsttag_@GST_MAJORMINOR@_la_LDFLAGS) \
114 $(libgsttag_@GST_MAJORMINOR@_la_LIBADD) \
116 -:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst/tag \
117 -:HEADERS $(libgsttaginclude_HEADERS) \
118 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \