This commit is contained in:
+19
-1
@@ -1,8 +1,22 @@
|
||||
project('evol-headers', 'c',
|
||||
default_options : [ 'c_std=c23' ])
|
||||
default_options : [
|
||||
'c_std=c23',
|
||||
# 'warning_level=everything',
|
||||
# 'werror=true'
|
||||
]
|
||||
)
|
||||
|
||||
headers_include = include_directories('.')
|
||||
|
||||
disabled_warnings = {
|
||||
'clang': [
|
||||
'unused-macros',
|
||||
'reserved-macro-identifier',
|
||||
'pre-c11-compat',
|
||||
'pre-c23-compat',
|
||||
]
|
||||
}
|
||||
|
||||
evh_c_args = []
|
||||
buildtype = get_option('buildtype')
|
||||
if buildtype == 'debug'
|
||||
@@ -20,6 +34,10 @@ elif cc.get_id() == 'clang'
|
||||
evh_c_args += '-DEV_CC_CLANG=1'
|
||||
endif
|
||||
|
||||
foreach w:disabled_warnings[cc.get_id()]
|
||||
evh_c_args += '-Wno-'+w
|
||||
endforeach
|
||||
|
||||
# All other targets should follow the same template
|
||||
str_lib = static_library('ev_str', files('buildfiles/ev_str.c'), c_args: evh_c_args)
|
||||
vec_lib = static_library('ev_vec', files('buildfiles/ev_vec.c'), c_args: evh_c_args)
|
||||
|
||||
Reference in New Issue
Block a user