From d11450f23891a2cb77e85fe5a3f96bf89d61ebe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 10 Aug 2018 00:18:55 +0100 Subject: [PATCH] meson: add option to disable command-line option parsing --- meson.build | 1 + meson_options.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/meson.build b/meson.build index a69747720e..834e15d45e 100644 --- a/meson.build +++ b/meson.build @@ -80,6 +80,7 @@ cdata.set_quoted('GST_PLUGIN_SCANNER_INSTALLED', join_paths(prefix, helpers_inst cdata.set_quoted('GST_PTP_HELPER_INSTALLED', join_paths(prefix, helpers_install_dir, 'gst-ptp-helper')) cdata.set_quoted('GST_PLUGIN_SCANNER_SUBDIR', libexecdir, description: 'libexecdir path component, used to find plugin-scanner on relocatable builds on windows') +cdata.set('GST_DISABLE_OPTION_PARSING', not get_option('option-parsing')) if host_system == 'darwin' cdata.set_quoted('GST_EXTRA_MODULE_SUFFIX', '.dylib') diff --git a/meson_options.txt b/meson_options.txt index bde56a9327..cc34a208e8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -10,6 +10,8 @@ option('ptp-helper-setuid-group', type : 'string', option('ptp-helper-permissions', type : 'combo', choices : ['none', 'setuid-root', 'capabilities', 'auto'], value : 'auto') option('extra-checks', type : 'boolean', value : true, description : 'Enable extra runtime checks') +option('option-parsing', type : 'boolean', value : true, + description: 'Enable command line option parsing') option('poisoning', type : 'boolean', value : false, description : 'Enable poisoning of deallocated objects') # Feature options