# Only build shared_glapi if at least one OpenGL API is enabled
with_shared_glapi = get_option('shared-glapi') and with_any_opengl
-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 'linux'].contains(host_machine.system())
+system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux'].contains(host_machine.system())
dri_drivers = get_option('dri-drivers')
if dri_drivers.contains('auto')
pre_args += '-DHAVE_HAIKU_PLATFORM'
endif
-prog_python = import('python3').find_python()
+if meson.version().version_compare('>=0.50')
+ prog_python = import('python').find_installation('python3')
+else
+ prog_python = import('python3').find_python()
+endif
has_mako = run_command(
prog_python, '-c',
'''
endif
# TODO: this is very incomplete
-if ['linux', 'cygwin', 'gnu'].contains(host_machine.system())
+if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system())
pre_args += '-D_GNU_SOURCE'
endif
_drm_radeon_ver = '2.4.71'
_drm_nouveau_ver = '2.4.66'
_drm_intel_ver = '2.4.75'
-_drm_ver = '2.4.75'
+_drm_ver = '2.4.81'
_libdrm_checks = [
['intel', with_dri_i915 or with_gallium_i915],
with_gallium_opencl or _llvm == 'true'
),
static : not _shared_llvm,
+ method : 'config-tool',
)
with_llvm = dep_llvm.found()
endif
# LLVM can be built without rtti, turning off rtti changes the ABI of C++
# programs, so we need to build all C++ code in mesa without rtti as well to
# ensure that linking works.
- #
- # In meson 0.51.0 we can use cmake to find LLVM in addittion to meson's
- # builtin llvm-config based finder. A new generic variable getter method
- # has also been added, so we'll use that if we can, to cover the cmake case.
- if meson.version().version_compare('>=0.51')
- # The CMake finder will return 'ON', the llvm-config will return 'YES'
- _rtti = ['ON', 'YES'].contains(dep_llvm.get_variable(cmake : 'LLVM_ENABLE_RTTI', configtool: 'has-rtti'))
- else
- _rtti = dep_llvm.get_configtool_variable('has-rtti') == 'YES'
- endif
- if not _rtti
+ if dep_llvm.get_configtool_variable('has-rtti') == 'NO'
if with_gallium_nouveau
error('The Nouveau driver requires rtti. You either need to turn off nouveau or use an LLVM built with LLVM_ENABLE_RTTI.')
elif with_gallium_opencl
with_gles2 ? 'yes' : 'no'),
]
-lines += ''
if with_osmesa != 'none'
+ lines += ''
suffix = ''
if with_osmesa == 'gallium'
suffix = '(Gallium)'
lines += 'OSMesa: no'
endif
-lines += ''
if with_dri
+ lines += ''
lines += 'DRI platform: ' + with_dri_platform
if dri_drivers.length() != 0 and dri_drivers != ['']
lines += 'DRI drivers: ' + ' '.join(dri_drivers)
lines += 'DRI driver dir: ' + dri_drivers_path
endif
-lines += ''
if with_glx != 'disabled'
+ lines += ''
if with_glx == 'dri'
lines += 'GLX: DRI-based'
elif with_glx == 'xlib'