[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] Project setup with dune
Hi, On 29 October 2018 at 10:16 GMT, Andrew J wrote: > > I'm starting a project with mirage to build a protocol server. I'm wondering > if there is any way to use dune to handle the configuring and building since > it can do tests and other things too. > > I guess this would be something similar to running the mirage configure then > make commands but don't know if something like this exists for dune. If you want to have a configure step in Dune, you usually write an executable using dune.configurator https://dune.readthedocs.io/en/latest/configurator.html which will be called by a rule to generate some targets which are then used in your build (e.g. using the variable read-lines https://dune.readthedocs.io/en/latest/dune-files.html#variables-expansion or (:include ...)). See for example how config/discover.ml is used to detect the fortran compiler for odepack — https://github.com/Chris00/ocaml-odepack Best, C. _______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |