blob: b652f081651719ec7e39de7b2101a9a1770af140 [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 McCarney6d597732019-11-13 17:40:07 -06007 'id_map.cpp',
Shawn McCarney6663abf2020-02-29 17:25:48 -06008 'pmbus_utils.cpp',
Shawn McCarney6d597732019-11-13 17:40:07 -06009
Shawn McCarneyb38da992020-02-13 08:55:46 -060010 'actions/if_action.cpp',
Shawn McCarney8215be32020-02-19 10:00:57 -060011 'actions/i2c_compare_bit_action.cpp',
Shawn McCarney5ad53942020-02-20 09:33:55 -060012 'actions/i2c_compare_byte_action.cpp',
Shawn McCarneyf1c90612020-02-24 09:56:53 -060013 'actions/i2c_compare_bytes_action.cpp',
Shawn McCarney88d5b692020-02-25 10:39:02 -060014 'actions/i2c_write_bit_action.cpp',
Shawn McCarney83169bf2020-02-24 15:59:34 -060015 'actions/i2c_write_byte_action.cpp',
Shawn McCarneya8119f22020-03-02 16:20:18 -060016 'actions/i2c_write_bytes_action.cpp',
17 'actions/pmbus_write_vout_command_action.cpp'
Shawn McCarney494ef032019-11-07 15:56:50 -060018]
19
20phosphor_regulators_library = static_library(
21 'phosphor-regulators',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060022 phosphor_regulators_library_source_files,
Shawn McCarney494ef032019-11-07 15:56:50 -060023 implicit_include_directories: false,
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060024 include_directories: [
25 phosphor_regulators_include_directories,
26 libi2c_inc
27 ]
Shawn McCarney494ef032019-11-07 15:56:50 -060028)
Shawn McCarney4c94bc72019-12-13 17:49:31 -060029
30phosphor_regulators = executable(
31 'phosphor-regulators',
32 'main.cpp',
33 dependencies: [
34 sdbusplus,
35 sdeventplus,
36 libi2c_dep
37 ],
38 link_with: phosphor_regulators_library,
39 implicit_include_directories: false,
40 include_directories: phosphor_regulators_include_directories,
41 install: true
42)