Move OpenGL library and plugin from -bad
[platform/upstream/gstreamer.git] / gst-libs / gst / tag / Makefile.am
1 libgsttagincludedir = \
2         $(includedir)/gstreamer-@GST_API_VERSION@/gst/tag
3
4 glib_enum_define = GST_TAG
5 glib_gen_prefix = gst_tag
6 glib_gen_basename = tag
7 glib_gen_decl_banner=GST_EXPORT
8
9 glib_enum_headers = tag.h gsttagdemux.h
10
11 built_sources = tag-enumtypes.c
12 built_headers = tag-enumtypes.h
13 BUILT_SOURCES = $(built_sources) $(built_headers)
14
15 include $(top_srcdir)/common/gst-glib-gen.mak
16
17 libgsttaginclude_HEADERS = \
18         tag.h gsttagdemux.h gsttagmux.h xmpwriter.h
19 nodist_libgsttaginclude_HEADERS = tag-enumtypes.h
20
21 CLEANFILES = $(BUILT_SOURCES)
22
23 lib_LTLIBRARIES = libgsttag-@GST_API_VERSION@.la
24
25 libgsttag_@GST_API_VERSION@_la_SOURCES = \
26         gstvorbistag.c gstid3tag.c gstxmptag.c gstexiftag.c \
27         lang.c licenses.c tags.c gsttagdemux.c gsttagmux.c \
28         gsttageditingprivate.c id3v2.c id3v2frames.c xmpwriter.c
29 nodist_libgsttag_@GST_API_VERSION@_la_SOURCES = $(BUILT_SOURCES)
30
31 libgsttag_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
32         $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(ZLIB_CFLAGS) \
33         -DLICENSE_TRANSLATIONS_PATH=\"$(pkgdatadir)/@GST_API_VERSION@/license-translations.dict\"
34 libgsttag_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) $(ZLIB_LIBS)
35 libgsttag_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
36
37 # lang-tables.dat contains generated static data and is included by lang.c
38 # licenses-tables.dat contains generated data and is included by licenses.c
39 EXTRA_DIST = lang-tables.dat licenses-tables.dat license-translations.dict
40
41 noinst_HEADERS = gsttageditingprivate.h id3v2.h
42
43 if HAVE_INTROSPECTION
44 BUILT_GIRSOURCES = GstTag-@GST_API_VERSION@.gir
45
46 gir_headers=$(patsubst %,$(srcdir)/%, $(libgsttaginclude_HEADERS))
47 gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgsttaginclude_HEADERS))
48 gir_sources=$(patsubst %,$(srcdir)/%, $(libgsttag_@GST_API_VERSION@_la_SOURCES))
49 gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgsttag_@GST_API_VERSION@_la_SOURCES))
50
51 GstTag-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgsttag-@GST_API_VERSION@.la
52         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
53                 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
54                 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
55                 $(INTROSPECTION_SCANNER) -v --namespace GstTag \
56                 --nsversion=@GST_API_VERSION@ \
57                 --identifier-prefix=Gst \
58                 --symbol-prefix=gst \
59                 --warn-all \
60                 --c-include "gst/tag/tag.h" \
61                 -I$(top_srcdir)/gst-libs \
62                 -I$(top_builddir)/gst-libs \
63                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
64                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
65                 --library=libgsttag-@GST_API_VERSION@.la \
66                 --include=Gst-@GST_API_VERSION@ \
67                 --include=GstBase-@GST_API_VERSION@ \
68                 --libtool="$(top_builddir)/libtool" \
69                 --pkg gstreamer-@GST_API_VERSION@ \
70                 --pkg gstreamer-base-@GST_API_VERSION@ \
71                 --pkg-export gstreamer-tag-@GST_API_VERSION@ \
72                 --add-init-section="$(INTROSPECTION_INIT)" \
73                 --output $@ \
74                 $(gir_headers) \
75                 $(gir_sources)
76
77 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
78 # install anything - we need to install inside our prefix.
79 girdir = $(datadir)/gir-1.0
80 gir_DATA = $(BUILT_GIRSOURCES)
81
82 typelibsdir = $(libdir)/girepository-1.0/
83
84 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
85
86 %.typelib: %.gir $(INTROSPECTION_COMPILER)
87         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
88                 $(INTROSPECTION_COMPILER) \
89                 --includedir=$(srcdir) \
90                 --includedir=$(builddir) \
91                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
92                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
93                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
94
95 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
96 endif
97
98 # little program that reads iso_639.xml and outputs tables for us as fallback
99 # for when iso-codes are not available (and so we don't have to read the xml
100 # just to map codes)
101 mklangtables_SOURCES = mklangtables.c
102 mklangtables_CFLAGS = $(GST_CFLAGS)
103 mklangtables_LDADD = $(GST_LIBS)
104
105 mklicensestables_SOURCES = mklicensestables.c
106 mklicensestables_CFLAGS = $(GST_CFLAGS)
107 mklicensestables_LDADD = $(GST_LIBS)
108
109 EXTRA_PROGRAMS = mklangtables mklicensestables
110
111 update-isocodes: mklangtables
112         $(builddir)/mklangtables > $(srcdir)/lang-tables.dat && \
113                 echo "Updated lang-tables.dat"
114
115 update-licenses: mklicensestables
116         $(builddir)/mklicensestables \
117                 --translation-dictionary=$(srcdir)/license-translations.dict \
118                 > $(srcdir)/licenses-tables.dat && \
119                 echo "Updated licenses-tables.dat and license-translations.dict"
120
121 #if USE_NLS
122 # Yes, this is not great, but it's only an implementation detail. The
123 # translations come from an external source here, so we don't want the
124 # strings retranslated, but also we don't want to create 30 1kB .mo files,
125 # so just do something for now, we can change it later if someone really cares.
126 licensetransdir = $(pkgdatadir)/@GST_API_VERSION@
127 licensetrans_DATA = $(srcdir)/license-translations.dict
128 #endif