build: Don't libraries in subproject unless needed
When being used by a subproject, we only need to build what we are using
Change-Id: I1bdb9b447c8a5384c121b093537791340ae8bb60
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/meson.build b/src/meson.build
index 55051c8..8dbd144 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -93,6 +93,7 @@
implicit_include_directories: false,
dependencies: stdplus_deps,
version: meson.project_version(),
+ build_by_default: not meson.is_subproject(),
install: true)
stdplus_dep = declare_dependency(
@@ -129,6 +130,7 @@
dependencies: stdplus_dl_pre,
implicit_include_directories: false,
version: meson.project_version(),
+ build_by_default: not meson.is_subproject(),
install: true)
stdplus_dl_dep = declare_dependency(
@@ -177,6 +179,7 @@
dependencies: stdplus_io_uring_pre,
implicit_include_directories: false,
version: meson.project_version(),
+ build_by_default: not meson.is_subproject(),
install: true)
stdplus_io_uring_dep = declare_dependency(
@@ -213,6 +216,7 @@
dependencies: stdplus_gtest_pre,
implicit_include_directories: false,
version: meson.project_version(),
+ build_by_default: not meson.is_subproject(),
install: true)
stdplus_gtest_dep = declare_dependency(