parent
8d45972ee3
commit
1c0a735e00
8 changed files with 35 additions and 2 deletions
@ -0,0 +1,6 @@ |
||||
project('statchain', 'c') |
||||
|
||||
subdir('subdir') |
||||
statlib = static_library('stat', 'stat.c', link_with : shlib) |
||||
exe = executable('prog', 'prog.c', link_with : statlib) |
||||
test('runtest', exe) |
@ -0,0 +1,5 @@ |
||||
int statlibfunc(); |
||||
|
||||
int main(int argc, char **argv) { |
||||
return statlibfunc() == 42 ? 0 : 1; |
||||
} |
@ -0,0 +1,5 @@ |
||||
int shlibfunc(); |
||||
|
||||
int statlibfunc() { |
||||
return shlibfunc(); |
||||
} |
@ -0,0 +1 @@ |
||||
shlib = shared_library('shar', 'shlib.c') |
@ -0,0 +1,3 @@ |
||||
int shlibfunc() { |
||||
return 42; |
||||
} |
Loading…
Reference in new issue