test cases/unit/31 forcefallback/meson.build
raw| 1 | project('mainproj', 'c', |
| 2 | default_options : []) |
| 3 | |
| 4 | zlib_dep = dependency('zlib', fallback: ['notzlib', 'zlib_dep']) |
| 5 | notfound_dep = dependency('cannotabletofind', fallback: ['definitelynotfound', 'some_var'], required : false) |
| 6 | |
| 7 | test_not_zlib = executable('test_not_zlib', ['test_not_zlib.c'], dependencies: [zlib_dep, notfound_dep]) |
| 8 | |
| 9 | test('test_not_zlib', test_not_zlib) |
| 10 | |
| 11 | false_bin = find_program('false') |
| 12 | test('test_not_false', false_bin) |