Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 1 | phosphor_regulators_include_directories = include_directories( |
| 2 | '.', |
Matthew Barth | bbc7c58 | 2020-02-03 15:55:15 -0600 | [diff] [blame] | 3 | '../..', |
Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 4 | 'actions' |
| 5 | ) |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 6 | |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 7 | phosphor_regulators_library_source_files = [ |
Shawn McCarney | db0b833 | 2020-04-06 14:13:04 -0500 | [diff] [blame] | 8 | 'chassis.cpp', |
Shawn McCarney | 0e8c68a | 2020-03-27 01:44:48 -0500 | [diff] [blame] | 9 | 'config_file_parser.cpp', |
Shawn McCarney | 3976500 | 2020-04-09 18:03:26 -0500 | [diff] [blame] | 10 | 'configuration.cpp', |
Shawn McCarney | 837ece7 | 2021-04-22 13:21:08 -0500 | [diff] [blame] | 11 | 'dbus_sensor.cpp', |
Shawn McCarney | 03a25f1 | 2021-04-24 17:02:04 -0500 | [diff] [blame] | 12 | 'dbus_sensors.cpp', |
Shawn McCarney | db0b833 | 2020-04-06 14:13:04 -0500 | [diff] [blame] | 13 | 'device.cpp', |
Shawn McCarney | 1df5954 | 2020-09-24 18:43:18 -0500 | [diff] [blame] | 14 | 'error_logging.cpp', |
Shawn McCarney | aaa4fdd | 2021-03-18 19:32:37 -0500 | [diff] [blame] | 15 | 'error_logging_utils.cpp', |
Shawn McCarney | 55f496c | 2020-04-09 16:19:14 -0500 | [diff] [blame] | 16 | 'exception_utils.cpp', |
Shawn McCarney | f3633f6 | 2020-09-02 10:34:52 -0500 | [diff] [blame] | 17 | 'ffdc_file.cpp', |
Shawn McCarney | 6d59773 | 2019-11-13 17:40:07 -0600 | [diff] [blame] | 18 | 'id_map.cpp', |
Bob King | ca08a79 | 2020-09-30 14:30:13 +0800 | [diff] [blame] | 19 | 'journal.cpp', |
Shawn McCarney | 9284c30 | 2021-09-02 11:23:04 -0500 | [diff] [blame] | 20 | 'phase_fault_detection.cpp', |
Shawn McCarney | 6663abf | 2020-02-29 17:25:48 -0600 | [diff] [blame] | 21 | 'pmbus_utils.cpp', |
Bob King | 462e592 | 2020-11-19 17:48:30 +0800 | [diff] [blame] | 22 | 'presence_detection.cpp', |
Shawn McCarney | d58858c | 2020-11-04 18:28:01 -0600 | [diff] [blame] | 23 | 'presence_service.cpp', |
Shawn McCarney | 779b956 | 2020-04-13 17:05:45 -0500 | [diff] [blame] | 24 | 'rail.cpp', |
Bob King | 833b8e0 | 2020-06-11 14:56:38 +0800 | [diff] [blame] | 25 | 'sensor_monitoring.cpp', |
Shawn McCarney | db0b833 | 2020-04-06 14:13:04 -0500 | [diff] [blame] | 26 | 'system.cpp', |
Shawn McCarney | 4e0402c | 2021-02-05 00:08:33 -0600 | [diff] [blame] | 27 | 'vpd.cpp', |
Shawn McCarney | 6d59773 | 2019-11-13 17:40:07 -0600 | [diff] [blame] | 28 | |
Bob King | 49e90d3 | 2020-11-11 13:55:25 +0800 | [diff] [blame] | 29 | 'actions/compare_presence_action.cpp', |
Shawn McCarney | 45907cc | 2021-02-05 17:33:11 -0600 | [diff] [blame] | 30 | 'actions/compare_vpd_action.cpp', |
Shawn McCarney | b38da99 | 2020-02-13 08:55:46 -0600 | [diff] [blame] | 31 | 'actions/if_action.cpp', |
Shawn McCarney | 3b242b7 | 2021-08-27 09:55:22 -0500 | [diff] [blame] | 32 | 'actions/i2c_capture_bytes_action.cpp', |
Shawn McCarney | 8215be3 | 2020-02-19 10:00:57 -0600 | [diff] [blame] | 33 | 'actions/i2c_compare_bit_action.cpp', |
Shawn McCarney | 5ad5394 | 2020-02-20 09:33:55 -0600 | [diff] [blame] | 34 | 'actions/i2c_compare_byte_action.cpp', |
Shawn McCarney | f1c9061 | 2020-02-24 09:56:53 -0600 | [diff] [blame] | 35 | 'actions/i2c_compare_bytes_action.cpp', |
Shawn McCarney | 88d5b69 | 2020-02-25 10:39:02 -0600 | [diff] [blame] | 36 | 'actions/i2c_write_bit_action.cpp', |
Shawn McCarney | 83169bf | 2020-02-24 15:59:34 -0600 | [diff] [blame] | 37 | 'actions/i2c_write_byte_action.cpp', |
Shawn McCarney | a8119f2 | 2020-03-02 16:20:18 -0600 | [diff] [blame] | 38 | 'actions/i2c_write_bytes_action.cpp', |
Bob King | 717d2da | 2020-06-02 11:11:15 +0800 | [diff] [blame] | 39 | 'actions/pmbus_read_sensor_action.cpp', |
Shawn McCarney | a8119f2 | 2020-03-02 16:20:18 -0600 | [diff] [blame] | 40 | 'actions/pmbus_write_vout_command_action.cpp' |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 41 | ] |
| 42 | |
| 43 | phosphor_regulators_library = static_library( |
| 44 | 'phosphor-regulators', |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 45 | phosphor_regulators_library_source_files, |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 46 | implicit_include_directories: false, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 47 | dependencies: [ |
| 48 | nlohmann_json_dep, |
| 49 | phosphor_dbus_interfaces, |
| 50 | phosphor_logging, |
| 51 | sdbusplus, |
| 52 | ], |
Shawn McCarney | afb7fc3 | 2019-12-11 19:42:03 -0600 | [diff] [blame] | 53 | include_directories: [ |
| 54 | phosphor_regulators_include_directories, |
| 55 | libi2c_inc |
| 56 | ] |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 57 | ) |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 58 | |
| 59 | phosphor_regulators = executable( |
| 60 | 'phosphor-regulators', |
Matthew Barth | 29e9e38 | 2020-01-23 13:40:49 -0600 | [diff] [blame] | 61 | 'interfaces/manager_interface.cpp', |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 62 | 'main.cpp', |
Matthew Barth | 29e9e38 | 2020-01-23 13:40:49 -0600 | [diff] [blame] | 63 | 'manager.cpp', |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 64 | dependencies: [ |
Shawn McCarney | 7c5d7b2 | 2020-04-03 18:50:13 -0500 | [diff] [blame] | 65 | libi2c_dep, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 66 | nlohmann_json_dep, |
Shawn McCarney | 7c5d7b2 | 2020-04-03 18:50:13 -0500 | [diff] [blame] | 67 | phosphor_logging, |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 68 | sdbusplus, |
Matthew Barth | 7cbc553 | 2020-01-29 15:13:13 -0600 | [diff] [blame] | 69 | sdeventplus, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 70 | stdplus, |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 71 | ], |
Matthew Barth | bbc7c58 | 2020-02-03 15:55:15 -0600 | [diff] [blame] | 72 | link_with: [ |
| 73 | phosphor_regulators_library, |
| 74 | libpower |
| 75 | ], |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 76 | implicit_include_directories: false, |
| 77 | include_directories: phosphor_regulators_include_directories, |
| 78 | install: true |
| 79 | ) |
Matthew Barth | 3270708 | 2020-04-13 13:59:04 -0500 | [diff] [blame] | 80 | |
| 81 | regsctl = executable( |
| 82 | 'regsctl', |
| 83 | 'regsctl/main.cpp', |
| 84 | dependencies: [ |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 85 | cli11_dep, |
| 86 | sdbusplus, |
Matthew Barth | 3270708 | 2020-04-13 13:59:04 -0500 | [diff] [blame] | 87 | ], |
| 88 | install: true |
| 89 | ) |