1234567891011121314151617181920212223242526272829 |
- ;; https://discuss.ocaml.org/t/dune-how-to-link-statically-on-linux-not-on-others/8537/4?u=mro
- (rule
- (with-stdout-to
- link_flags.sexp
- (run sh %{dep:gen_link_flags.sh})))
- (rule
- (with-stdout-to
- version.ml
- (run echo "let dune_project_num = \"%{version:geohash}\"")))
- (rule
- (target res.ml)
- (deps
- (source_tree ../res))
- (action
- (with-stdout-to
- %{target}
- (run ocaml-crunch --mode=plain ../res))))
- ; https://stackoverflow.com/a/53325230/349514
- (executable
- (name main)
- (libraries lib geohash tyre)
- (link_flags
- (:include link_flags.sexp)))
|