blob: ee6057efb7ab0429850f9fcdaaade15bd91c17b5 [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 McCarneyb89395b2024-04-23 16:31:10 -05009 'pmbus_driver_device.cpp',
Shawn McCarney24956592024-02-19 18:58:57 -060010 'rail.cpp',
Shawn McCarneye4fef0f2024-04-05 17:56:09 -050011 'services.cpp',
Shawn McCarney472101c2024-04-17 16:31:09 -050012 'standard_device.cpp',
Shawn McCarney6a957f62024-01-10 16:15:19 -060013 implicit_include_directories: false,
14 dependencies: [
Konstantin Aladyshevdf4e0e72024-04-12 15:21:40 +030015 nlohmann_json_dep,
16 phosphor_logging
Shawn McCarney6a957f62024-01-10 16:15:19 -060017 ],
18 include_directories: [
19 phosphor_power_sequencer_include_directories
20 ]
21)
22
Jim Wright539b6082021-08-02 14:50:23 -050023phosphor_power_sequencer = executable(
24 'phosphor-power-control',
25 'power_control_main.cpp',
26 'power_control.cpp',
Jim Wright19920832021-08-25 11:13:56 -050027 'power_interface.cpp',
Jim Wright930458c2022-01-24 14:37:27 -060028 'power_sequencer_monitor.cpp',
Jim Wrightc48551a2022-12-22 15:43:14 -060029 'ucd90x_monitor.cpp',
30 'ucd90160_monitor.cpp',
Jim Wright7945dd22021-04-06 16:55:15 -050031 'ucd90320_monitor.cpp',
Jim Wright539b6082021-08-02 14:50:23 -050032 dependencies: [
Jim Wright7a5dd992021-08-31 16:56:52 -050033 libgpiodcxx,
Patrick Williams888bebd2023-05-31 19:19:49 -050034 nlohmann_json_dep,
Jim Wright539b6082021-08-02 14:50:23 -050035 phosphor_logging,
36 sdbusplus,
37 sdeventplus,
Patrick Williams888bebd2023-05-31 19:19:49 -050038 stdplus,
Jim Wright539b6082021-08-02 14:50:23 -050039 ],
Jim Wright2d99bf72021-11-19 11:18:12 -060040 link_with: [
41 libpower
42 ],
Jim Wright539b6082021-08-02 14:50:23 -050043 implicit_include_directories: false,
44 include_directories: phosphor_power_sequencer_include_directories,
45 install: true
46)