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