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    'error_logging.cpp',
13    'error_logging_utils.cpp',
14    'exception_utils.cpp',
15    'ffdc_file.cpp',
16    'id_map.cpp',
17    'journal.cpp',
18    'pmbus_utils.cpp',
19    'presence_detection.cpp',
20    'presence_service.cpp',
21    'rail.cpp',
22    'sensor_monitoring.cpp',
23    'system.cpp',
24    'temporary_file.cpp',
25    'vpd.cpp',
26
27    'actions/compare_presence_action.cpp',
28    'actions/compare_vpd_action.cpp',
29    'actions/if_action.cpp',
30    'actions/i2c_compare_bit_action.cpp',
31    'actions/i2c_compare_byte_action.cpp',
32    'actions/i2c_compare_bytes_action.cpp',
33    'actions/i2c_write_bit_action.cpp',
34    'actions/i2c_write_byte_action.cpp',
35    'actions/i2c_write_bytes_action.cpp',
36    'actions/pmbus_read_sensor_action.cpp',
37    'actions/pmbus_write_vout_command_action.cpp'
38]
39
40phosphor_regulators_library = static_library(
41    'phosphor-regulators',
42    phosphor_regulators_library_source_files,
43    implicit_include_directories: false,
44    include_directories: [
45        phosphor_regulators_include_directories,
46        libi2c_inc
47    ]
48)
49
50phosphor_regulators = executable(
51    'phosphor-regulators',
52    'interfaces/manager_interface.cpp',
53    'main.cpp',
54    'manager.cpp',
55    dependencies: [
56        libi2c_dep,
57        phosphor_logging,
58        sdbusplus,
59        sdeventplus,
60        stdplus
61    ],
62    link_with: [
63        phosphor_regulators_library,
64        libpower
65    ],
66    implicit_include_directories: false,
67    include_directories: phosphor_regulators_include_directories,
68    install: true
69)
70
71regsctl = executable(
72    'regsctl',
73    'regsctl/main.cpp',
74    dependencies: [
75        sdbusplus
76    ],
77    install: true
78)
79