meson.build 553 B

1234567891011121314
  1. project('http-parser', 'c', version : '2.9.3')
  2. install_headers('http_parser.h')
  3. foreach x : [['http_parser', ['-DHTTP_PARSER_STRICT=0']],
  4. ['http_parser_strict', ['-DHTTP_PARSER_STRICT=1']]]
  5. lib = library(x.get(0), 'http_parser.c',
  6. c_args : x.get(1),
  7. version : '2.9.3',
  8. install : true)
  9. test('test-@0@'.format(x.get(0)),
  10. executable('test-@0@'.format(x.get(0)), 'test.c',
  11. c_args : x.get(1),
  12. link_with : lib),
  13. timeout : 60)
  14. endforeach