blob: f7c491e50c2cfb4b2f6efd5597cda30d87353b69 [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',
Faisal Awadafe5b5c62025-03-22 10:50:01 -05008 'validator.cpp',
Lei YU0bf1b782019-08-29 16:02:30 +08009 'main.cpp',
10 dependencies: [
Patrick Williams888bebd2023-05-31 19:19:49 -050011 cli11_dep,
12 libi2c_dep,
13 nlohmann_json_dep,
Lei YU0bf1b782019-08-29 16:02:30 +080014 phosphor_dbus_interfaces,
15 phosphor_logging,
16 ],
Lei YU7c2fbbb2019-11-06 14:56:02 +080017 include_directories: [libpower_inc, libi2c_inc],
Lei YU0bf1b782019-08-29 16:02:30 +080018 install: true,
Patrick Williams516e22f2025-02-01 08:37:12 -050019 link_with: [libpower],
Lei YU0bf1b782019-08-29 16:02:30 +080020)
Lei YU093b5912019-10-22 15:28:51 +080021
Patrick Williams5c6a6932023-11-29 06:44:29 -060022if get_option('tests').allowed()
Shawn McCarneyff481432020-02-13 10:38:44 -060023 subdir('test')
24endif