generated from Riley/Conan-C
Initial commit
This commit is contained in:
commit
605a30e2f8
13 changed files with 240 additions and 0 deletions
23
meson.build
Normal file
23
meson.build
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
project('tutorial', 'c')
|
||||
|
||||
CC = meson.get_compiler('c')
|
||||
target_name = 'main'
|
||||
|
||||
|
||||
zlib = dependency('zlib', version : '1.2.11', static: true, required: true)
|
||||
|
||||
|
||||
files = files('src/main.c')
|
||||
|
||||
if get_option('buildtype') == 'debug'
|
||||
if CC.has_argument('-fsanitize=address') and CC.has_link_argument('-fsanitize=address')
|
||||
add_project_arguments('-fsanitize=address', '-fno-omit-frame-pointer', language: 'c')
|
||||
add_project_link_arguments('-fsanitize=address', language: 'c')
|
||||
endif
|
||||
add_project_arguments('-DDEBUG', language: 'c')
|
||||
endif
|
||||
|
||||
|
||||
executable(target_name, files, dependencies: [zlib], include_directories: include_directories('src/include'))
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue