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', |
| 4 | 'mock.cpp', |
| 5 | dependencies: [ |
| 6 | gmock, |
| 7 | gtest, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 8 | libgpiodcxx, |
| 9 | nlohmann_json_dep, |
| 10 | phosphor_logging, |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 11 | sdbusplus, |
| 12 | sdeventplus, |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 13 | ], |
| 14 | implicit_include_directories: false, |
| 15 | include_directories: [ |
| 16 | '.', |
| 17 | '..', |
| 18 | '../..' |
| 19 | ], |
| 20 | link_args: dynamic_linker, |
Brandon Wyman | 1d7a7df | 2020-03-26 10:14:05 -0500 | [diff] [blame] | 21 | link_with: [ |
| 22 | libpower, |
| 23 | ], |
Patrick Williams | 5c6a693 | 2023-11-29 06:44:29 -0600 | [diff] [blame] | 24 | build_rpath: get_option('oe-sdk').allowed() ? rpath : '', |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 25 | objects: power_supply, |
| 26 | ) |
| 27 | ) |