mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +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
82f0bc240f
commit
a6e55d331b
2 changed files with 19 additions and 4 deletions
15
meson.build
15
meson.build
|
@ -101,10 +101,21 @@ cdata.set('SIZEOF_VOIDP', cc.sizeof('void*'))
|
|||
cdata.set('VERSION', '"@0@"'.format(gst_version))
|
||||
cdata.set('PACKAGE', '"gst-plugins-ugly"')
|
||||
cdata.set('GETTEXT_PACKAGE', '"gst-plugins-ugly-1.0"')
|
||||
cdata.set('GST_PACKAGE_NAME', '"GStreamer Ugly Plug-ins"')
|
||||
cdata.set('GST_PACKAGE_ORIGIN', '"Unknown package origin"')
|
||||
cdata.set('GST_LICENSE', '"LGPL"')
|
||||
|
||||
# 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 Ugly Plug-ins source release')
|
||||
elif gst_version_nano == 1
|
||||
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer Ugly Plug-ins git')
|
||||
else
|
||||
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer Ugly Plug-ins prerelease')
|
||||
endif
|
||||
endif
|
||||
cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('with-package-origin'))
|
||||
|
||||
# Mandatory GST deps
|
||||
gst_dep = dependency('gstreamer-1.0', version : gst_req,
|
||||
fallback : ['gstreamer', 'gst_dep'])
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
option('x264_libraries', type : 'string', value : '', description : 'Colon separated list of additional x264 library paths, e.g. for 10-bit version')
|
||||
|
||||
option('x264_libraries', type : 'string', value : '',
|
||||
description : 'Colon separated list of additional x264 library paths, e.g. for 10-bit version')
|
||||
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