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_examples = executable(
|
|
'test_examples',
|
|
'test/examples.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_examples', test_examples)
|
|
test('test_get', test_get)
|
|
test('test_parse', test_parse)
|