From e66d3beb0c6a4204e65d608d7e6aae8d9b95cd13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 9 Jun 2017 21:27:09 +0100 Subject: [PATCH] meson: config.h.meson is no longer needed --- config.h.meson | 16 ---------------- meson.build | 20 +++++++++++--------- 2 files changed, 11 insertions(+), 25 deletions(-) delete mode 100644 config.h.meson diff --git a/config.h.meson b/config.h.meson deleted file mode 100644 index c7709c8..0000000 --- a/config.h.meson +++ /dev/null @@ -1,16 +0,0 @@ -#mesondefine ENABLE_NLS -#mesondefine GETTEXT_PACKAGE -#mesondefine GST_API_VERSION -#mesondefine GST_LICENSE -#mesondefine GST_PACKAGE_NAME -#mesondefine GST_PACKAGE_ORIGIN -#mesondefine GST_PACKAGE_RELEASE_DATETIME -#mesondefine LOCALEDIR -#mesondefine PACKAGE -#mesondefine PACKAGE_BUGREPORT -#mesondefine PACKAGE_NAME -#mesondefine PACKAGE_STRING -#mesondefine PACKAGE_TARNAME -#mesondefine PACKAGE_URL -#mesondefine PACKAGE_VERSION -#mesondefine VERSION diff --git a/meson.build b/meson.build index be6c837..5a7bd56 100644 --- a/meson.build +++ b/meson.build @@ -26,12 +26,16 @@ libversion = '@0@.@1@.0'.format(soversion, gst_version_minor.to_int() * 100 + gs plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir')) cdata = configuration_data() -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_API_VERSION', '"@0@"'.format(api_version)) -cdata.set('GST_LICENSE', '"LGPL"') +cdata.set_quoted('GETTEXT_PACKAGE', 'gst-rtsp-server-1.0') +cdata.set_quoted('PACKAGE', 'gst-rtsp-server') +cdata.set_quoted('VERSION', gst_version) +cdata.set_quoted('PACKAGE_VERSION', gst_version) +cdata.set_quoted('GST_API_VERSION', api_version) +cdata.set_quoted('GST_LICENSE', 'LGPL') + +# FIXME: ENABLE_NLS (currently also missing from autotools build) +# cdata.set('ENABLE_NLS', true) +# cdata.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir'))) # GStreamer package name and origin url gst_package_name = get_option('with-package-name') @@ -46,9 +50,7 @@ if gst_package_name == '' endif cdata.set_quoted('GST_PACKAGE_ORIGIN', get_option('with-package-origin')) -configure_file(input : 'config.h.meson', - output : 'config.h', - configuration : cdata) +configure_file(output : 'config.h', configuration : cdata) rtspserver_args = ['-DHAVE_CONFIG_H'] -- 2.7.4