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