generated from Riley/Conan-C
Add cjson dependency and enhance todoitem management: refactor structures and functions
This commit is contained in:
parent
ec75e0723e
commit
2891fea4e9
7 changed files with 37 additions and 16 deletions
|
|
@ -5,9 +5,11 @@ target_name = 'main'
|
|||
|
||||
# self.requires("zlib/1.2.11")
|
||||
cwalk = dependency('cwalk', version : '1.2.8', static: true, required: true)
|
||||
# self.requires("cjson/1.7.18")
|
||||
cjson = dependency('cjson', version : '1.7.18', static: true, required: true)
|
||||
|
||||
|
||||
files = files('src/main.c', 'src/paths.c', 'src/log.c')
|
||||
files = files('src/main.c', 'src/paths.c', 'src/log.c',
|
||||
'src/todoitem.c', 'src/todoitem_fs.c')
|
||||
|
||||
if get_option('buildtype') == 'debug'
|
||||
if CC.has_argument('-fsanitize=address') and CC.has_link_argument('-fsanitize=address')
|
||||
|
|
@ -18,6 +20,6 @@ if get_option('buildtype') == 'debug'
|
|||
endif
|
||||
|
||||
|
||||
executable(target_name, files, dependencies: [cwalk], include_directories: include_directories('src/include'))
|
||||
executable(target_name, files, dependencies: [cwalk, cjson], include_directories: include_directories('src/include'))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue