meson: Update option names to omit 'with_omx' prefixes
authorMatthew Waters <matthew@centricular.com>
Thu, 24 May 2018 15:35:58 +0000 (01:35 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 24 May 2018 15:35:58 +0000 (01:35 +1000)
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
meson_options.txt

index 8d84a1a..8ddf58f 100644 (file)
@@ -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
index a5a0c40..609e71b 100644 (file)
@@ -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')