meson: fix missing preprocessor symbols
While most libraries do not need a CONFIG_* symbol because the
"when:" clauses are enough, some do. Add them back or stop
using them if possible.
In the case of libpmem, the statement to add the CONFIG_* symbol
was still in configure, but could not be triggered because it
checked for "no" instead of "disabled" (and it would be wrong anyway
since the test for the library has not been done yet).
Reported-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Fixes: 587d59d6cc ("configure, meson: convert virgl detection to meson", 2021-07-06)
Fixes: 83ef16821a ("configure, meson: convert libdaxctl detection to meson", 2021-07-06)
Fixes: e36e8c70f6 ("configure, meson: convert libpmem detection to meson", 2021-07-06)
Fixes: 53c22b68e3 ("configure, meson: convert liburing detection to meson", 2021-07-06)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-07-08 13:50:06 +02:00
|
|
|
if 'CONFIG_TOOLS' in config_host and virgl.found() \
|
2020-08-26 08:22:58 +02:00
|
|
|
and 'CONFIG_GBM' in config_host and 'CONFIG_LINUX' in config_host \
|
|
|
|
and pixman.found()
|
2019-07-12 20:23:46 +02:00
|
|
|
executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'),
|
2021-03-12 11:00:43 +01:00
|
|
|
dependencies: [qemuutil, pixman, gbm, virgl, vhost_user, opengl],
|
2019-07-12 20:23:46 +02:00
|
|
|
install: true,
|
|
|
|
install_dir: get_option('libexecdir'))
|
|
|
|
|
|
|
|
configure_file(input: '50-qemu-gpu.json.in',
|
|
|
|
output: '50-qemu-gpu.json',
|
2020-11-03 12:23:33 +01:00
|
|
|
configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') },
|
2020-08-26 13:04:16 +02:00
|
|
|
install_dir: qemu_datadir / 'vhost-user')
|
2019-07-12 20:23:46 +02:00
|
|
|
endif
|