meson: add necessary subprojects
Add subprojects for all the direct dependencies of the project such
that the project can be built outside of a Yocto SDK on a typical
Linux development system.
- Update the .gitignore to ignore the subproject source directories.
- Update the .gitignore to ignore alternative build subdirectory
names as is typical with most projects in the openbmc organization.
- Add wrap files for direct dependencies, copied from other
repositories that already have the same dependencies.
- Modify the meson.build dependency for libgpiod so that the C++
bindings are included.
- Add many missing dependencies throughout.
- Sort all dependencies alphabetically for consistency.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0feb6f0f175e6dba0b00a2c2b666eb0801575734
diff --git a/phosphor-regulators/src/meson.build b/phosphor-regulators/src/meson.build
index 581343f..c448366 100644
--- a/phosphor-regulators/src/meson.build
+++ b/phosphor-regulators/src/meson.build
@@ -45,6 +45,12 @@
'phosphor-regulators',
phosphor_regulators_library_source_files,
implicit_include_directories: false,
+ dependencies: [
+ nlohmann_json_dep,
+ phosphor_dbus_interfaces,
+ phosphor_logging,
+ sdbusplus,
+ ],
include_directories: [
phosphor_regulators_include_directories,
libi2c_inc
@@ -58,10 +64,11 @@
'manager.cpp',
dependencies: [
libi2c_dep,
+ nlohmann_json_dep,
phosphor_logging,
sdbusplus,
sdeventplus,
- stdplus
+ stdplus,
],
link_with: [
phosphor_regulators_library,
@@ -76,7 +83,8 @@
'regsctl',
'regsctl/main.cpp',
dependencies: [
- sdbusplus
+ cli11_dep,
+ sdbusplus,
],
install: true
)