blob: 9c6cbe5a3a0caf96a73c09d02c8173f30c2b9c3d [file] [log] [blame]
Jim Wright539b6082021-08-02 14:50:23 -05001phosphor_power_sequencer_include_directories = include_directories(
2 '.',
3 '../..'
Jim Wright1553cd92021-03-31 16:11:59 -05004)
5
Shawn McCarney6a957f62024-01-10 16:15:19 -06006phosphor_power_sequencer_library = static_library(
7 'phosphor-power-sequencer',
8 'config_file_parser.cpp',
Shawn McCarney452de222024-05-30 15:23:09 -05009 'device_finder.cpp',
Shawn McCarneyb89395b2024-04-23 16:31:10 -050010 'pmbus_driver_device.cpp',
Shawn McCarney24956592024-02-19 18:58:57 -060011 'rail.cpp',
Shawn McCarneye4fef0f2024-04-05 17:56:09 -050012 'services.cpp',
Shawn McCarney472101c2024-04-17 16:31:09 -050013 'standard_device.cpp',
Shawn McCarneyb5451442024-05-03 10:31:21 -050014 'ucd90160_device.cpp',
Shawn McCarneyfec38332024-05-02 13:58:56 -050015 'ucd90320_device.cpp',
Shawn McCarney71d7fe42024-05-02 16:06:10 -050016 'ucd90x_device.cpp',
Shawn McCarney6a957f62024-01-10 16:15:19 -060017 implicit_include_directories: false,
18 dependencies: [
Konstantin Aladyshevdf4e0e72024-04-12 15:21:40 +030019 nlohmann_json_dep,
Shawn McCarney452de222024-05-30 15:23:09 -050020 phosphor_dbus_interfaces,
21 phosphor_logging,
22 sdbusplus,
Shawn McCarney6a957f62024-01-10 16:15:19 -060023 ],
24 include_directories: [
25 phosphor_power_sequencer_include_directories
26 ]
27)
28
Jim Wright539b6082021-08-02 14:50:23 -050029phosphor_power_sequencer = executable(
30 'phosphor-power-control',
31 'power_control_main.cpp',
32 'power_control.cpp',
Jim Wright19920832021-08-25 11:13:56 -050033 'power_interface.cpp',
Jim Wright539b6082021-08-02 14:50:23 -050034 dependencies: [
Jim Wright7a5dd992021-08-31 16:56:52 -050035 libgpiodcxx,
Patrick Williams888bebd2023-05-31 19:19:49 -050036 nlohmann_json_dep,
Jim Wright539b6082021-08-02 14:50:23 -050037 phosphor_logging,
38 sdbusplus,
39 sdeventplus,
Patrick Williams888bebd2023-05-31 19:19:49 -050040 stdplus,
Jim Wright539b6082021-08-02 14:50:23 -050041 ],
Jim Wright2d99bf72021-11-19 11:18:12 -060042 link_with: [
Shawn McCarney1f8b1102024-06-21 18:57:46 -050043 phosphor_power_sequencer_library,
Jim Wright2d99bf72021-11-19 11:18:12 -060044 libpower
45 ],
Jim Wright539b6082021-08-02 14:50:23 -050046 implicit_include_directories: false,
47 include_directories: phosphor_power_sequencer_include_directories,
48 install: true
49)