blob: 542eadb6cefc3da264cf45e7da9e7dbc9b827ff4 [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',
Shawn McCarney14572cf2024-11-06 12:17:57 -06005 'utils.cpp',
Shawn McCarney0fbc2f62024-11-05 17:01:53 -06006 'model.cpp',
Lei YU0bf1b782019-08-29 16:02:30 +08007 'main.cpp',
8 dependencies: [
Patrick Williams888bebd2023-05-31 19:19:49 -05009 cli11_dep,
10 libi2c_dep,
11 nlohmann_json_dep,
Lei YU0bf1b782019-08-29 16:02:30 +080012 phosphor_dbus_interfaces,
13 phosphor_logging,
14 ],
Lei YU7c2fbbb2019-11-06 14:56:02 +080015 include_directories: [libpower_inc, libi2c_inc],
Lei YU0bf1b782019-08-29 16:02:30 +080016 install: true,
17 link_with: [
18 libpower,
19 ]
20)
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