| 1 |
(library |
| 2 |
(name re_tests) |
| 3 |
(libraries |
| 4 |
re_private |
| 5 |
;; This is because of the (implicit_transitive_deps false) |
| 6 |
;; in dune-project |
| 7 |
ppx_expect.config |
| 8 |
ppx_expect.config_types |
| 9 |
ppx_expect |
| 10 |
ppx_expect_common |
| 11 |
base |
| 12 |
str |
| 13 |
ppx_inline_test.config) |
| 14 |
(inline_tests |
| 15 |
(modes native js)) |
| 16 |
(preprocess |
| 17 |
(pps ppx_expect))) |
| 18 |
|
| 19 |
;; ppx_expect v16 depends on ppx_expect.common |
| 20 |
(subdir |
| 21 |
ppx_expect_common |
| 22 |
(library |
| 23 |
(name ppx_expect_common) |
| 24 |
(enabled_if |
| 25 |
(< %{ocaml_version} 5.0)) |
| 26 |
(libraries (re_export ppx_expect.common))) |
| 27 |
(library |
| 28 |
(name ppx_expect_common) |
| 29 |
(enabled_if |
| 30 |
(>= %{ocaml_version} 5.0)))) |
| 31 |
|
| 32 |
;; this hackery is needed because ppx_expect itself uses re, therefore we need to mangle |
| 33 |
;; the library name |
| 34 |
|
| 35 |
(subdir |
| 36 |
private_re |
| 37 |
(library |
| 38 |
(name re_private)) |
| 39 |
(copy_files %{project_root}/lib/*.{ml,mli})) |