Skip to content
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

camlidl support in ocamlbuild #6145

Closed
vicuna opened this issue Aug 28, 2013 · 2 comments
Closed

camlidl support in ocamlbuild #6145

vicuna opened this issue Aug 28, 2013 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Aug 28, 2013

Original bug ID: 6145
Reporter: edmcman
Status: resolved (set by @damiendoligez on 2017-03-01T15:17:06Z)
Resolution: suspended
Priority: low
Severity: feature
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: @gasche

Bug description

It would be very nice if ocamlbuild officially supported camlidl targets.

@vicuna
Copy link
Author

vicuna commented Aug 29, 2013

Comment author: @hcarty

Here is a snippet which may help if you are interested in adding camlidl support in your own project (add in a dispatch call somewhere):

...
| After_rules ->
rule "camlidl processing"
~prods:["%.mli"; "%.ml"; "%_stubs.c"]
~deps:["%.idl"]
begin fun env _build ->
let idl = env "%.idl" in
let tags = tags_of_pathname idl++"compile"++"camlidl" in
let cmd = Cmd(S[camlidl; T tags; P idl]) in
Seq [cmd]
end;

Formerly in use here: https://github.com/hcarty/ocaml-hdf/blob/6a44965a9c72ea1f95f93803af930b24d22e2d47/myocamlbuild.ml#L47

@vicuna
Copy link
Author

vicuna commented Mar 1, 2017

Comment author: @damiendoligez

ocamlbuild is now a separate project that lives on GitHub.
PR transferred to ocaml/ocamlbuild#189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant