blob: 121bf45cdcf36c335f1cc034c1e68eb095522921 [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
9 'actions/if_action.cpp'
Shawn McCarney494ef032019-11-07 15:56:50 -060010]
11
12phosphor_regulators_library = static_library(
13 'phosphor-regulators',
Shawn McCarney4c94bc72019-12-13 17:49:31 -060014 phosphor_regulators_library_source_files,
Shawn McCarney494ef032019-11-07 15:56:50 -060015 implicit_include_directories: false,
Shawn McCarneyafb7fc32019-12-11 19:42:03 -060016 include_directories: [
17 phosphor_regulators_include_directories,
18 libi2c_inc
19 ]
Shawn McCarney494ef032019-11-07 15:56:50 -060020)
Shawn McCarney4c94bc72019-12-13 17:49:31 -060021
22phosphor_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)