meson: install license-translations.dict and set LICENSE_TRANSLATIONS_PATH

The autotools build installs the file and sets the LICENSE_TRANSLATIONS_PATH
macro which licences.c uses as a fallback path. Do the same with meson.

https://bugzilla.gnome.org/show_bug.cgi?id=796274
This commit is contained in:
Christoph Reiter 2018-05-20 13:33:13 +02:00 committed by Tim-Philipp Müller
parent b163f373c3
commit eef72d0d85

View file

@ -36,10 +36,23 @@ gsttag_c = tag_enums[0]
gsttag_h = tag_enums[1]
tag_gen_sources = [gsttag_h]
install_data('license-translations.dict',
install_dir : join_paths(get_option('datadir'), 'gst-plugins-base', api_version))
gst_tag_args = [
'-DLICENSE_TRANSLATIONS_PATH="@0@"'.format(
join_paths(
get_option('prefix'),
get_option('datadir'),
'gst-plugins-base',
api_version,
'license-translations.dict'))
]
tag_deps = [gst_base_dep, libm]
gsttag = library('gsttag-@0@'.format(api_version),
tag_sources, gsttag_h, gsttag_c,
c_args : gst_plugins_base_args,
c_args : gst_plugins_base_args + gst_tag_args,
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,