xref: /openbmc/phosphor-power/phosphor-power-sequencer/src/meson.build (revision 516e22fe84f77c2d029b028785dfd1e5633267b5)
1*516e22feSPatrick Williamsphosphor_power_sequencer_include_directories = include_directories('.', '../..')
21553cd9aSJim Wright
36a957f6fSShawn McCarneyphosphor_power_sequencer_library = static_library(
46a957f6fSShawn McCarney    'phosphor-power-sequencer',
56a957f6fSShawn McCarney    'config_file_parser.cpp',
6452de22eSShawn McCarney    'device_finder.cpp',
7b89395b1SShawn McCarney    'pmbus_driver_device.cpp',
824956598SShawn McCarney    'rail.cpp',
9e4fef0fcSShawn McCarney    'services.cpp',
10472101c5SShawn McCarney    'standard_device.cpp',
11b5451447SShawn McCarney    'ucd90160_device.cpp',
12fec38334SShawn McCarney    'ucd90320_device.cpp',
1371d7fe43SShawn McCarney    'ucd90x_device.cpp',
146a957f6fSShawn McCarney    implicit_include_directories: false,
156a957f6fSShawn McCarney    dependencies: [
16df4e0e7eSKonstantin Aladyshev        nlohmann_json_dep,
17452de22eSShawn McCarney        phosphor_dbus_interfaces,
18452de22eSShawn McCarney        phosphor_logging,
19452de22eSShawn McCarney        sdbusplus,
206a957f6fSShawn McCarney    ],
21*516e22feSPatrick Williams    include_directories: [phosphor_power_sequencer_include_directories],
226a957f6fSShawn McCarney)
236a957f6fSShawn McCarney
24539b608fSJim Wrightphosphor_power_sequencer = executable(
25539b608fSJim Wright    'phosphor-power-control',
26539b608fSJim Wright    'power_control_main.cpp',
27539b608fSJim Wright    'power_control.cpp',
281992083aSJim Wright    'power_interface.cpp',
29539b608fSJim Wright    dependencies: [
307a5dd99bSJim Wright        libgpiodcxx,
31888bebdeSPatrick Williams        nlohmann_json_dep,
32539b608fSJim Wright        phosphor_logging,
33539b608fSJim Wright        sdbusplus,
34539b608fSJim Wright        sdeventplus,
35888bebdeSPatrick Williams        stdplus,
36539b608fSJim Wright    ],
37*516e22feSPatrick Williams    link_with: [phosphor_power_sequencer_library, libpower],
38539b608fSJim Wright    implicit_include_directories: false,
39539b608fSJim Wright    include_directories: phosphor_power_sequencer_include_directories,
40*516e22feSPatrick Williams    install: true,
41539b608fSJim Wright)
42