mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 11:40:10 +01:00
meson: recognize "sunos" as the system name for Solaris
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
(cherry picked from commit d8a9420f6f)
Minor conflicts resolved by Dylan Baker
This commit is contained in:
parent
55a04df479
commit
9b49a4ea12
1 changed files with 3 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
|
||||||
# Only build shared_glapi if at least one OpenGL API is enabled
|
# Only build shared_glapi if at least one OpenGL API is enabled
|
||||||
with_shared_glapi = get_option('shared-glapi') and with_any_opengl
|
with_shared_glapi = get_option('shared-glapi') and with_any_opengl
|
||||||
|
|
||||||
system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux'].contains(host_machine.system())
|
system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos'].contains(host_machine.system())
|
||||||
|
|
||||||
dri_drivers = get_option('dri-drivers')
|
dri_drivers = get_option('dri-drivers')
|
||||||
if dri_drivers.contains('auto')
|
if dri_drivers.contains('auto')
|
||||||
|
|
@ -858,6 +858,8 @@ endif
|
||||||
# TODO: this is very incomplete
|
# TODO: this is very incomplete
|
||||||
if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system())
|
if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system())
|
||||||
pre_args += '-D_GNU_SOURCE'
|
pre_args += '-D_GNU_SOURCE'
|
||||||
|
elif host_machine.system() == 'sunos'
|
||||||
|
pre_args += '-D__EXTENSIONS__'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Check for generic C arguments
|
# Check for generic C arguments
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue