mesa: inline main/meson.build

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34002>
This commit is contained in:
Marek Olšák 2025-03-10 23:21:09 -04:00 committed by Marge Bot
parent 574c1a70d6
commit 25d1be00a2
2 changed files with 10 additions and 14 deletions

View file

@ -1,13 +0,0 @@
# Copyright © 2017 Intel Corporation
# SPDX-License-Identifier: MIT
if _shader_replacement != ''
# shader replacement
shader_replacement_h = custom_target(
'shader_replacement.h',
input: [files(_shader_replacement + '/process_shaders.py')],
output: 'shader_replacement.h',
command: [prog_python, '@INPUT0@', _shader_replacement, '@OUTPUT@'],
build_always: true,
)
endif

View file

@ -2,7 +2,16 @@
# SPDX-License-Identifier: MIT
subdir('program')
subdir('main')
if _shader_replacement != ''
shader_replacement_h = custom_target(
'shader_replacement.h',
input: [files(_shader_replacement + '/process_shaders.py')],
output: 'shader_replacement.h',
command: [prog_python, '@INPUT0@', _shader_replacement, '@OUTPUT@'],
build_always: true,
)
endif
# files shared between classic mesa and gallium mesa
files_libmesa = files(