mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
meson: project-wide fs = import('fs')
reduces a bit of boilerplate. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33242>
This commit is contained in:
parent
61626296f2
commit
164a161279
7 changed files with 1 additions and 10 deletions
|
|
@ -29,6 +29,7 @@ endif
|
|||
|
||||
cc = meson.get_compiler('c')
|
||||
cpp = meson.get_compiler('cpp')
|
||||
fs = import('fs')
|
||||
|
||||
sizeof_pointer = cc.sizeof('void*').to_string()
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ foreach input_arg : libagx_shader_files
|
|||
endforeach
|
||||
|
||||
# We need to set -fmacro-prefix-map properly for reproducability.
|
||||
fs = import('fs')
|
||||
relative_dir = fs.relative_to(meson.global_source_root(), meson.global_build_root()) + '/'
|
||||
|
||||
libagx_spv = custom_target(
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ if host_machine.system() == 'darwin'
|
|||
|
||||
# MoltenVK options
|
||||
if with_moltenvk_dir != ''
|
||||
fs = import('fs')
|
||||
# Vulkan SDK 1.3.250 to 1.3.268 support
|
||||
moltenvk_includes = join_paths(with_moltenvk_dir, 'MoltenVK', 'include')
|
||||
if not fs.is_dir(moltenvk_includes)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
# Copyright ©
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
fs = import('fs')
|
||||
|
||||
libmesa_rust_util_files = files(
|
||||
'util/lib.rs',
|
||||
'util/assert.rs',
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
# Copyright © 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
fs = import('fs')
|
||||
|
||||
files_libintel_common = files(
|
||||
'i915/intel_engine.c',
|
||||
'i915/intel_engine.h',
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
# Copyright © 2021 Intel Corporation
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
fs = import('fs')
|
||||
|
||||
grl_lib_files = [
|
||||
'gpu/libs/libraries.grl',
|
||||
]
|
||||
|
|
|
|||
|
|
@ -88,7 +88,6 @@ if with_nouveau_vk
|
|||
'--out-rs-mthd', '@OUTPUT0@'],
|
||||
)
|
||||
|
||||
fs = import('fs')
|
||||
if cl.endswith('c0') and fs.is_file('nvidia/classes/'+cl+'qmd.h')
|
||||
cl_rs_generated += custom_target(
|
||||
'nvh_classes_' + cl + '_qmd.rs',
|
||||
|
|
@ -119,7 +118,6 @@ if with_nouveau_vk
|
|||
endif
|
||||
endforeach
|
||||
|
||||
fs = import('fs')
|
||||
foreach family_gen : hwref_gens
|
||||
family = fs.parent(family_gen)
|
||||
gen = fs.name(family_gen)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue