summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-01-22 21:44:37 +0100
committerPaolo Bonzini2021-02-08 14:43:55 +0100
commit957b31f6c537c74efeb221953b803ee0dd1c379a (patch)
treea74db8951d160b33d435e7a97f8e844f1ed33e3b /meson.build
parentmeson: Restrict some trace event directories to user/system emulation (diff)
downloadqemu-957b31f6c537c74efeb221953b803ee0dd1c379a.tar.gz
qemu-957b31f6c537c74efeb221953b803ee0dd1c379a.tar.xz
qemu-957b31f6c537c74efeb221953b803ee0dd1c379a.zip
meson: Restrict emulation code
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20210122204441.2145197-9-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build12
1 files changed, 7 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index d6eb880b89..e3ef660670 100644
--- a/meson.build
+++ b/meson.build
@@ -1867,16 +1867,18 @@ libqemuutil = static_library('qemuutil',
qemuutil = declare_dependency(link_with: libqemuutil,
sources: genh + version_res)
-decodetree = generator(find_program('scripts/decodetree.py'),
- output: 'decode-@BASENAME@.c.inc',
- arguments: ['@INPUT@', '@EXTRA_ARGS@', '-o', '@OUTPUT@'])
+if have_system or have_user
+ decodetree = generator(find_program('scripts/decodetree.py'),
+ output: 'decode-@BASENAME@.c.inc',
+ arguments: ['@INPUT@', '@EXTRA_ARGS@', '-o', '@OUTPUT@'])
+ subdir('libdecnumber')
+ subdir('target')
+endif
subdir('audio')
subdir('io')
subdir('chardev')
subdir('fsdev')
-subdir('libdecnumber')
-subdir('target')
subdir('dump')
if have_block