Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 1 | test('phosphor-power-supply-tests', |
| 2 | executable('phosphor-power-supply-tests', |
| 3 | 'power_supply_tests.cpp', |
Brandon Wyman | c332442 | 2022-03-24 20:30:57 +0000 | [diff] [blame] | 4 | '../record_manager.cpp', |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 5 | 'mock.cpp', |
| 6 | dependencies: [ |
| 7 | gmock, |
| 8 | gtest, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 9 | libgpiodcxx, |
| 10 | nlohmann_json_dep, |
| 11 | phosphor_logging, |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 12 | sdbusplus, |
| 13 | sdeventplus, |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 14 | ], |
| 15 | implicit_include_directories: false, |
| 16 | include_directories: [ |
| 17 | '.', |
| 18 | '..', |
| 19 | '../..' |
| 20 | ], |
| 21 | link_args: dynamic_linker, |
Brandon Wyman | 1d7a7df | 2020-03-26 10:14:05 -0500 | [diff] [blame] | 22 | link_with: [ |
| 23 | libpower, |
| 24 | ], |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 25 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 26 | objects: power_supply, |
| 27 | ) |
| 28 | ) |