parent
a4341b3004
commit
ae460f94ce
6 changed files with 34 additions and 0 deletions
@ -0,0 +1,8 @@ |
||||
project('mainproj', 'c', |
||||
default_options : ['wrap_mode=forcefallback']) |
||||
|
||||
zlib_dep = dependency('zlib', fallback: ['notzlib', 'zlib_dep']) |
||||
|
||||
test_not_zlib = executable('test_not_zlib', ['test_not_zlib.c'], dependencies: [zlib_dep]) |
||||
|
||||
test('test_not_zlib', test_not_zlib) |
@ -0,0 +1,7 @@ |
||||
project('notzlib', 'c') |
||||
|
||||
notzlib_sources = ['notzlib.c'] |
||||
|
||||
notzlib = library('notzlib', notzlib_sources) |
||||
|
||||
zlib_dep = declare_dependency(link_with: notzlib, include_directories: include_directories(['.']), sources: notzlib_sources) |
@ -0,0 +1,4 @@ |
||||
int not_a_zlib_function (void) |
||||
{ |
||||
return 42; |
||||
} |
@ -0,0 +1 @@ |
||||
int not_a_zlib_function (void); |
@ -0,0 +1,8 @@ |
||||
#include <notzlib.h> |
||||
|
||||
int main (int ac, char **av) |
||||
{ |
||||
if (not_a_zlib_function () != 42) |
||||
return 1; |
||||
return 0; |
||||
} |
Loading…
Reference in new issue