From ebcadd998484a7ff69d54d0b878aae1c66715aab Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 25 May 2018 01:35:58 +1000 Subject: [PATCH] meson: Update option names to omit 'with_omx' prefixes Companion commit to: https://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=4fb02fc85b70be631f5331b2547e5dc61ef7a43a https://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=1e1a5d658e4a031535c44823fd398d3052ca2000 etc... --- meson.build | 10 +++++----- meson_options.txt | 11 ++++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build index 8d84a1a34d..8ddf58fed6 100644 --- a/meson.build +++ b/meson.build @@ -163,7 +163,7 @@ gmodule_dep = dependency('gmodule-2.0', version : glib_req) gst_omx_args = ['-DHAVE_CONFIG_H'] configinc = include_directories('.') -omx_header_path = get_option('with_omx_header_path') +omx_header_path = get_option('header_path') if omx_header_path != '' omx_inc = [] gst_omx_args += ['-I' + omx_header_path] @@ -172,7 +172,7 @@ else endif default_omx_struct_packing = 0 -omx_target = get_option ('with_omx_target') +omx_target = get_option ('target') if omx_target == 'generic' cdata.set('USE_OMX_TARGET_GENERIC', 1) elif omx_target == 'rpi' @@ -205,7 +205,7 @@ elif omx_target == 'zynqultrascaleplus' args : gst_omx_args, include_directories : [omx_inc]) if not have_allegro_header - error ('Need Allegro OMX headers to build for Zynq UltraScale+. Use with_omx_header_path option to specify the path of those headers.') + error ('Need Allegro OMX headers to build for Zynq UltraScale+. Use -Dheader_path option to specify the path of those headers.') endif elif omx_target == 'tizonia' cdata.set('USE_OMX_TARGET_TIZONIA', 1) @@ -214,7 +214,7 @@ elif omx_target == 'tizonia' tizil_includedir = tizil_dep.get_pkgconfig_variable('includedir') gst_omx_args += ['-I' + tizil_includedir + '/tizonia'] else - error ('Unsupported omx target specified. Use the -Dwith_omx_target option') + error ('Unsupported omx target specified. Use the -Dtarget option') endif extra_video_headers = '' @@ -311,7 +311,7 @@ if x11_dep.found() cdata.set ('HAVE_X11', 1) endif -omx_struct_packing = get_option ('with_omx_struct_packing').to_int() +omx_struct_packing = get_option ('struct_packing').to_int() if omx_struct_packing == 0 omx_struct_packing = default_omx_struct_packing endif diff --git a/meson_options.txt b/meson_options.txt index a5a0c40cc3..609e71bfdf 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,3 +1,8 @@ -option('with_omx_header_path', type : 'string', value : '', description : 'An extra include directory to find the OpenMax headers') -option('with_omx_target', type : 'combo', choices : ['none', 'generic', 'rpi', 'bellagio', 'tizonia', 'zynqultrascaleplus'], value : 'none', description : 'The OMX platform to target') -option('with_omx_struct_packing', type : 'combo', choices : ['0', '1', '2', '4', '8'], value : '0', description : 'Force OpenMAX struct packing') +option('header_path', type : 'string', value : '', + description : 'An extra include directory to find the OpenMax headers') +option('target', type : 'combo', + choices : ['none', 'generic', 'rpi', 'bellagio', 'tizonia', 'zynqultrascaleplus'], value : 'none', + description : 'The OMX platform to target') +option('struct_packing', type : 'combo', + choices : ['0', '1', '2', '4', '8'], value : '0', + description : 'Force OpenMAX struct packing')