Commit 25f8f645 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

tag: add mklicensestables utility

Add (uninstalled) tool to create licenses-table.dat from liblicense's
RDF files. It's not very pretty and makes loats of assumptions about
the input, but should work. If things change, we can fix it then.

https://bugzilla.gnome.org/show_bug.cgi?id=646868
parent c4bab487
......@@ -43,8 +43,9 @@ Makefile
*.gir
*.typelib
gst-libs/gst/pbutils/gstpluginsbaseversion.h
gst-libs/gst/tag/mklangtables
/gst-libs/gst/pbutils/gstpluginsbaseversion.h
/gst-libs/gst/tag/mklangtables
/gst-libs/gst/tag/mklicensestables
tmp-orc.c
gst*orc.h
......
......@@ -84,7 +84,18 @@ else
ISO_CODE_PROGS =
endif
noinst_PROGRAMS = $(ISO_CODE_PROGS)
LICENSE_PROGS = mklicensestables
mklicensestables_SOURCES = mklicensestables.c
mklicensestables_CFLAGS = $(GST_CFLAGS)
mklicensestables_LDADD = $(GST_LIBS)
noinst_PROGRAMS = $(ISO_CODE_PROGS) $(LICENSE_PROGS)
update-licenses: mklicensestables
$(builddir)/mklicensestables \
--translation-dictionary=$(builddir)/license-translations.dict \
> $(builddir)/licenses-tables.dat && \
echo "Updated licenses-tables.dat and license-translations.dict"
#if USE_NLS
# Yes, this is not great, but it's only an implementation detail. The
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment