blob: 81337ada9136d9f247e76e8595718adcc8066064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
project('multiwrap', 'c')
# Using multiple downloaded projects for great justice.
if meson.get_compiler('c').get_id() != 'msvc'
add_global_arguments('-std=c99', language : 'c')
extra_libs = ['-lm']
else
extra_libs = []
endif
luap = subproject('lua')
pngp = subproject('libpng')
executable('prog', 'prog.c',
include_directories : [pngp.get_variable('incdir'), luap.get_variable('incdir')],
link_with :[pngp.get_variable('libpng'), luap.get_variable('lualib')],
link_args : extra_libs)
|