diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-10 11:01:26 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-01-12 14:09:06 +0100 |
commit | eed56e9a89f7003e692982a11002bbc432cc2d9f (patch) | |
tree | acc24d25953e090c49c64bc15e18ea96d07da4af /meson.build | |
parent | b962a1d507bdb7e157f5e0ef3376f3e8e40edfe7 (diff) |
configure, meson: move config-poison.h to meson
This ensures that the file is regenerated properly whenever config-target.h
or config-devices.h files change.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meson.build b/meson.build index be592aa942..d36a18cb28 100644 --- a/meson.build +++ b/meson.build @@ -2028,6 +2028,18 @@ config_all += { 'CONFIG_ALL': true, } +target_configs_h = [] +foreach target: target_dirs + target_configs_h += config_target_h[target] + target_configs_h += config_devices_h.get(target, []) +endforeach +genh += custom_target('config-poison.h', + input: [target_configs_h], + output: 'config-poison.h', + capture: true, + command: [find_program('scripts/make-config-poison.sh'), + target_configs_h]) + ############## # Submodules # ############## |