From f93a441065a611cc32874dde67e53a8295c87baf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 May 2018 15:48:25 +0200 Subject: [WIP] Add validation --- meson.build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 326e5fbf..0620db02 100644 --- a/meson.build +++ b/meson.build @@ -58,6 +58,7 @@ if get_option('strict') '/wd4710', # function not inlined '/wd4711', # function selected for automatic inline expansion '/wd4774', # format string is not a string literal + '/wd4777', # format string '%lld' requires a '__int64_ argument '/wd4800', # implicit conversion from int to bool '/wd4820', # padding added after construct '/wd4996', # POSIX name for this item is deprecated @@ -118,6 +119,7 @@ sources = [ 'src/syntax.c', 'src/system.c', 'src/uri.c', + 'src/validate.c', 'src/value.c', 'src/world.c', 'src/writer.c', @@ -179,6 +181,10 @@ exess_dep = dependency('exess-0', version: '>= 0.0.1', fallback: ['exess', 'exess_dep']) +rerex_dep = dependency('rerex-0', + version: '>= 0.0.1', + fallback: ['rerex', 'rerex_dep']) + # Build shared and/or static library/libraries libserd = build_target( library_name, @@ -186,7 +192,7 @@ libserd = build_target( version: meson.project_version(), include_directories: include_directories('include', 'src'), c_args: c_warnings + platform_args + library_args, - dependencies: [exess_dep, m_dep, zix_dep], + dependencies: [exess_dep, m_dep, rerex_dep, zix_dep], gnu_symbol_visibility: 'hidden', install: true, target_type: library_type) @@ -225,6 +231,8 @@ if get_option('tests') subdir('test') endif +subdir('schemas') + if not meson.is_subproject() and meson.version().version_compare('>=0.53.0') summary('Tests', get_option('tests'), bool_yn: true) summary('Tools', get_option('tools'), bool_yn: true) -- cgit v1.2.1