summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-06-26 09:55:49 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-06-26 09:55:49 +0100
commit9df5f8ea8fd136faa2856091fb83ea108a622a27 (patch)
tree7a8c3d4c26f94128d8d359680797adef564f6dbc
parentff7b8fe0326c94a5af54d4d77ca968b12919361e (diff)
meson: fix with-package-name option
https://bugzilla.gnome.org/show_bug.cgi?id=784082
-rw-r--r--meson.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 5a7bd56..170fc03 100644
--- a/meson.build
+++ b/meson.build
@@ -41,13 +41,14 @@ cdata.set_quoted('GST_LICENSE', 'LGPL')
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')
+ 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')
+ gst_package_name = 'GStreamer RTSP Server Library git'
else
- cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer RTSP Server Library prerelease')
+ gst_package_name = 'GStreamer RTSP Server Library prerelease'
endif
endif
+cdata.set_quoted('GST_PACKAGE_NAME', gst_package_name)
cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('with-package-origin'))
configure_file(output : 'config.h', configuration : cdata)