diff mbox series

[v2,04/12] meson: Do not build optional libraries by default

Message ID 20210122204441.2145197-5-philmd@redhat.com (mailing list archive)
State New, archived
Headers show
Series buildsys: Do not build various objects if not necessary | expand

Commit Message

Philippe Mathieu-Daudé Jan. 22, 2021, 8:44 p.m. UTC
The following libraries will be selected if a feature requires it:

- capstone
- fdt
- SLiRP

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
---
 meson.build | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meson.build b/meson.build
index a1e1eb318a5..61cbb89cd44 100644
--- a/meson.build
+++ b/meson.build
@@ -1446,6 +1446,7 @@ 
   ]
 
   libcapstone = static_library('capstone',
+                               build_by_default: false,
                                sources: capstone_files,
                                c_args: capstone_cargs,
                                include_directories: 'capstone/include')
@@ -1523,6 +1524,7 @@ 
 
     slirp_inc = include_directories('slirp', 'slirp/src')
     libslirp = static_library('slirp',
+                              build_by_default: false,
                               sources: slirp_files,
                               c_args: slirp_cargs,
                               include_directories: slirp_inc)
@@ -1568,6 +1570,7 @@ 
 
     fdt_inc = include_directories('dtc/libfdt')
     libfdt = static_library('fdt',
+                            build_by_default: false,
                             sources: fdt_files,
                             include_directories: fdt_inc)
     fdt = declare_dependency(link_with: libfdt,