blob: 98449fb0df498f5dcc1c975cbf4c4614202ef732 [file] [log] [blame]
Shawn McCarney623f5a82019-11-03 08:55:40 -06001phosphor_regulators_include_directories = include_directories(
2 '.',
3 'actions'
4)
Shawn McCarney494ef032019-11-07 15:56:50 -06005
Shawn McCarney4c94bc72019-12-13 17:49:31 -06006phosphor_regulators_library_source_files = [
Shawn McCarneydb0b8332020-04-06 14:13:04 -05007 'chassis.cpp',
Shawn McCarney0e8c68a2020-03-27 01:44:48 -05008 'config_file_parser.cpp',
Shawn McCarney39765002020-04-09 18:03:26 -05009 'configuration.cpp',
Shawn McCarneydb0b8332020-04-06 14:13:04 -050010 'device.cpp',
Shawn McCarney55f496c2020-04-09 16:19:14 -050011 'exception_utils.cpp',
Shawn McCarney6d597732019-11-13 17:40:07 -060012 'id_map.cpp',
Shawn McCarney6663abf2020-02-29 17:25:48 -060013 'pmbus_utils.cpp',
Shawn McCarneydb0b8332020-04-06 14:13:04 -050014 'system.cpp',
Shawn McCarney6d597732019-11-13 17:40:07 -060015
Shawn McCarneyb38da992020-02-13 08:55:46 -060016 'actions/if_action.cpp',
Shawn McCarney8215be32020-02-19 10:00:57 -060017 'actions/i2c_compare_bit_action.cpp',
Shawn McCarney5ad53942020-02-20 09:33:55 -060018 'actions/i2c_compare_byte_action.cpp',
Shawn McCarneyf1c90612020-02-24 09:56:53 -060019 'actions/i2c_compare_bytes_action.cpp',
Shawn McCarney88d5b692020-02-25 10:39:02 -060020 'actions/i2c_write_bit_action.cpp',
Shawn McCarney83169bf2020-02-24 15:59:34 -060021 'actions/i2c_write_byte_action.cpp',
Shawn McCarneya8119f22020-03-02 16:20:18 -060022 'actions/i2c_write_bytes_action.cpp',
23 'actions/pmbus_write_vout_command_action.cpp'
Shawn McCarney494ef032019-11-07 15:56:50 -060024]
25
26phosphor_regulators_library = static_library(
27 'phosphor-regulators',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060028 phosphor_regulators_library_source_files,
Shawn McCarney494ef032019-11-07 15:56:50 -060029 implicit_include_directories: false,
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060030 include_directories: [
31 phosphor_regulators_include_directories,
32 libi2c_inc
33 ]
Shawn McCarney494ef032019-11-07 15:56:50 -060034)
Shawn McCarney4c94bc72019-12-13 17:49:31 -060035
36phosphor_regulators = executable(
37 'phosphor-regulators',
Shawn McCarney7c5d7b22020-04-03 18:50:13 -050038 'journal.cpp',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060039 'main.cpp',
40 dependencies: [
Shawn McCarney7c5d7b22020-04-03 18:50:13 -050041 libi2c_dep,
42 phosphor_logging,
Shawn McCarney4c94bc72019-12-13 17:49:31 -060043 sdbusplus,
Shawn McCarney7c5d7b22020-04-03 18:50:13 -050044 sdeventplus
Shawn McCarney4c94bc72019-12-13 17:49:31 -060045 ],
46 link_with: phosphor_regulators_library,
47 implicit_include_directories: false,
48 include_directories: phosphor_regulators_include_directories,
49 install: true
50)