blob: 35034b3306bead8dffa78c8880cf020fdf98f614 [file] [log] [blame]
Brandon Wymand0a26bb2020-03-11 18:21:20 -05001install_subdir('configurations',
2 strip_directory: true,
3 install_dir: get_option('datadir')/'phosphor-psu-monitor')
Brandon Wyman2ad76bd2019-08-26 17:15:04 -05004
Brandon Wyman3f1242f2020-01-28 13:11:25 -06005phosphor_psu_monitor = executable(
Brandon Wyman2ad76bd2019-08-26 17:15:04 -05006 'phosphor-psu-monitor',
7 'main.cpp',
Brandon Wymana0f33ce2019-10-17 18:32:29 -05008 'psu_manager.cpp',
Brandon Wymanaed1f752019-11-25 18:10:52 -06009 'power_supply.cpp',
Brandon Wyman3f1242f2020-01-28 13:11:25 -060010 'util.cpp',
Brandon Wyman57939e82019-08-26 17:53:57 -050011 dependencies: [
Patrick Williams888bebd2023-05-31 19:19:49 -050012 cli11_dep,
Brandon Wymanb76ab242020-09-16 18:06:06 -050013 fmt,
B. J. Wyman681b2a32021-04-20 22:31:22 +000014 libgpiodcxx,
Patrick Williams888bebd2023-05-31 19:19:49 -050015 nlohmann_json_dep,
Adriana Kobylakc9b05732022-03-19 15:15:10 +000016 phosphor_dbus_interfaces,
Patrick Williams888bebd2023-05-31 19:19:49 -050017 phosphor_logging,
18 sdbusplus,
19 sdeventplus,
Brandon Wyman57939e82019-08-26 17:53:57 -050020 ],
Brandon Wymana0f33ce2019-10-17 18:32:29 -050021 include_directories: '..',
22 install: true,
23 link_with: [
24 libpower,
25 ]
26)
Brandon Wyman3f1242f2020-01-28 13:11:25 -060027
28power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp')
29
Patrick Williams5c6a6932023-11-29 06:44:29 -060030if get_option('tests').allowed()
Brandon Wyman3f1242f2020-01-28 13:11:25 -060031 subdir('test')
32endif