]> git.proxmox.com Git - mirror_qemu.git/commitdiff
meson: Declare have_virtfs_proxy_helper in main meson.build
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 20 Jan 2021 15:15:39 +0000 (16:15 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 23 Jan 2021 20:55:04 +0000 (15:55 -0500)
have_virtfs_proxy_helper is used from docs/meson.build, and can be
not declared when including it before fsdev/meson.build. This fixes:

  ../docs/meson.build:54:2: ERROR: Unknown variable "have_virtfs_proxy_helper".

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210120151539.1166252-1-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
fsdev/meson.build
meson.build

index 65455a179e5e01968d1fb2fa5f2c58063d8c046f..adf57cc43ed1aef15563a241083b183c77790e50 100644 (file)
@@ -8,7 +8,6 @@ fsdev_ss.add(when: ['CONFIG_FSDEV_9P'], if_true: files(
 ), if_false: files('qemu-fsdev-dummy.c'))
 softmmu_ss.add_all(when: 'CONFIG_LINUX', if_true: fsdev_ss)
 
-have_virtfs_proxy_helper = have_tools and libattr.found() and libcap_ng.found() and have_virtfs
 if have_virtfs_proxy_helper
   executable('virtfs-proxy-helper',
              files('virtfs-proxy-helper.c', '9p-marshal.c', '9p-iov-marshal.c'),
index e813814fb02778988c515f74974901541ae228ed..4f0e459243b18de579a7f1faef22401e2a6a6c60 100644 (file)
@@ -1034,6 +1034,8 @@ have_virtfs = (targetos == 'linux' and
     libattr.found() and
     libcap_ng.found())
 
+have_virtfs_proxy_helper = have_virtfs and have_tools
+
 if get_option('virtfs').enabled()
   if not have_virtfs
     if targetos != 'linux'