(library
 (name jsoo_testsuite_latest)
 (modules test_io test_floats)
 (libraries unix compiler-libs.common js_of_ocaml-compiler)
 (enabled_if
  (>= %{ocaml_version} 4.14))
 (inline_tests
  (modes js best))
 (preprocess
  (pps ppx_expect)))

(library
 (name jsoo_testsuite_compression)
 (modules test_marshal_compressed)
 (libraries unix compiler-libs.common js_of_ocaml-compiler)
 (enabled_if
  (>= %{ocaml_version} 5.1.1))
 (inline_tests
  (modes js best))
 (preprocess
  (pps ppx_expect)))

(library
 (name jsoo_testsuite)
 (modules
  (:standard \ test_io test_floats test_marshal_compressed))
 (libraries unix compiler-libs.common js_of_ocaml-compiler)
 (foreign_stubs
  (language c)
  (names bigarray_stubs flush_stubs))
 (js_of_ocaml
  (javascript_files runtime.js))
 (inline_tests
  (modes js best))
 (preprocess
  (pps ppx_expect)))

(ocamlyacc calc_parser)

(ocamllex calc_lexer)

(ocamlyacc parser_1307)

(ocamllex lexer_1307)
