You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Port the build system to jbuilder + Configurator (?) #365
I've done a good chunk of the grunt work, leaving just the difficult bits!
No enabling/disabling of the sub-libraries (though the discover tools do run). Everything is assumed on.
Exactly how this can/should be expressed through jbuilder needs some discussion.
I've reorganised the discovery build process a bit, however, it is still basically the same code. One approach might be to modify the discover script to generate sexps (like configurator does)
A couple of generated modules are not hidden (Lwt_config, Lwt_unix_jobs_generated at least). I think the directory organisation will have to change to work around that.
Lwt_glib/ssl/react are called Lwt.glib/ssl/react. This just needs new opam files at the top level and a couple of minor changes to the jbuild files.
I have found 1 issue in utop - Lwt_main isn't automatically found.
The ppx is based on ocaml-migrate-parsetree
Reacted by Anton Bachin, Gabriel de Perthuis and Bikal Gurung
No enabling/disabling of the sub-libraries (though the discover tools do run). Everything is assumed on.
Exactly how this can/should be expressed through jbuilder needs some discussion.
Some info:
Lwt_ssl, Lwt_glib, and Lwt_react should always be off in the main build, I just didn't bother editing it to remove them. They were factored out in #335. These (obviously) correspond to --disable-ssl, --disable-glib, and --disable-libev.
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.
I've reorganised the discovery build process a bit, however, it is still basically the same code. One approach might be to modify the discover script to generate sexps (like configurator does)
Is it feasible to use Configurator?
Lwt_glib/ssl/react are called Lwt.glib/ssl/react. This just needs new opam files at the top level and a couple of minor changes to the jbuild files.
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 == me, and everybody else wants them as submodules of Lwt :)
No enabling/disabling of the sub-libraries (though the discover tools do run). Everything is assumed on.
Exactly how this can/should be expressed through jbuilder needs some discussion.
Some info:
Lwt_ssl, Lwt_glib, and Lwt_react should always be off in the main build, I just didn't bother editing it to remove them. They were factored out in #335. These (obviously) correspond to --disable-ssl, --disable-glib, and --disable-libev.
We want to do the same thing to the PPX (#338) and Camlp4 (#370).
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.
I don't know yet enough jbuilder to recommend a specific course of action based on this. This is FYI.
I've reorganised the discovery build process a bit, however, it is still basically the same code. One approach might be to modify the discover script to generate sexps (like configurator does)
Is it feasible to use Configurator?
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.
Activity
c-cube commentedon May 20, 2017
If you find a good solution for cppo and the docs, I'm interested too.
rgrinberg commentedon May 20, 2017
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.
andrewray commentedon May 23, 2017
or clone and
I've done a good chunk of the grunt work, leaving just the difficult bits!
No enabling/disabling of the sub-libraries (though the discover tools do run). Everything is assumed on.
Exactly how this can/should be expressed through jbuilder needs some discussion.
I've reorganised the discovery build process a bit, however, it is still basically the same code. One approach might be to modify the discover script to generate sexps (like configurator does)
A couple of generated modules are not hidden (Lwt_config, Lwt_unix_jobs_generated at least). I think the directory organisation will have to change to work around that.
Lwt_glib/ssl/react are called Lwt.glib/ssl/react. This just needs new opam files at the top level and a couple of minor changes to the jbuild files.
I have found 1 issue in utop - Lwt_main isn't automatically found.
The ppx is based on ocaml-migrate-parsetree
aantron commentedon May 23, 2017
😆
Some info:
Lwt_ssl,Lwt_glib, andLwt_reactshould always be off in the main build, I just didn't bother editing it to remove them. They were factored out in #335. These (obviously) correspond to--disable-ssl,--disable-glib, and--disable-libev.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
==me, and everybody else wants them as submodules ofLwt:)rgrinberg commentedon May 23, 2017
Awesome! put up a PR and we'll try and help you with those.
👍
Yes, I think this is essential.
andrewray commentedon May 23, 2017
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.