summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2018-05-25 01:35:58 +1000
committerMatthew Waters <matthew@centricular.com>2018-05-25 01:35:58 +1000
commitebcadd998484a7ff69d54d0b878aae1c66715aab (patch)
tree733a80261a5a3a4ced3af626defa361db0780fd4
parentf706f3b73b5ce06bfdeff22bc20ed6575dfd4813 (diff)
downloadgst-omx-ebcadd998484a7ff69d54d0b878aae1c66715aab.tar.gz
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...
-rw-r--r--meson.build10
-rw-r--r--meson_options.txt11
2 files changed, 13 insertions, 8 deletions
diff --git a/meson.build b/meson.build
index 8d84a1a..8ddf58f 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 a5a0c40..609e71b 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')