mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
meson: add options to set package name and origin
https://bugzilla.gnome.org/show_bug.cgi?id=782172
This commit is contained in:
parent
2c9b513695
commit
918ad83e46
2 changed files with 17 additions and 2 deletions
15
meson.build
15
meson.build
|
@ -251,11 +251,22 @@ cdata.set('PACKAGE_BUGREPORT', '"http://bugzilla.gnome.org/enter_bug.cgi?product
|
|||
cdata.set('PACKAGE_NAME', '"GStreamer Bad Plug-ins"')
|
||||
cdata.set('GETTEXT_PACKAGE', '"gst-plugins-bad-1.0"')
|
||||
cdata.set('GST_API_VERSION', '"@0@"'.format(api_version))
|
||||
cdata.set('GST_PACKAGE_NAME', '"GStreamer Bad Plug-ins"')
|
||||
cdata.set('GST_PACKAGE_ORIGIN', '"Unknown package origin"')
|
||||
cdata.set('GST_LICENSE', '"LGPL"')
|
||||
cdata.set('LIBDIR', '"@0@"'.format(get_option('libdir')))
|
||||
|
||||
# GStreamer package name and origin url
|
||||
gst_package_name = get_option('with-package-name')
|
||||
if gst_package_name == ''
|
||||
if gst_version_nano == 0
|
||||
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer Bad Plug-ins source release')
|
||||
elif gst_version_nano == 1
|
||||
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer Bad Plug-ins git')
|
||||
else
|
||||
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer Bad Plug-ins prerelease')
|
||||
endif
|
||||
endif
|
||||
cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('with-package-origin'))
|
||||
|
||||
# FIXME: This should be exposed as a configuration option
|
||||
host_system = host_machine.system()
|
||||
if host_system == 'linux'
|
||||
|
|
|
@ -8,3 +8,7 @@ option('with_gles2_module_name', type : 'string', value : '', description : 'The
|
|||
option('disable_introspection',
|
||||
type : 'boolean', value : false,
|
||||
description : 'Whether to disable the introspection generation')
|
||||
option('with-package-name', type : 'string',
|
||||
description : 'package name to use in plugins')
|
||||
option('with-package-origin', type : 'string', value : 'Unknown package origin',
|
||||
description : 'package origin URL to use in plugins')
|
||||
|
|
Loading…
Reference in a new issue