catala/build_system/dune
Louis Gesbert 05752988e6 Clerk: add support for basic configuration files
Not much there at the moment, but being able to specify the include directories
is already pretty useful to run clerk directly e.g. on `catala-examples`.

(you had to explicitely specify variable `CATALA_INCLUDE`, the `-I` flags or to
go through `make` without that)
2024-06-26 10:41:12 +02:00

34 lines
723 B
Plaintext

(library
(name clerk_driver)
(public_name catala.clerk_driver)
(libraries
catala.runtime_ocaml
catala.catala_utils
catala.surface
ninja_utils
cmdliner
re
ocolor
otoml)
(modules clerk_scan clerk_report clerk_runtest clerk_config clerk_driver))
(rule
(target custom_linking.sexp)
(mode fallback)
(action
(with-stdout-to
%{target}
(echo "()"))))
(executable
(name clerk)
(public_name clerk)
(flags
(:standard
(:include custom_linking.sexp)))
(libraries clerk_driver)
(link_deps ../compiler/catala.exe)
; not a real dependency, but when running clerk in practice you always want the catala binary to be up-to-date (e.g. `dune exec -- ckerk test`)
(modules clerk)
(package catala))