mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-15 15:32:51 +00:00
meson: Resolve the entitlement.sh script once for good
Commit 235b523dba
("meson: Use find_program() to resolve the
entitlement.sh script") didn't correctly fixed the issue, as
the script is still resolved for each target. Move the check
earlier, before processing each target.
Reviewed-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Tested-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
98f5ebfd21
commit
30cfa50da5
|
@ -3073,6 +3073,10 @@ common_all = static_library('common',
|
||||||
|
|
||||||
feature_to_c = find_program('scripts/feature_to_c.sh')
|
feature_to_c = find_program('scripts/feature_to_c.sh')
|
||||||
|
|
||||||
|
if targetos == 'darwin'
|
||||||
|
entitlement = find_program('scripts/entitlement.sh')
|
||||||
|
endif
|
||||||
|
|
||||||
emulators = {}
|
emulators = {}
|
||||||
foreach target : target_dirs
|
foreach target : target_dirs
|
||||||
config_target = config_target_mak[target]
|
config_target = config_target_mak[target]
|
||||||
|
@ -3230,7 +3234,6 @@ foreach target : target_dirs
|
||||||
install_input += meson.current_source_dir() / entitlements
|
install_input += meson.current_source_dir() / entitlements
|
||||||
endif
|
endif
|
||||||
|
|
||||||
entitlement = find_program('scripts/entitlement.sh')
|
|
||||||
emulators += {exe['name'] : custom_target(exe['name'],
|
emulators += {exe['name'] : custom_target(exe['name'],
|
||||||
input: build_input,
|
input: build_input,
|
||||||
output: exe['name'],
|
output: exe['name'],
|
||||||
|
|
Loading…
Reference in a new issue