test cases/common/284 test args and depends in path/meson.build
raw| 1 | project('test-args-and-depends-in-path', 'c') |
| 2 | |
| 3 | subdir('libs') |
| 4 | |
| 5 | dl_dep = dependency('dl', required: false) |
| 6 | |
| 7 | fs = import('fs') |
| 8 | |
| 9 | test_exe = executable('test-exe', |
| 10 | c_args: [ |
| 11 | '-DLIBA=' + fs.name(lib_a.full_path()), |
| 12 | '-DLIBB=' + fs.name(lib_b.full_path()), |
| 13 | ], |
| 14 | sources: ['test.c'], |
| 15 | dependencies: [dl_dep]) |
| 16 | |
| 17 | test ('test', test_exe, |
| 18 | args: [lib_a], |
| 19 | depends: [lib_b]) |