[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 1/2] meson: Make qemu-system binary installation optional
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v4 1/2] meson: Make qemu-system binary installation optional |
Date: |
Tue, 5 Mar 2024 23:09:37 +0100 |
In order to allow qemu-system binaries to not be
installed by default, add the 'install' key to target
dictionaries in the execs[] array. Keep the current
default: all binaries are installed.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
meson.build | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/meson.build b/meson.build
index c59ca496f2..51b995f4c7 100644
--- a/meson.build
+++ b/meson.build
@@ -3913,14 +3913,16 @@ foreach target : target_dirs
'name': 'qemu-system-' + target_name,
'win_subsystem': 'console',
'sources': files('system/main.c'),
- 'dependencies': []
+ 'dependencies': [],
+ 'install': true
}]
if host_os == 'windows' and (sdl.found() or gtk.found())
execs += [{
'name': 'qemu-system-' + target_name + 'w',
'win_subsystem': 'windows',
'sources': files('system/main.c'),
- 'dependencies': []
+ 'dependencies': [],
+ 'install': true
}]
endif
if get_option('fuzzing')
@@ -3930,6 +3932,7 @@ foreach target : target_dirs
'win_subsystem': 'console',
'sources': specific_fuzz.sources(),
'dependencies': specific_fuzz.dependencies(),
+ 'install': true
}]
endif
else
@@ -3937,7 +3940,8 @@ foreach target : target_dirs
'name': 'qemu-' + target_name,
'win_subsystem': 'console',
'sources': [],
- 'dependencies': []
+ 'dependencies': [],
+ 'install': true
}]
endif
foreach exe: execs
@@ -3947,7 +3951,7 @@ foreach target : target_dirs
endif
emulator = executable(exe_name, exe['sources'],
- install: true,
+ install: exe['install'],
c_args: c_args,
dependencies: arch_deps + deps + exe['dependencies'],
objects: lib.extract_all_objects(recursive: true),
--
2.41.0