@@ -11,6 +11,8 @@ project(
1111 version : ' 1.0' ,
1212 license : ' LGPLv2+' ,
1313 default_options : [
14+ ' c_std=gnu99' ,
15+ ' warning_level=1' ,
1416 ' buildtype=release' ,
1517 ' prefix=/usr' ,
1618 ]
@@ -34,12 +36,12 @@ pkgconfiglibdir = get_option('pkgconfiglibdir') == '' ? join_paths(libdir, 'pkgc
3436conf = configuration_data ()
3537
3638# Check for libuuid availability
37- libuuid = dependency (' uuid' , required : true )
38- conf.set(' CONFIG_LIBUUID' , libuuid .found(), description : ' Is libuuid required?' )
39+ libuuid_dep = dependency (' uuid' , required : true )
40+ conf.set(' CONFIG_LIBUUID' , libuuid_dep .found(), description : ' Is libuuid required?' )
3941
4042# Check for json-c availability
41- json_c = dependency (' json-c' , version : ' >=0.13' , fallback : [' json-c' , ' json_c_dep' ])
42- conf.set(' CONFIG_JSONC' , json_c .found(), description : ' Is json-c required?' )
43+ json_c_dep = dependency (' json-c' , version : ' >=0.13' , fallback : [' json-c' , ' json_c_dep' ])
44+ conf.set(' CONFIG_JSONC' , json_c_dep .found(), description : ' Is json-c required?' )
4345
4446# local (cross-compilable) implementations of ccan configure steps
4547conf.set10(
@@ -133,8 +135,9 @@ configure_file(
133135
134136################################################################################
135137add_project_arguments ([' -fomit-frame-pointer' , ' -D_GNU_SOURCE' ,
136- ' -include' , ' config.h' ], language : ' c' )
137- incdir = include_directories ([' ccan' , ' src' ])
138+ ' -include' , ' libnvme/config.h' ], language : ' c' )
139+ incdir = include_directories ([' .' , ' ccan' , ' src' ])
140+ internal_incdir = include_directories (' libnvme' )
138141
139142################################################################################
140143sources = []
0 commit comments