example.com -> example.org
[Seppo.git] / bin / dune
blob2e73be79f3b65021f7bdb06a83bbffefe1739371
1 ; https://discuss.ocaml.org/t/dune-how-to-link-statically-on-linux-not-on-others/8537/4?u=mro
3 (rule
4  (with-stdout-to
5   flags.sexp
6   (run sh %{dep:gen_flags.sh})))
8 (rule
9  (with-stdout-to
10   version.ml
11  ; (run echo "let dune_project_num = \"%{version:seppo}\"")
12   (run sh %{dep:gen_version.sh} "%{version:seppo}" # ${build-number}) ; https://github.com/ocaml/dune/issues/255#issuecomment-372077123
13  ))
15 (rule
16  (target res.ml)
17  (deps
18   (source_tree ../res))
19  (action
20   (with-stdout-to
21    %{target}
22    (run ocaml-crunch --mode=plain ../res))))
24 ; https://stackoverflow.com/a/53325230/349514
26 (executable
27  (public_name seppo)
28  (package seppo)
29  (name seppo_bin)
30  (libraries seppo_lib)
31  ; https://discuss.ocaml.org/t/lwt-ppx-binary-footprint/11818/2
32  (preprocess
33   (pps lwt_ppx))
34  ; https://discuss.ocaml.org/t/ld-error-missing-note-gnu-stack-section/12478/4
35  (flags
36   -safe-string (:include flags.sexp )))