blob: e329393e33aade8942dcabec9f3b7a90871902cc [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',
Lei YU0bf1b782019-08-29 16:02:30 +08005 'main.cpp',
6 dependencies: [
Patrick Williams888bebd2023-05-31 19:19:49 -05007 cli11_dep,
8 libi2c_dep,
9 nlohmann_json_dep,
Lei YU0bf1b782019-08-29 16:02:30 +080010 phosphor_dbus_interfaces,
11 phosphor_logging,
12 ],
Lei YU7c2fbbb2019-11-06 14:56:02 +080013 include_directories: [libpower_inc, libi2c_inc],
Lei YU0bf1b782019-08-29 16:02:30 +080014 install: true,
15 link_with: [
16 libpower,
17 ]
18)
Lei YU093b5912019-10-22 15:28:51 +080019
Patrick Williams5c6a6932023-11-29 06:44:29 -060020if get_option('tests').allowed()
Shawn McCarneyff481432020-02-13 10:38:44 -060021 subdir('test')
22endif