| 1 |
project('mainproj', 'c', |
| 2 |
default_options : ['wrap_mode=nodownload'], |
| 3 |
) |
| 4 |
|
| 5 |
if not find_program('patch', required : false).found() and not find_program('git', required : false).found() |
| 6 |
error('MESON_SKIP_TEST: patch/git not found.') |
| 7 |
endif |
| 8 |
|
| 9 |
subproject('zlib') |
| 10 |
foo = subproject('foo') |
| 11 |
bar = subproject('bar') |
| 12 |
|
| 13 |
libfoo = foo.get_variable('libfoo') |
| 14 |
libbar = bar.get_variable('libbar') |
| 15 |
|
| 16 |
executable('grabprog', files('src/subprojects/prog.c')) |
| 17 |
executable('grabprog2', files('src/subprojects/foo/prog2.c')) |
| 18 |
subdir('src') |
| 19 |
|
| 20 |
subproject('patchdir') |
| 21 |
|
| 22 |
exe = subproject('patchfile').get_variable('foo_exe') |
| 23 |
test('test_foo', exe) |