summaryrefslogtreecommitdiffstats
path: root/pc-bios
diff options
context:
space:
mode:
authorPaolo Bonzini2021-09-07 19:23:49 +0200
committerPaolo Bonzini2021-09-13 13:56:26 +0200
commitd051d0e14c7a0b198d41694a4e20f0bc5ae76048 (patch)
tree0dd9a8fc8d7d58dd60f25e5cc4246a368a6fb43c /pc-bios
parentmeson.build: Do not look for VNC-related libraries if have_system is not set (diff)
downloadqemu-d051d0e14c7a0b198d41694a4e20f0bc5ae76048.tar.gz
qemu-d051d0e14c7a0b198d41694a4e20f0bc5ae76048.tar.xz
qemu-d051d0e14c7a0b198d41694a4e20f0bc5ae76048.zip
meson: look up cp and dtrace with find_program()
Avoid that meson prints a "Program xyz found" test once per custom_target. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'pc-bios')
-rw-r--r--pc-bios/keymaps/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/pc-bios/keymaps/meson.build b/pc-bios/keymaps/meson.build
index 05eda6c0d2..44247a12b5 100644
--- a/pc-bios/keymaps/meson.build
+++ b/pc-bios/keymaps/meson.build
@@ -38,6 +38,7 @@ if meson.is_cross_build() or 'CONFIG_XKBCOMMON' not in config_host
else
native_qemu_keymap = qemu_keymap
endif
+cp = find_program('cp')
t = []
foreach km, args: keymaps
@@ -55,7 +56,7 @@ foreach km, args: keymaps
build_by_default: true,
input: km,
output: km,
- command: ['cp', '@INPUT@', '@OUTPUT@'],
+ command: [cp, '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: qemu_datadir / 'keymaps')
endif