Create phosphor-regulators application
Create the initial version of the phosphor-regulators application.
Modify the meson.build file to build and install the application.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I22da7e81f02d401d152d954a254cff3c35c84b73
diff --git a/phosphor-regulators/src/meson.build b/phosphor-regulators/src/meson.build
index e93d65f..4337095 100644
--- a/phosphor-regulators/src/meson.build
+++ b/phosphor-regulators/src/meson.build
@@ -3,7 +3,7 @@
'actions'
)
-phosphor_regulators_source_files = [
+phosphor_regulators_library_source_files = [
'id_map.cpp',
'actions/if_action.cpp'
@@ -11,7 +11,21 @@
phosphor_regulators_library = static_library(
'phosphor-regulators',
- phosphor_regulators_source_files,
+ phosphor_regulators_library_source_files,
implicit_include_directories: false,
include_directories: phosphor_regulators_include_directories
)
+
+phosphor_regulators = executable(
+ 'phosphor-regulators',
+ 'main.cpp',
+ dependencies: [
+ sdbusplus,
+ sdeventplus,
+ libi2c_dep
+ ],
+ link_with: phosphor_regulators_library,
+ implicit_include_directories: false,
+ include_directories: phosphor_regulators_include_directories,
+ install: true
+)