Debian Codegraph @

src/dune_pkg/dune

raw
1 ; OxCaml's ppx_expect v0.18 rejects [let%test_module] in favour of
2 ; [module%test], but upstream ppx_expect has not released v0.18 yet.
3 ; Until it does we must support both: pass the compatibility flag on
4 ; OxCaml and nothing otherwise.
5
6 (rule
7 (enabled_if %{ocaml-config:ox})
8 (action
9 (write-file ppx-extra-flags "-inline-test-allow-let-test-module")))
10
11 (rule
12 (enabled_if
13 (not %{ocaml-config:ox}))
14 (action
15 (write-file ppx-extra-flags "")))
16
17 (library
18 (name dune_pkg)
19 (synopsis "[Internal] Dune's packaging support")
20 (foreign_stubs
21 (names md5_stubs)
22 (language c))
23 (inline_tests)
24 (preprocess
25 (pps ppx_expect -- %{read-lines:ppx-extra-flags}))
26 (libraries
27 stdune
28 lmdb
29 fiber
30 dune_scheduler
31 dune_engine
32 dune_util
33 dune_trace
34 dune_lang
35 dune_digest
36 re
37 dune_vcs
38 opam_format
39 build_info
40 sat
41 unix
42 xdg))