dune 946 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. flags.sexp
  5. (run sh %{dep:gen_flags.sh})))
  6. (rule
  7. (with-stdout-to
  8. version.ml
  9. ; (run echo "let dune_project_num = \"%{version:seppo}\"")
  10. (run sh %{dep:gen_version.sh} "%{version:seppo}" # ${build-number})
  11. ; https://github.com/ocaml/dune/issues/255#issuecomment-372077123
  12. ))
  13. (rule
  14. (target res.ml)
  15. (deps
  16. (source_tree ../res))
  17. (action
  18. (with-stdout-to
  19. %{target}
  20. (run ocaml-crunch --mode=plain ../res))))
  21. ; https://stackoverflow.com/a/53325230/349514
  22. (executable
  23. (public_name seppo)
  24. (package seppo)
  25. (name seppo_bin)
  26. (libraries seppo_lib unix)
  27. ; https://discuss.ocaml.org/t/lwt-ppx-binary-footprint/11818/2
  28. (preprocess
  29. (pps lwt_ppx))
  30. ; https://discuss.ocaml.org/t/ld-error-missing-note-gnu-stack-section/12478/4
  31. (flags
  32. -safe-string
  33. (:include flags.sexp)))
  34. (documentation
  35. (package seppo))