meson: Only build tools when requested

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2022-05-27 19:56:05 -04:00
parent b3d189920a
commit a79b0663b4
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -175,6 +175,7 @@ tools_lxc_unshare_sources = files(
tools_lxc_wait_sources = files( tools_lxc_wait_sources = files(
'lxc_wait.c') + tools_common_sources 'lxc_wait.c') + tools_common_sources
if want_tools == true
public_programs += executable( public_programs += executable(
'lxc-attach', 'lxc-attach',
tools_lxc_attach_sources, tools_lxc_attach_sources,
@ -328,3 +329,4 @@ public_programs += executable(
include_directories: tools_liblxc_includes, include_directories: tools_liblxc_includes,
dependencies: liblxc_dep, dependencies: liblxc_dep,
install: true) install: true)
endif