mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +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
b344248630
commit
0ce18a878d
2 changed files with 17 additions and 2 deletions
15
meson.build
15
meson.build
|
@ -30,11 +30,22 @@ cdata.set('GETTEXT_PACKAGE', '"gst-rtsp-server-1.0"')
|
|||
cdata.set('PACKAGE', '"gst-rtsp-server"')
|
||||
cdata.set('VERSION', '"@0@"'.format(gst_version))
|
||||
cdata.set('PACKAGE_VERSION', '"@0@"'.format(gst_version))
|
||||
cdata.set('GST_PACKAGE_NAME', '"GStreamer RTSP Server Library"')
|
||||
cdata.set('GST_PACKAGE_ORIGIN', '"Unknown package origin"')
|
||||
#cdata.set('GST_API_VERSION', '"@0@"'.format(api_version))
|
||||
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 RTSP Server Library source release')
|
||||
elif gst_version_nano == 1
|
||||
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer RTSP Server Library git')
|
||||
else
|
||||
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer RTSP Server Library prerelease')
|
||||
endif
|
||||
endif
|
||||
cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('with-package-origin'))
|
||||
|
||||
configure_file(input : 'config.h.meson',
|
||||
output : 'config.h',
|
||||
configuration : cdata)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
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