Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006145OCamlOCamlbuild (the tool)public2013-08-28 22:542014-04-02 16:44
Reporteredmcman 
Assigned To 
PrioritylowSeverityfeatureReproducibilityN/A
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006145: camlidl support in ocamlbuild
DescriptionIt would be very nice if ocamlbuild officially supported camlidl targets.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0010257)
hcarty (reporter)
2013-08-29 14:25

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 [^]

- Issue History
Date Modified Username Field Change
2013-08-28 22:54 edmcman New Issue
2013-08-29 14:25 hcarty Note Added: 0010257
2014-04-02 16:44 doligez Status new => acknowledged


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker