blob: 1a1602f60dfc87c3106ff9f00a4f7af708345c33 [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 McCarneydb0b8332020-04-06 14:13:04 -050011 'device.cpp',
Shawn McCarney55f496c2020-04-09 16:19:14 -050012 'exception_utils.cpp',
Shawn McCarney6d597732019-11-13 17:40:07 -060013 'id_map.cpp',
Shawn McCarney6663abf2020-02-29 17:25:48 -060014 'pmbus_utils.cpp',
Shawn McCarney779b9562020-04-13 17:05:45 -050015 'rail.cpp',
Shawn McCarneydb0b8332020-04-06 14:13:04 -050016 'system.cpp',
Shawn McCarney6d597732019-11-13 17:40:07 -060017
Shawn McCarneyb38da992020-02-13 08:55:46 -060018 'actions/if_action.cpp',
Shawn McCarney8215be32020-02-19 10:00:57 -060019 'actions/i2c_compare_bit_action.cpp',
Shawn McCarney5ad53942020-02-20 09:33:55 -060020 'actions/i2c_compare_byte_action.cpp',
Shawn McCarneyf1c90612020-02-24 09:56:53 -060021 'actions/i2c_compare_bytes_action.cpp',
Shawn McCarney88d5b692020-02-25 10:39:02 -060022 'actions/i2c_write_bit_action.cpp',
Shawn McCarney83169bf2020-02-24 15:59:34 -060023 'actions/i2c_write_byte_action.cpp',
Shawn McCarneya8119f22020-03-02 16:20:18 -060024 'actions/i2c_write_bytes_action.cpp',
25 'actions/pmbus_write_vout_command_action.cpp'
Shawn McCarney494ef032019-11-07 15:56:50 -060026]
27
28phosphor_regulators_library = static_library(
29 'phosphor-regulators',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060030 phosphor_regulators_library_source_files,
Shawn McCarney494ef032019-11-07 15:56:50 -060031 implicit_include_directories: false,
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060032 include_directories: [
33 phosphor_regulators_include_directories,
34 libi2c_inc
35 ]
Shawn McCarney494ef032019-11-07 15:56:50 -060036)
Shawn McCarney4c94bc72019-12-13 17:49:31 -060037
38phosphor_regulators = executable(
39 'phosphor-regulators',
Matthew Barth29e9e382020-01-23 13:40:49 -060040 'interfaces/manager_interface.cpp',
Shawn McCarney7c5d7b22020-04-03 18:50:13 -050041 'journal.cpp',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060042 'main.cpp',
Matthew Barth29e9e382020-01-23 13:40:49 -060043 'manager.cpp',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060044 dependencies: [
Shawn McCarney7c5d7b22020-04-03 18:50:13 -050045 libi2c_dep,
46 phosphor_logging,
Shawn McCarney4c94bc72019-12-13 17:49:31 -060047 sdbusplus,
Matthew Barth7cbc5532020-01-29 15:13:13 -060048 sdeventplus,
49 stdplus
Shawn McCarney4c94bc72019-12-13 17:49:31 -060050 ],
Matthew Barthbbc7c582020-02-03 15:55:15 -060051 link_with: [
52 phosphor_regulators_library,
53 libpower
54 ],
Shawn McCarney4c94bc72019-12-13 17:49:31 -060055 implicit_include_directories: false,
56 include_directories: phosphor_regulators_include_directories,
57 install: true
58)
Matthew Barth32707082020-04-13 13:59:04 -050059
60regsctl = executable(
61 'regsctl',
62 'regsctl/main.cpp',
63 dependencies: [
64 sdbusplus
65 ],
66 install: true
67)