blob: 41149da1b3b137516bbf6a0302c602ce033776a2 [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',
Lei YU0bf1b782019-08-29 16:02:30 +08006 'main.cpp',
7 dependencies: [
Patrick Williams888bebd2023-05-31 19:19:49 -05008 cli11_dep,
9 libi2c_dep,
10 nlohmann_json_dep,
Lei YU0bf1b782019-08-29 16:02:30 +080011 phosphor_dbus_interfaces,
12 phosphor_logging,
13 ],
Lei YU7c2fbbb2019-11-06 14:56:02 +080014 include_directories: [libpower_inc, libi2c_inc],
Lei YU0bf1b782019-08-29 16:02:30 +080015 install: true,
16 link_with: [
17 libpower,
18 ]
19)
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