parent
f220a5dd86
commit
004cc1493b
13 changed files with 56 additions and 0 deletions
@ -1,3 +1,7 @@ |
||||
project('mainproj', 'c') |
||||
|
||||
subproject('zlib') |
||||
|
||||
executable('grabprog', files('src/subprojects/prog.c')) |
||||
executable('grabprog2', files('src/subprojects/foo/prog2.c')) |
||||
subdir('src') |
||||
|
@ -0,0 +1,2 @@ |
||||
executable('grabprog3', files('subprojects/prog.c')) |
||||
executable('grabprog4', files('subprojects/foo/prog2.c')) |
@ -0,0 +1,7 @@ |
||||
#include<stdio.h> |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("Do not have a file layout like this in your own projects.\n"); |
||||
printf("This is only to test that this works.\n"); |
||||
return 0; |
||||
} |
@ -0,0 +1,7 @@ |
||||
#include<stdio.h> |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("Do not have a file layout like this in your own projects.\n"); |
||||
printf("This is only to test that this works.\n"); |
||||
return 0; |
||||
} |
@ -0,0 +1,3 @@ |
||||
int dummy_func() { |
||||
return 42; |
||||
} |
@ -1,3 +1,5 @@ |
||||
project('mainproj', 'c') |
||||
|
||||
# Try to grab a file from a parent project. |
||||
|
||||
subproject('a') |
||||
|
@ -0,0 +1,7 @@ |
||||
project('grabber', 'c') |
||||
|
||||
# Try to grab a file from a child subproject. |
||||
|
||||
subproject('foo') |
||||
|
||||
executable('foo', 'subprojects/foo/sub.c') |
@ -0,0 +1,3 @@ |
||||
project('foo', 'c') |
||||
|
||||
message('I do nothing.') |
@ -0,0 +1,6 @@ |
||||
#include<stdio.h> |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("I am a subproject executable file.\n"); |
||||
return 0; |
||||
} |
@ -0,0 +1,3 @@ |
||||
project('master', 'c') |
||||
|
||||
subproject('a') |
@ -0,0 +1,3 @@ |
||||
project('a', 'c') |
||||
|
||||
executable('sneaky', '../b/sneaky.c') |
@ -0,0 +1,3 @@ |
||||
projecT('b', 'c') |
||||
|
||||
message('I do nothing.') |
@ -0,0 +1,6 @@ |
||||
#include<stdio.h> |
||||
|
||||
int main(int argc, char **argv) { |
||||
printf("I can only come into existance via trickery.\n"); |
||||
return 0; |
||||
} |
Loading…
Reference in new issue