blob: 790e1d216725bec11589b7019ba7c6a759b46ea2 [file] [log] [blame]
Lei YU0bf1b782019-08-29 16:02:30 +08001psutils = executable(
2 'psutils',
Lei YU0bf1b782019-08-29 16:02:30 +08003 'version.cpp',
Lei YUd19df252019-10-25 17:31:52 +08004 'updater.cpp',
Faisal Awada5a582d32024-11-15 14:11:44 -06005 'aei_updater.cpp',
Shawn McCarney14572cf2024-11-06 12:17:57 -06006 'utils.cpp',
Shawn McCarney0fbc2f62024-11-05 17:01:53 -06007 'model.cpp',
Lei YU0bf1b782019-08-29 16:02:30 +08008 'main.cpp',
9 dependencies: [
Patrick Williams888bebd2023-05-31 19:19:49 -050010 cli11_dep,
11 libi2c_dep,
12 nlohmann_json_dep,
Lei YU0bf1b782019-08-29 16:02:30 +080013 phosphor_dbus_interfaces,
14 phosphor_logging,
15 ],
Lei YU7c2fbbb2019-11-06 14:56:02 +080016 include_directories: [libpower_inc, libi2c_inc],
Lei YU0bf1b782019-08-29 16:02:30 +080017 install: true,
Patrick Williams516e22f2025-02-01 08:37:12 -050018 link_with: [libpower],
Lei YU0bf1b782019-08-29 16:02:30 +080019)
Lei YU093b5912019-10-22 15:28:51 +080020
Patrick Williams5c6a6932023-11-29 06:44:29 -060021if get_option('tests').allowed()
Shawn McCarneyff481432020-02-13 10:38:44 -060022 subdir('test')
23endif