package ninja_utils

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ninja_utils.BuildSource

Helper module to build ninja build statements.

Sourcetype t

Represents the minimal ninja build statement representation for Clerk:

  build <outputs>: <rule> [<inputs>]
    [<vars>]
Sourceval make : ?inputs:Expr.t -> ?implicit_in:Expr.t -> outputs:Expr.t -> ?implicit_out:Expr.t -> ?vars:(Var.t * Expr.t) list -> string -> t

make ~outputs rule returns the corresponding ninja Build.t.

Sourceval empty : t

empty is the minimal ninja Build.t with "empty" as outputs and "phony" as rule.

Sourceval unpath : ?sep:string -> string -> string

unpath ~sep path replaces all / occurences with sep in path to avoid ninja writing the corresponding file and use it as sub command. By default, sep is set to "-".

Sourceval format : Format.formatter -> t -> unit

format fmt build outputs in fmt the string representation of the ninja build.

OCaml

Innovation. Community. Security.