# FIXME: meson compiler class instead?
glslc_build_options = []
optimization = get_option('optimization')
-buildtype = get_option('buildtype')
-if get_option('debug') or optimization == 'g' or ['debug', 'debugoptimized'].contains(buildtype)
+if get_option('debug')
glslc_build_options += ['-g']
endif
if get_option('werror')
glslc_build_options += ['-Werror']
endif
-if buildtype == 'minsize' or optimization == 's'
+if optimization == 's'
glslc_build_options += ['-Os']
endif
-if ['release', 'debugoptimized'].contains(buildtype) or ['1', '2', '3'].contains(optimization)
+if optimization in ['1', '2', '3']
glslc_build_options += ['-O']
endif
project('gst-plugins-bad', 'c', 'cpp',
version : '1.17.0.1',
- meson_version : '>= 0.48',
+ meson_version : '>= 0.49',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
endif
# for enabling debug layer
-if get_option('buildtype').startswith('debug')
+if get_option('debug')
d3d11_debug_libs = [
['d3d11sdklayers.h', 'ID3D11Debug', 'ID3D11InfoQueue', 'have_d3d11sdk_h'],
['dxgidebug.h', 'IDXGIDebug', 'IDXGIInfoQueue', 'have_dxgidebug_h'],