blob: d9734c30697a5f39b763855c6faeacd079094167 [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',
8
Shawn McCarneyb38da992020-02-13 08:55:46 -06009 'actions/if_action.cpp',
Shawn McCarney8215be32020-02-19 10:00:57 -060010 'actions/i2c_compare_bit_action.cpp',
Shawn McCarney5ad53942020-02-20 09:33:55 -060011 'actions/i2c_compare_byte_action.cpp',
Shawn McCarneyf1c90612020-02-24 09:56:53 -060012 'actions/i2c_compare_bytes_action.cpp',
Shawn McCarney88d5b692020-02-25 10:39:02 -060013 'actions/i2c_write_bit_action.cpp',
Shawn McCarney83169bf2020-02-24 15:59:34 -060014 'actions/i2c_write_byte_action.cpp',
15 'actions/i2c_write_bytes_action.cpp'
Shawn McCarney494ef032019-11-07 15:56:50 -060016]
17
18phosphor_regulators_library = static_library(
19 'phosphor-regulators',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060020 phosphor_regulators_library_source_files,
Shawn McCarney494ef032019-11-07 15:56:50 -060021 implicit_include_directories: false,
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060022 include_directories: [
23 phosphor_regulators_include_directories,
24 libi2c_inc
25 ]
Shawn McCarney494ef032019-11-07 15:56:50 -060026)
Shawn McCarney4c94bc72019-12-13 17:49:31 -060027
28phosphor_regulators = executable(
29 'phosphor-regulators',
30 'main.cpp',
31 dependencies: [
32 sdbusplus,
33 sdeventplus,
34 libi2c_dep
35 ],
36 link_with: phosphor_regulators_library,
37 implicit_include_directories: false,
38 include_directories: phosphor_regulators_include_directories,
39 install: true
40)