dune 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ; https://discuss.ocaml.org/t/working-with-application-data-in-packages/9464/5?u=mro
  2. (rule
  3. (target res.ml)
  4. (deps
  5. (source_tree ../res))
  6. (action
  7. (with-stdout-to
  8. %{target}
  9. (run ocaml-crunch --mode=plain ../res))))
  10. (rule
  11. (target plain2handle.ml)
  12. (deps plain2handle.mll)
  13. (action
  14. (chdir
  15. %{workspace_root}
  16. (run %{bin:ocamllex} -q -o %{target} %{deps}))))
  17. (rule
  18. (target plain2html.ml)
  19. (deps plain2html.mll)
  20. (action
  21. (chdir
  22. %{workspace_root}
  23. (run %{bin:ocamllex} -q -o %{target} %{deps}))))
  24. (library
  25. (name seppo_lib)
  26. (libraries
  27. as2_vocab
  28. base64
  29. ; https://github.com/mirleft/ocaml-x509/blob/master/tests/dune
  30. camlp-streams ; https://discuss.ocaml.org/t/module-stream-removed-from-5-0-standard-library/10218/3?u=mro
  31. cohttp-lwt-unix
  32. csexp
  33. cstruct
  34. logs
  35. lwt
  36. lwt.unix
  37. lambdasoup
  38. mirage-crypto-pk
  39. mirage-crypto-rng.unix
  40. optint
  41. ptime.clock.os
  42. re
  43. safepass
  44. str
  45. timedesc ; ~600k
  46. tls-lwt
  47. tyre
  48. unix
  49. uri
  50. uucp ; ~4m
  51. uuidm
  52. uunf.string
  53. uutf
  54. x509
  55. xmlm)
  56. ; https://dev.realworldocaml.org/data-serialization.html#scrollNav-1-2
  57. ; (preprocess (pps ppx_sexp_conv))
  58. (preprocess
  59. (pps lwt_ppx))
  60. ; https://discuss.ocaml.org/t/lwt-ppx-binary-footprint/11818/2
  61. (flags
  62. (:standard -cclib "-z noexecstack" -safe-string)))