Yo dawg, we heard you liked subprojects so we put subprojects in your subprojects so now you can use subprojects when you are using subprojects.
parent
e0c4447666
commit
645ab7fea8
6 changed files with 26 additions and 0 deletions
@ -0,0 +1,7 @@ |
||||
project('sub sub', 'c') |
||||
|
||||
a = subproject('a') |
||||
lib = a.get_variable('l') |
||||
|
||||
exe = executable('prog', 'prog.c', link_with : lib) |
||||
test('basic', exe) |
@ -0,0 +1,5 @@ |
||||
int func(); |
||||
|
||||
int main(int argc, char **argv) { |
||||
return func() == 42 ? 0 : 1; |
||||
} |
@ -0,0 +1,4 @@ |
||||
int func2(); |
||||
|
||||
int func() { return func2(); } |
||||
|
@ -0,0 +1,4 @@ |
||||
project('a', 'c') |
||||
|
||||
b = subproject('b') |
||||
l = shared_library('a', 'a.c', link_with : b.get_variable('lb')) |
@ -0,0 +1,3 @@ |
||||
int func2() { |
||||
return 42; |
||||
} |
@ -0,0 +1,3 @@ |
||||
project('b', 'c') |
||||
|
||||
lb = shared_library('b', 'b.c') |
Loading…
Reference in new issue