Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 1 | psutils = executable( |
| 2 | 'psutils', |
Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 3 | 'version.cpp', |
Lei YU | d19df25 | 2019-10-25 17:31:52 +0800 | [diff] [blame] | 4 | 'updater.cpp', |
Shawn McCarney | 14572cf | 2024-11-06 12:17:57 -0600 | [diff] [blame^] | 5 | 'utils.cpp', |
Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 6 | 'main.cpp', |
| 7 | dependencies: [ |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 8 | cli11_dep, |
| 9 | libi2c_dep, |
| 10 | nlohmann_json_dep, |
Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 11 | phosphor_dbus_interfaces, |
| 12 | phosphor_logging, |
| 13 | ], |
Lei YU | 7c2fbbb | 2019-11-06 14:56:02 +0800 | [diff] [blame] | 14 | include_directories: [libpower_inc, libi2c_inc], |
Lei YU | 0bf1b78 | 2019-08-29 16:02:30 +0800 | [diff] [blame] | 15 | install: true, |
| 16 | link_with: [ |
| 17 | libpower, |
| 18 | ] |
| 19 | ) |
Lei YU | 093b591 | 2019-10-22 15:28:51 +0800 | [diff] [blame] | 20 | |
Patrick Williams | 5c6a693 | 2023-11-29 06:44:29 -0600 | [diff] [blame] | 21 | if get_option('tests').allowed() |
Shawn McCarney | ff48143 | 2020-02-13 10:38:44 -0600 | [diff] [blame] | 22 | subdir('test') |
| 23 | endif |