Files
mesa/src/intel/meson.build
T
Caio Oliveira fbacf3761f intel: Add meson option -Dintel-elk
Defaults to true.  When set to false Iris and various tools can be
built without ELK support.  In both cases this means supporting
only Gfx9+.  This option must be true to build Crocus or Hasvk.

This allows skipping re-building ELK when developing for newer platforms
with tools/tests enabled.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11575
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33054>
2025-01-30 00:45:59 +00:00

48 lines
1.1 KiB
Meson

# Copyright © 2017 Intel Corporation
# SPDX-License-Identifier: MIT
inc_intel = include_directories('.')
with_intel_elk = get_option('intel-elk')
intel_common_args = []
if with_intel_elk
intel_common_args += ['-DINTEL_USE_ELK']
else
if with_gallium_crocus or with_intel_hasvk
error('Cannot build Crocus or Hasvk with meson option -Dintel-elk=false set.')
endif
endif
subdir('genxml')
subdir('dev')
if with_intel_hasvk or with_intel_vk or with_gallium_crocus or with_gallium_iris
subdir('blorp')
endif
subdir('isl')
subdir('common')
subdir('compiler')
subdir('decoder')
if with_intel_vk or with_gallium_iris
subdir('shaders')
endif
if with_intel_hasvk or with_intel_vk or with_gallium_crocus or with_gallium_iris or with_intel_tools
subdir('perf')
endif
if with_intel_hasvk or with_intel_vk or with_gallium_iris
subdir('ds')
endif
if with_intel_tools
subdir('tools')
subdir('executor')
endif
if get_option('vulkan-layers').contains('intel-nullhw')
subdir('nullhw-layer')
endif
if with_intel_vk
subdir('vulkan')
endif
if with_intel_hasvk
subdir('vulkan_hasvk')
endif