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.

pull/15/head
Jussi Pakkanen 11 years ago
parent e0c4447666
commit 645ab7fea8
  1. 7
      test cases/common/53 subproject subproject/meson.build
  2. 5
      test cases/common/53 subproject subproject/prog.c
  3. 4
      test cases/common/53 subproject subproject/subprojects/a/a.c
  4. 4
      test cases/common/53 subproject subproject/subprojects/a/meson.build
  5. 3
      test cases/common/53 subproject subproject/subprojects/b/b.c
  6. 3
      test cases/common/53 subproject subproject/subprojects/b/meson.build

@ -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 @@
project('b', 'c')
lb = shared_library('b', 'b.c')
Loading…
Cancel
Save