Shawn McCarney | 623f5a8 | 2019-11-03 08:55:40 -0600 | [diff] [blame] | 1 | phosphor_regulators_include_directories = include_directories( |
| 2 | '.', |
| 3 | 'actions' |
| 4 | ) |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 5 | |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 6 | phosphor_regulators_library_source_files = [ |
Shawn McCarney | 6d59773 | 2019-11-13 17:40:07 -0600 | [diff] [blame] | 7 | 'id_map.cpp', |
Shawn McCarney | 6663abf | 2020-02-29 17:25:48 -0600 | [diff] [blame] | 8 | 'pmbus_utils.cpp', |
Shawn McCarney | 6d59773 | 2019-11-13 17:40:07 -0600 | [diff] [blame] | 9 | |
Shawn McCarney | b38da99 | 2020-02-13 08:55:46 -0600 | [diff] [blame] | 10 | 'actions/if_action.cpp', |
Shawn McCarney | 8215be3 | 2020-02-19 10:00:57 -0600 | [diff] [blame] | 11 | 'actions/i2c_compare_bit_action.cpp', |
Shawn McCarney | 5ad5394 | 2020-02-20 09:33:55 -0600 | [diff] [blame] | 12 | 'actions/i2c_compare_byte_action.cpp', |
Shawn McCarney | f1c9061 | 2020-02-24 09:56:53 -0600 | [diff] [blame] | 13 | 'actions/i2c_compare_bytes_action.cpp', |
Shawn McCarney | 88d5b69 | 2020-02-25 10:39:02 -0600 | [diff] [blame] | 14 | 'actions/i2c_write_bit_action.cpp', |
Shawn McCarney | 83169bf | 2020-02-24 15:59:34 -0600 | [diff] [blame] | 15 | 'actions/i2c_write_byte_action.cpp', |
Shawn McCarney | a8119f2 | 2020-03-02 16:20:18 -0600 | [diff] [blame] | 16 | 'actions/i2c_write_bytes_action.cpp', |
| 17 | 'actions/pmbus_write_vout_command_action.cpp' |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 18 | ] |
| 19 | |
| 20 | phosphor_regulators_library = static_library( |
| 21 | 'phosphor-regulators', |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 22 | phosphor_regulators_library_source_files, |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 23 | implicit_include_directories: false, |
Shawn McCarney | afb7fc3 | 2019-12-11 19:42:03 -0600 | [diff] [blame] | 24 | include_directories: [ |
| 25 | phosphor_regulators_include_directories, |
| 26 | libi2c_inc |
| 27 | ] |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 28 | ) |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 29 | |
| 30 | phosphor_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 | ) |