1539b608fSJim Wrightphosphor_power_sequencer_include_directories = include_directories(
2539b608fSJim Wright    '.',
3539b608fSJim Wright    '../..'
41553cd9aSJim Wright)
51553cd9aSJim Wright
66a957f6fSShawn McCarneyphosphor_power_sequencer_library = static_library(
76a957f6fSShawn McCarney    'phosphor-power-sequencer',
86a957f6fSShawn McCarney    'config_file_parser.cpp',
9452de22eSShawn McCarney    'device_finder.cpp',
10b89395b1SShawn McCarney    'pmbus_driver_device.cpp',
1124956598SShawn McCarney    'rail.cpp',
12e4fef0fcSShawn McCarney    'services.cpp',
13472101c5SShawn McCarney    'standard_device.cpp',
14b5451447SShawn McCarney    'ucd90160_device.cpp',
15fec38334SShawn McCarney    'ucd90320_device.cpp',
1671d7fe43SShawn McCarney    'ucd90x_device.cpp',
176a957f6fSShawn McCarney    implicit_include_directories: false,
186a957f6fSShawn McCarney    dependencies: [
19df4e0e7eSKonstantin Aladyshev        nlohmann_json_dep,
20452de22eSShawn McCarney        phosphor_dbus_interfaces,
21452de22eSShawn McCarney        phosphor_logging,
22452de22eSShawn McCarney        sdbusplus,
236a957f6fSShawn McCarney    ],
246a957f6fSShawn McCarney    include_directories: [
256a957f6fSShawn McCarney        phosphor_power_sequencer_include_directories
266a957f6fSShawn McCarney    ]
276a957f6fSShawn McCarney)
286a957f6fSShawn McCarney
29539b608fSJim Wrightphosphor_power_sequencer = executable(
30539b608fSJim Wright    'phosphor-power-control',
31539b608fSJim Wright    'power_control_main.cpp',
32539b608fSJim Wright    'power_control.cpp',
331992083aSJim Wright    'power_interface.cpp',
34539b608fSJim Wright    dependencies: [
357a5dd99bSJim Wright        libgpiodcxx,
36888bebdeSPatrick Williams        nlohmann_json_dep,
37539b608fSJim Wright        phosphor_logging,
38539b608fSJim Wright        sdbusplus,
39539b608fSJim Wright        sdeventplus,
40888bebdeSPatrick Williams        stdplus,
41539b608fSJim Wright    ],
422d99bf7dSJim Wright    link_with: [
43*1f8b1103SShawn McCarney        phosphor_power_sequencer_library,
442d99bf7dSJim Wright        libpower
452d99bf7dSJim Wright    ],
46539b608fSJim Wright    implicit_include_directories: false,
47539b608fSJim Wright    include_directories: phosphor_power_sequencer_include_directories,
48539b608fSJim Wright    install: true
49539b608fSJim Wright)
50