C reference parsing library for Eno
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

71 lines
1.3 KiB

project(
'libeno',
'c',
default_options : [
'buildtype=debugoptimized',
'c_std=c89',
'warning_level=3'
],
license : 'LGPLv3+',
version : '0.1.0'
)
inc_eno = include_directories('include')
lib_eno = library(
'eno',
'lib/assemble.c',
'lib/compare.c',
'lib/debug.c',
'lib/error.c',
'lib/free.c',
'lib/get.c',
'lib/iterate.c',
'lib/parse.c',
'lib/query.c',
'lib/read.c',
'lib/resolve.c',
dependencies : dependency('icu-io'),
include_directories : inc_eno,
install : true,
soversion : '0',
version : meson.project_version()
)
install_headers('include/eno.h')
test_error_examples = executable(
'test_error_examples',
'test/error_examples.c',
'test/helpers.c',
include_directories : inc_eno,
link_with : lib_eno
)
test_examples = executable(
'test_examples',
'test/examples.c',
'test/helpers.c',
'test/serialize_external_ast.c',
'test/serialize_internal_ast.c',
include_directories : inc_eno,
link_with : lib_eno
)
test_get = executable(
'test_get',
'test/get.c',
include_directories : inc_eno,
link_with : lib_eno
)
test_parse = executable(
'test_parse',
'test/parse.c',
include_directories : inc_eno,
link_with : lib_eno
)
test('test_error_examples', test_error_examples)
test('test_examples', test_examples)
test('test_get', test_get)
test('test_parse', test_parse)