meson.build 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. project('ragel', 'c', 'cpp',
  2. version : '6.10'
  3. )
  4. conf = configuration_data()
  5. conf.set_quoted('PACKAGE', meson.project_name())
  6. conf.set_quoted('VERSION', meson.project_version())
  7. configure_file(
  8. output : 'config.h',
  9. configuration : conf
  10. )
  11. ragel_sources = files(
  12. 'ragel/buffer.h', 'ragel/cdcodegen.cpp', 'ragel/cdcodegen.h',
  13. 'ragel/cdfflat.cpp', 'ragel/cdfflat.h', 'ragel/cdfgoto.cpp',
  14. 'ragel/cdfgoto.h', 'ragel/cdflat.cpp', 'ragel/cdflat.h',
  15. 'ragel/cdftable.cpp', 'ragel/cdftable.h', 'ragel/cdgoto.cpp',
  16. 'ragel/cdgoto.h', 'ragel/cdipgoto.cpp', 'ragel/cdipgoto.h',
  17. 'ragel/cdsplit.cpp', 'ragel/cdsplit.h', 'ragel/cdtable.cpp',
  18. 'ragel/cdtable.h', 'ragel/common.cpp', 'ragel/common.h',
  19. 'ragel/cscodegen.cpp', 'ragel/cscodegen.h', 'ragel/csfflat.cpp',
  20. 'ragel/csfflat.h', 'ragel/csfgoto.cpp', 'ragel/csfgoto.h',
  21. 'ragel/csflat.cpp', 'ragel/csflat.h', 'ragel/csftable.cpp',
  22. 'ragel/csftable.h', 'ragel/csgoto.cpp', 'ragel/csgoto.h',
  23. 'ragel/csipgoto.cpp', 'ragel/csipgoto.h', 'ragel/cssplit.cpp',
  24. 'ragel/cssplit.h', 'ragel/cstable.cpp', 'ragel/cstable.h',
  25. 'ragel/dotcodegen.cpp', 'ragel/dotcodegen.h', 'ragel/fsmap.cpp',
  26. 'ragel/fsmattach.cpp', 'ragel/fsmbase.cpp', 'ragel/fsmgraph.cpp',
  27. 'ragel/fsmgraph.h', 'ragel/fsmmin.cpp', 'ragel/fsmstate.cpp',
  28. 'ragel/gendata.cpp', 'ragel/gendata.h', 'ragel/gocodegen.cpp',
  29. 'ragel/gocodegen.h', 'ragel/gofflat.cpp', 'ragel/gofflat.h',
  30. 'ragel/gofgoto.cpp', 'ragel/gofgoto.h', 'ragel/goflat.cpp', 'ragel/goflat.h',
  31. 'ragel/goftable.cpp', 'ragel/goftable.h', 'ragel/gogoto.cpp',
  32. 'ragel/gogoto.h', 'ragel/goipgoto.cpp', 'ragel/goipgoto.h',
  33. 'ragel/gotable.cpp', 'ragel/gotable.h', 'ragel/gotablish.cpp',
  34. 'ragel/gotablish.h', 'ragel/inputdata.cpp', 'ragel/inputdata.h',
  35. 'ragel/javacodegen.cpp', 'ragel/javacodegen.h', 'ragel/main.cpp',
  36. 'ragel/mlcodegen.cpp', 'ragel/mlcodegen.h', 'ragel/mlfflat.cpp',
  37. 'ragel/mlfflat.h', 'ragel/mlfgoto.cpp', 'ragel/mlfgoto.h',
  38. 'ragel/mlflat.cpp', 'ragel/mlflat.h', 'ragel/mlftable.cpp',
  39. 'ragel/mlftable.h', 'ragel/mlgoto.cpp', 'ragel/mlgoto.h',
  40. 'ragel/mltable.cpp', 'ragel/mltable.h', 'ragel/parsedata.cpp',
  41. 'ragel/parsedata.h', 'ragel/parsetree.cpp', 'ragel/parsetree.h',
  42. 'ragel/pcheck.h', 'ragel/ragel.h', 'ragel/rbxgoto.cpp', 'ragel/rbxgoto.h',
  43. 'ragel/redfsm.cpp', 'ragel/redfsm.h', 'ragel/rlparse.cpp', 'ragel/rlparse.h',
  44. 'ragel/rlscan.cpp', 'ragel/rlscan.h', 'ragel/rubycodegen.cpp',
  45. 'ragel/rubycodegen.h', 'ragel/rubyfflat.cpp', 'ragel/rubyfflat.h',
  46. 'ragel/rubyflat.cpp', 'ragel/rubyflat.h', 'ragel/rubyftable.cpp',
  47. 'ragel/rubyftable.h', 'ragel/rubytable.cpp', 'ragel/rubytable.h',
  48. 'ragel/version.h', 'ragel/xmlcodegen.cpp', 'ragel/xmlcodegen.h',
  49. )
  50. ragel = executable(
  51. meson.project_name(),
  52. ragel_sources,
  53. include_directories : ['aapl', 'ragel'],
  54. install : true,
  55. )