1phosphor_regulators_include_directories = include_directories(
2    '.',
3    '../..',
4    'actions'
5)
6
7phosphor_regulators_library_source_files = [
8    'chassis.cpp',
9    'config_file_parser.cpp',
10    'configuration.cpp',
11    'device.cpp',
12    'exception_utils.cpp',
13    'id_map.cpp',
14    'pmbus_utils.cpp',
15    'rail.cpp',
16    'system.cpp',
17
18    'actions/if_action.cpp',
19    'actions/i2c_compare_bit_action.cpp',
20    'actions/i2c_compare_byte_action.cpp',
21    'actions/i2c_compare_bytes_action.cpp',
22    'actions/i2c_write_bit_action.cpp',
23    'actions/i2c_write_byte_action.cpp',
24    'actions/i2c_write_bytes_action.cpp',
25    'actions/pmbus_write_vout_command_action.cpp'
26]
27
28phosphor_regulators_library = static_library(
29    'phosphor-regulators',
30    phosphor_regulators_library_source_files,
31    implicit_include_directories: false,
32    include_directories: [
33        phosphor_regulators_include_directories,
34        libi2c_inc
35    ]
36)
37
38phosphor_regulators = executable(
39    'phosphor-regulators',
40    'interfaces/manager_interface.cpp',
41    'journal.cpp',
42    'main.cpp',
43    'manager.cpp',
44    dependencies: [
45        libi2c_dep,
46        phosphor_logging,
47        sdbusplus,
48        sdeventplus,
49        stdplus
50    ],
51    link_with: [
52        phosphor_regulators_library,
53        libpower
54    ],
55    implicit_include_directories: false,
56    include_directories: phosphor_regulators_include_directories,
57    install: true
58)
59
60regsctl = executable(
61    'regsctl',
62    'regsctl/main.cpp',
63    dependencies: [
64        sdbusplus
65    ],
66    install: true
67)
68