blob: e1552fee9656f6010d6401d2870b69cc4b85bae2 [file] [log] [blame]
Shawn McCarney623f5a82019-11-03 08:55:40 -06001phosphor_regulators_include_directories = include_directories(
2 '.',
Matthew Barthbbc7c582020-02-03 15:55:15 -06003 '../..',
Shawn McCarney623f5a82019-11-03 08:55:40 -06004 'actions'
5)
Shawn McCarney494ef032019-11-07 15:56:50 -06006
Shawn McCarney4c94bc72019-12-13 17:49:31 -06007phosphor_regulators_library_source_files = [
Shawn McCarneydb0b8332020-04-06 14:13:04 -05008 'chassis.cpp',
Shawn McCarney0e8c68a2020-03-27 01:44:48 -05009 'config_file_parser.cpp',
Shawn McCarney39765002020-04-09 18:03:26 -050010 'configuration.cpp',
Shawn McCarney837ece72021-04-22 13:21:08 -050011 'dbus_sensor.cpp',
Shawn McCarney03a25f12021-04-24 17:02:04 -050012 'dbus_sensors.cpp',
Shawn McCarneydb0b8332020-04-06 14:13:04 -050013 'device.cpp',
Shawn McCarney1df59542020-09-24 18:43:18 -050014 'error_logging.cpp',
Shawn McCarneyaaa4fdd2021-03-18 19:32:37 -050015 'error_logging_utils.cpp',
Shawn McCarney55f496c2020-04-09 16:19:14 -050016 'exception_utils.cpp',
Shawn McCarneyf3633f62020-09-02 10:34:52 -050017 'ffdc_file.cpp',
Shawn McCarney6d597732019-11-13 17:40:07 -060018 'id_map.cpp',
Bob Kingca08a792020-09-30 14:30:13 +080019 'journal.cpp',
Shawn McCarney9284c302021-09-02 11:23:04 -050020 'phase_fault_detection.cpp',
Shawn McCarney6663abf2020-02-29 17:25:48 -060021 'pmbus_utils.cpp',
Bob King462e5922020-11-19 17:48:30 +080022 'presence_detection.cpp',
Shawn McCarneyd58858c2020-11-04 18:28:01 -060023 'presence_service.cpp',
Shawn McCarney779b9562020-04-13 17:05:45 -050024 'rail.cpp',
Bob King833b8e02020-06-11 14:56:38 +080025 'sensor_monitoring.cpp',
Shawn McCarneydb0b8332020-04-06 14:13:04 -050026 'system.cpp',
Shawn McCarney4e0402c2021-02-05 00:08:33 -060027 'vpd.cpp',
Shawn McCarney6d597732019-11-13 17:40:07 -060028
Bob King49e90d32020-11-11 13:55:25 +080029 'actions/compare_presence_action.cpp',
Shawn McCarney45907cc2021-02-05 17:33:11 -060030 'actions/compare_vpd_action.cpp',
Shawn McCarneyb38da992020-02-13 08:55:46 -060031 'actions/if_action.cpp',
Shawn McCarney3b242b72021-08-27 09:55:22 -050032 'actions/i2c_capture_bytes_action.cpp',
Shawn McCarney8215be32020-02-19 10:00:57 -060033 'actions/i2c_compare_bit_action.cpp',
Shawn McCarney5ad53942020-02-20 09:33:55 -060034 'actions/i2c_compare_byte_action.cpp',
Shawn McCarneyf1c90612020-02-24 09:56:53 -060035 'actions/i2c_compare_bytes_action.cpp',
Shawn McCarney88d5b692020-02-25 10:39:02 -060036 'actions/i2c_write_bit_action.cpp',
Shawn McCarney83169bf2020-02-24 15:59:34 -060037 'actions/i2c_write_byte_action.cpp',
Shawn McCarneya8119f22020-03-02 16:20:18 -060038 'actions/i2c_write_bytes_action.cpp',
Bob King717d2da2020-06-02 11:11:15 +080039 'actions/pmbus_read_sensor_action.cpp',
Shawn McCarneya8119f22020-03-02 16:20:18 -060040 'actions/pmbus_write_vout_command_action.cpp'
Shawn McCarney494ef032019-11-07 15:56:50 -060041]
42
43phosphor_regulators_library = static_library(
44 'phosphor-regulators',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060045 phosphor_regulators_library_source_files,
Shawn McCarney494ef032019-11-07 15:56:50 -060046 implicit_include_directories: false,
Patrick Williams888bebd2023-05-31 19:19:49 -050047 dependencies: [
48 nlohmann_json_dep,
49 phosphor_dbus_interfaces,
50 phosphor_logging,
51 sdbusplus,
52 ],
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060053 include_directories: [
54 phosphor_regulators_include_directories,
55 libi2c_inc
56 ]
Shawn McCarney494ef032019-11-07 15:56:50 -060057)
Shawn McCarney4c94bc72019-12-13 17:49:31 -060058
59phosphor_regulators = executable(
60 'phosphor-regulators',
Matthew Barth29e9e382020-01-23 13:40:49 -060061 'interfaces/manager_interface.cpp',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060062 'main.cpp',
Matthew Barth29e9e382020-01-23 13:40:49 -060063 'manager.cpp',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060064 dependencies: [
Shawn McCarney7c5d7b22020-04-03 18:50:13 -050065 libi2c_dep,
Patrick Williams888bebd2023-05-31 19:19:49 -050066 nlohmann_json_dep,
Shawn McCarney7c5d7b22020-04-03 18:50:13 -050067 phosphor_logging,
Shawn McCarney4c94bc72019-12-13 17:49:31 -060068 sdbusplus,
Matthew Barth7cbc5532020-01-29 15:13:13 -060069 sdeventplus,
Patrick Williams888bebd2023-05-31 19:19:49 -050070 stdplus,
Shawn McCarney4c94bc72019-12-13 17:49:31 -060071 ],
Matthew Barthbbc7c582020-02-03 15:55:15 -060072 link_with: [
73 phosphor_regulators_library,
74 libpower
75 ],
Shawn McCarney4c94bc72019-12-13 17:49:31 -060076 implicit_include_directories: false,
77 include_directories: phosphor_regulators_include_directories,
78 install: true
79)
Matthew Barth32707082020-04-13 13:59:04 -050080
81regsctl = executable(
82 'regsctl',
83 'regsctl/main.cpp',
84 dependencies: [
Patrick Williams888bebd2023-05-31 19:19:49 -050085 cli11_dep,
86 sdbusplus,
Matthew Barth32707082020-04-13 13:59:04 -050087 ],
88 install: true
89)