From: Christoph Reiter Date: Sun, 20 May 2018 11:33:13 +0000 (+0200) Subject: meson: install license-translations.dict and set LICENSE_TRANSLATIONS_PATH X-Git-Tag: 1.19.3~511^2~1660 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eef72d0d85408a03fd894bcf81c63348001cbb5a;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst-libs/gst/tag/meson.build b/gst-libs/gst/tag/meson.build index fe29466..5691a6b 100644 --- a/gst-libs/gst/tag/meson.build +++ b/gst-libs/gst/tag/meson.build @@ -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,