Commit de43733c authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

meson: add options to set package name and origin
parent 7854a659
......@@ -60,8 +60,6 @@ cdata.set('LIBDIR', '"@0@/@1@"'.format(prefix, get_option('libdir')))
cdata.set('GST_API_VERSION', '"1.0"')
cdata.set('GETTEXT_PACKAGE', '"gstreamer-1.0"')
cdata.set('GST_LICENSE', '"LGPL"')
cdata.set('GST_PACKAGE_ORIGIN', '"Unknown package origin"')
cdata.set('GST_PACKAGE_NAME', '"GStreamer source release"')
cdata.set('PACKAGE', '"gstreamer"')
cdata.set('PACKAGE_NAME', '"GStreamer"')
cdata.set('PACKAGE_STRING', '"GStreamer @0@"'.format(gst_version))
......@@ -83,6 +81,19 @@ else
# 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 source release')
elif gst_version_nano == 1
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer git')
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer prerelease')
cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('with-package-origin'))
# These are only needed/used by the ABI tests
host_defines = [
[ 'x86', 'HAVE_CPU_I386' ],
......@@ -11,3 +11,7 @@ option('disable_introspection',
type : 'boolean', value : false,
description : 'Whether to disable the usage of libunwind (to generate backtraces)')
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')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment