From 7ec55357a7869607ddc7f566ca8bcdbb39be3577 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Thu, 21 Aug 2025 00:19:33 +0800 Subject: [PATCH] meson: Use build_always_stale instead of build_always which was deprecated in 0.47. This doesn't change behavior, just shuts up warnings. meson.build:105: WARNING: Project targets '>= 1.4.0' but uses feature deprecated since '0.47.0': build_always arg in custom_target. combine build_by_default and build_always_stale instead. Signed-off-by: Yonggang Luo Reviewed-by: Pohsiang (John) Hsu Reviewed-by: Eric Engestrom Part-of: --- src/gallium/frontends/mediafoundation/meson.build | 3 ++- src/mesa/meson.build | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/mediafoundation/meson.build b/src/gallium/frontends/mediafoundation/meson.build index 063d3da6e0d..4deefccb020 100644 --- a/src/gallium/frontends/mediafoundation/meson.build +++ b/src/gallium/frontends/mediafoundation/meson.build @@ -105,7 +105,8 @@ endforeach mediafoundation_wpp_preprocess = custom_target( 'mediafoundation_wpp_preprocess', capture : true, - build_always: true, + build_by_default : true, + build_always_stale : true, input : mediafoundation_files, output : 'mediafoundation_wpp_preprocess.dummy.h', command : ['tracewpp', '-cfgdir:@CURRENT_SOURCE_DIR@/wppconfig/rev1', '-scan:@CURRENT_SOURCE_DIR@/wpptrace.h', '-odir:@OUTDIR@', '@' + fs.relative_to(mediafoundation_wpp_rsp, 'a:\\')] diff --git a/src/mesa/meson.build b/src/mesa/meson.build index 8400d9bfb79..011ba9108af 100644 --- a/src/mesa/meson.build +++ b/src/mesa/meson.build @@ -10,7 +10,8 @@ if _shader_replacement != '' input: [files(_shader_replacement + '/process_shaders.py')], output: 'shader_replacement.h', command: [prog_python, '@INPUT0@', _shader_replacement, '@OUTPUT@'], - build_always: true, + build_by_default : true, + build_always_stale : true, ) endif