Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@
(modules generate)
(libraries stdcompat))

(rule
(target pymltop_libdir.ml)
(action (with-stdout-to %{target}
(run echo "let libdir=\"%{project_root}/lib/pyml/\""))))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how to get the prefix in dune so I just put in project root as a placeholder. We need to replicate

https://github.com/thierry-martinez/pyml/blob/d9d404536b3e60a74bd61c0e58812ed8c5811109/Makefile#L352-L357


(executable
(name pytop)
(public_name pymltop)
(modules pytop pymltop_libdir)
(libraries compiler-libs))

(executable
(name pyutop)
(public_name pymlutop)
(modules pyutop)
(libraries utop))

(rule
(targets pywrappers.ml pyml.h pyml_dlsyms.inc pyml_wrappers.inc)
(deps (:gen generate.exe))
Expand Down