Patrick Williams | 516e22f | 2025-02-01 08:37:12 -0500 | [diff] [blame] | 1 | phosphor_power_sequencer_include_directories = include_directories('.', '../..') |
Jim Wright | 1553cd9 | 2021-03-31 16:11:59 -0500 | [diff] [blame] | 2 | |
Shawn McCarney | 6a957f6 | 2024-01-10 16:15:19 -0600 | [diff] [blame] | 3 | phosphor_power_sequencer_library = static_library( |
| 4 | 'phosphor-power-sequencer', |
| 5 | 'config_file_parser.cpp', |
Shawn McCarney | 452de22 | 2024-05-30 15:23:09 -0500 | [diff] [blame] | 6 | 'device_finder.cpp', |
Shawn McCarney | b89395b | 2024-04-23 16:31:10 -0500 | [diff] [blame] | 7 | 'pmbus_driver_device.cpp', |
Shawn McCarney | 2495659 | 2024-02-19 18:58:57 -0600 | [diff] [blame] | 8 | 'rail.cpp', |
Shawn McCarney | e4fef0f | 2024-04-05 17:56:09 -0500 | [diff] [blame] | 9 | 'services.cpp', |
Shawn McCarney | 472101c | 2024-04-17 16:31:09 -0500 | [diff] [blame] | 10 | 'standard_device.cpp', |
Shawn McCarney | b545144 | 2024-05-03 10:31:21 -0500 | [diff] [blame] | 11 | 'ucd90160_device.cpp', |
Shawn McCarney | fec3833 | 2024-05-02 13:58:56 -0500 | [diff] [blame] | 12 | 'ucd90320_device.cpp', |
Shawn McCarney | 71d7fe4 | 2024-05-02 16:06:10 -0500 | [diff] [blame] | 13 | 'ucd90x_device.cpp', |
Shawn McCarney | 6a957f6 | 2024-01-10 16:15:19 -0600 | [diff] [blame] | 14 | implicit_include_directories: false, |
| 15 | dependencies: [ |
Konstantin Aladyshev | df4e0e7 | 2024-04-12 15:21:40 +0300 | [diff] [blame] | 16 | nlohmann_json_dep, |
Shawn McCarney | 452de22 | 2024-05-30 15:23:09 -0500 | [diff] [blame] | 17 | phosphor_dbus_interfaces, |
| 18 | phosphor_logging, |
| 19 | sdbusplus, |
Shawn McCarney | 6a957f6 | 2024-01-10 16:15:19 -0600 | [diff] [blame] | 20 | ], |
Patrick Williams | 516e22f | 2025-02-01 08:37:12 -0500 | [diff] [blame] | 21 | include_directories: [phosphor_power_sequencer_include_directories], |
Shawn McCarney | 6a957f6 | 2024-01-10 16:15:19 -0600 | [diff] [blame] | 22 | ) |
| 23 | |
Jim Wright | 539b608 | 2021-08-02 14:50:23 -0500 | [diff] [blame] | 24 | phosphor_power_sequencer = executable( |
| 25 | 'phosphor-power-control', |
| 26 | 'power_control_main.cpp', |
| 27 | 'power_control.cpp', |
Jim Wright | 1992083 | 2021-08-25 11:13:56 -0500 | [diff] [blame] | 28 | 'power_interface.cpp', |
Jim Wright | 539b608 | 2021-08-02 14:50:23 -0500 | [diff] [blame] | 29 | dependencies: [ |
Jim Wright | 7a5dd99 | 2021-08-31 16:56:52 -0500 | [diff] [blame] | 30 | libgpiodcxx, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 31 | nlohmann_json_dep, |
Jim Wright | 539b608 | 2021-08-02 14:50:23 -0500 | [diff] [blame] | 32 | phosphor_logging, |
| 33 | sdbusplus, |
| 34 | sdeventplus, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 35 | stdplus, |
Jim Wright | 539b608 | 2021-08-02 14:50:23 -0500 | [diff] [blame] | 36 | ], |
Patrick Williams | 516e22f | 2025-02-01 08:37:12 -0500 | [diff] [blame] | 37 | link_with: [phosphor_power_sequencer_library, libpower], |
Jim Wright | 539b608 | 2021-08-02 14:50:23 -0500 | [diff] [blame] | 38 | implicit_include_directories: false, |
| 39 | include_directories: phosphor_power_sequencer_include_directories, |
Patrick Williams | 516e22f | 2025-02-01 08:37:12 -0500 | [diff] [blame] | 40 | install: true, |
Jim Wright | 539b608 | 2021-08-02 14:50:23 -0500 | [diff] [blame] | 41 | ) |