parent
550a03ee24
commit
0a4609031c
6 changed files with 59 additions and 24 deletions
@ -1,2 +0,0 @@ |
||||
project('std_remains', 'c', default_options: ['c_std=c99']) |
||||
executable('prog', 'prog.c') |
@ -0,0 +1,14 @@ |
||||
project('std_remains', 'c', default_options: ['c_std=c99']) |
||||
|
||||
executable('prog', 'prog.c') |
||||
|
||||
# Check that native: true does not affect the use of c_std in |
||||
# non-cross builds |
||||
|
||||
if not meson.is_cross_build() |
||||
executable('prog2', 'prog.c', native: true) |
||||
|
||||
# Check that even deps marked as native are found |
||||
# by default when not cross compiling. |
||||
dependency('ylib', method: 'pkg-config') |
||||
endif |
@ -0,0 +1,13 @@ |
||||
prefix=/usr |
||||
exec_prefix=${prefix} |
||||
libdir=${prefix}/lib/x86_64-linux-gnu |
||||
sharedlibdir=${libdir} |
||||
includedir=${prefix}/include |
||||
|
||||
Name: ylib |
||||
Description: ylib compression library |
||||
Version: 1.2.3 |
||||
|
||||
Requires: |
||||
Libs: -L${libdir} -L${sharedlibdir} -ly |
||||
Cflags: -I${includedir} |
@ -1,3 +1,12 @@ |
||||
#pragma once |
||||
|
||||
int add_numbers(int a, int b); |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
int add_numbers(int a, int b); |
||||
|
||||
/* End Extern "C" and Include Guard */ |
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
Loading…
Reference in new issue