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', |
| 8 | |
| 9 | 'actions/if_action.cpp' |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 10 | ] |
| 11 | |
| 12 | phosphor_regulators_library = static_library( |
| 13 | 'phosphor-regulators', |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 14 | phosphor_regulators_library_source_files, |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 15 | implicit_include_directories: false, |
Shawn McCarney | afb7fc3 | 2019-12-11 19:42:03 -0600 | [diff] [blame] | 16 | include_directories: [ |
| 17 | phosphor_regulators_include_directories, |
| 18 | libi2c_inc |
| 19 | ] |
Shawn McCarney | 494ef03 | 2019-11-07 15:56:50 -0600 | [diff] [blame] | 20 | ) |
Shawn McCarney | 4c94bc7 | 2019-12-13 17:49:31 -0600 | [diff] [blame] | 21 | |
| 22 | phosphor_regulators = executable( |
| 23 | 'phosphor-regulators', |
| 24 | 'main.cpp', |
| 25 | dependencies: [ |
| 26 | sdbusplus, |
| 27 | sdeventplus, |
| 28 | libi2c_dep |
| 29 | ], |
| 30 | link_with: phosphor_regulators_library, |
| 31 | implicit_include_directories: false, |
| 32 | include_directories: phosphor_regulators_include_directories, |
| 33 | install: true |
| 34 | ) |