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