-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port the build system to jbuilder + Configurator (?) #365
Comments
If you find a good solution for cppo and the docs, I'm interested too. |
Yes, cppo is easy to handle. Especially since we only have a couple of files being preprocessed. For docs, we need only wait for ocaml/dune#74 to be finished. Which should be done before 1.0 is released. |
Yh, there are two methods shown in the manual for cppo. Otherwise yh jbuilder should be able to build Lwt without problems. |
or clone and
I've done a good chunk of the grunt work, leaving just the difficult bits!
|
😆
Some info:
We want to do the same thing to the PPX (#338) and Camlp4 (#370). I don't know yet enough jbuilder to recommend a specific course of action based on this. This is FYI.
Is it feasible to use Configurator?
I don't think we necessarily want this. We really are thinking of them as separate libraries, which happen to be in this repo for historical reasons. Then again, maybe we |
Awesome! put up a PR and we'll try and help you with those.
👍
Yes, I think this is essential. |
The pull request factors everything into separate packages, then ties them back together and provides a compatibility package. This is quite similar to what js_of_ocaml is doing for jbuilder. It also seems to match best jbuilders workflow - I haven't yet figured out how to otherwise disable individual packages, though perhaps @diml would like to comment.
It is, and it's already used to get the glib pkg-config. I am in two minds about a wholesale re-write of discover.ml, though maybe it can be simplified a bit with configurator. It's the next problem to tackle, to ensure it works on different platforms correctly. |
Multiple packages is best to avoid recompilation when the user installs of one the optional dependency. Otherwise simply mark libraries as optional: (library
((name lwt_ssl)
(public_name lwt.ssl)
(optional)
(libraries (ssl ...))
...)) Then |
cc @rginberg
@diml: We have a question: would current jbuilder be able to build Lwt?
The text was updated successfully, but these errors were encountered: