C reference parsing library for eno notation
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.
 
 
 

62 lines
1.1 KiB

  1. project(
  2. 'libeno',
  3. 'c',
  4. default_options : [
  5. 'buildtype=debugoptimized',
  6. 'c_std=c89',
  7. 'warning_level=3'
  8. ],
  9. license : 'LGPLv3+',
  10. version : '0.1.0'
  11. )
  12. inc_eno = include_directories('include')
  13. lib_eno = library(
  14. 'eno',
  15. 'lib/assemble.c',
  16. 'lib/compare.c',
  17. 'lib/debug.c',
  18. 'lib/error.c',
  19. 'lib/free.c',
  20. 'lib/get.c',
  21. 'lib/iterate.c',
  22. 'lib/parse.c',
  23. 'lib/query.c',
  24. 'lib/read.c',
  25. 'lib/resolve.c',
  26. dependencies : dependency('icu-io'),
  27. include_directories : inc_eno,
  28. install : true,
  29. soversion : '0',
  30. version : meson.project_version()
  31. )
  32. install_headers('include/eno.h')
  33. test_examples = executable(
  34. 'test_examples',
  35. 'test/examples.c',
  36. 'test/serialize_external_ast.c',
  37. 'test/serialize_internal_ast.c',
  38. include_directories : inc_eno,
  39. link_with : lib_eno
  40. )
  41. test_get = executable(
  42. 'test_get',
  43. 'test/get.c',
  44. include_directories : inc_eno,
  45. link_with : lib_eno
  46. )
  47. test_parse = executable(
  48. 'test_parse',
  49. 'test/parse.c',
  50. include_directories : inc_eno,
  51. link_with : lib_eno
  52. )
  53. test('test_examples', test_examples)
  54. test('test_get', test_get)
  55. test('test_parse', test_parse)