parent
24890bac98
commit
6662f36ed3
4 changed files with 16 additions and 22 deletions
@ -1,18 +1,12 @@ |
||||
project('multiwrap', 'c') |
||||
project('multiwrap', 'c', |
||||
default_options : 'c_std=c99') |
||||
|
||||
# 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 |
||||
cc = meson.get_compiler('c') |
||||
|
||||
luap = subproject('lua') |
||||
pngp = subproject('libpng') |
||||
luadep = dependency('lua', fallback : ['lua', 'lua_dep']) |
||||
pngdep = dependency('libpng', fallback : ['libpng', 'pngdep']) |
||||
|
||||
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) |
||||
dependencies : [pngdep, luadep]) |
||||
|
@ -1,10 +1,10 @@ |
||||
[wrap-file] |
||||
directory = zlib-1.2.8 |
||||
|
||||
source_url = http://zlib.net/zlib-1.2.8.tar.gz |
||||
source_url = http://zlib.net/fossils/zlib-1.2.8.tar.gz |
||||
source_filename = zlib-1.2.8.tar.gz |
||||
source_hash = 36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d |
||||
|
||||
patch_url = http://wrapdb.mesonbuild.com/v1/projects/zlib/1.2.8/4/get_zip |
||||
patch_filename = zlib-1.2.8-4-wrap.zip |
||||
patch_hash = 2327a42c8f73a4289ee8c9cd4abc43b324d0decc28d6e609e927f0a50321af4a |
||||
patch_url = https://wrapdb.mesonbuild.com/v1/projects/zlib/1.2.8/8/get_zip |
||||
patch_filename = zlib-1.2.8-8-wrap.zip |
||||
patch_hash = 17c52a0e0c59ce926d3959005d5cd8178c6c7e2c9a4a1304279a8320c955ac60 |
||||
|
Loading…
Reference in new issue