parent
5cbc8f866c
commit
ca30550e06
6 changed files with 35 additions and 2 deletions
@ -0,0 +1,6 @@ |
||||
project('CaSe DePenDenCy In Wrap', 'c') |
||||
|
||||
d = dependency('UP_down') |
||||
|
||||
e = executable('prog', 'prog.c', dependencies: d) |
||||
test('prog', e) |
@ -0,0 +1,13 @@ |
||||
#include<up_down.h> |
||||
#include<stdio.h> |
||||
|
||||
int main(int argc, char **argv) { |
||||
if(argc == 42) { |
||||
printf("Very sneaky, %s\n", argv[0]); |
||||
} |
||||
#ifdef UP_IS_DOWN |
||||
return 0; |
||||
#else |
||||
return 1; |
||||
#endif |
||||
} |
@ -0,0 +1,5 @@ |
||||
[wrap-file] |
||||
directory = up_down |
||||
|
||||
[provide] |
||||
UP_down = up_down_dep |
@ -0,0 +1,3 @@ |
||||
project('up down', 'c') |
||||
|
||||
up_down_dep = declare_dependency(include_directories: '.') |
@ -0,0 +1,3 @@ |
||||
#pragma once |
||||
|
||||
#define UP_IS_DOWN |
Loading…
Reference in new issue