1phosphor_power_sequencer_include_directories = include_directories(
2    '.',
3    '../..'
4)
5
6phosphor_power_sequencer_library = static_library(
7    'phosphor-power-sequencer',
8    'config_file_parser.cpp',
9    'device_finder.cpp',
10    'pmbus_driver_device.cpp',
11    'rail.cpp',
12    'services.cpp',
13    'standard_device.cpp',
14    'ucd90160_device.cpp',
15    'ucd90320_device.cpp',
16    'ucd90x_device.cpp',
17    implicit_include_directories: false,
18    dependencies: [
19        nlohmann_json_dep,
20        phosphor_dbus_interfaces,
21        phosphor_logging,
22        sdbusplus,
23    ],
24    include_directories: [
25        phosphor_power_sequencer_include_directories
26    ]
27)
28
29phosphor_power_sequencer = executable(
30    'phosphor-power-control',
31    'power_control_main.cpp',
32    'power_control.cpp',
33    'power_interface.cpp',
34    dependencies: [
35        libgpiodcxx,
36        nlohmann_json_dep,
37        phosphor_logging,
38        sdbusplus,
39        sdeventplus,
40        stdplus,
41    ],
42    link_with: [
43        phosphor_power_sequencer_library,
44        libpower
45    ],
46    implicit_include_directories: false,
47    include_directories: phosphor_power_sequencer_include_directories,
48    install: true
49)
50