dune 562 B

1234567891011121314151617181920212223242526272829
  1. ;; https://discuss.ocaml.org/t/dune-how-to-link-statically-on-linux-not-on-others/8537/4?u=mro
  2. (rule
  3. (with-stdout-to
  4. link_flags.sexp
  5. (run sh %{dep:gen_link_flags.sh})))
  6. (rule
  7. (with-stdout-to
  8. version.ml
  9. (run echo "let dune_project_num = \"%{version:geohash}\"")))
  10. (rule
  11. (target res.ml)
  12. (deps
  13. (source_tree ../res))
  14. (action
  15. (with-stdout-to
  16. %{target}
  17. (run ocaml-crunch --mode=plain ../res))))
  18. ; https://stackoverflow.com/a/53325230/349514
  19. (executable
  20. (name main)
  21. (libraries lib geohash tyre)
  22. (link_flags
  23. (:include link_flags.sexp)))