2007-02-07 00:59:16 -08:00
|
|
|
(***********************************************************************)
|
2012-08-01 07:47:00 -07:00
|
|
|
(* *)
|
2007-02-07 00:59:16 -08:00
|
|
|
(* ocamlbuild *)
|
|
|
|
(* *)
|
|
|
|
(* Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 2007 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
2009-03-03 08:54:58 -08:00
|
|
|
|
2007-02-07 00:59:16 -08:00
|
|
|
(* Original author: Nicolas Pouillard *)
|
|
|
|
(* Command *)
|
|
|
|
|
|
|
|
(** Provides an abstract type for easily building complex shell commands without making
|
|
|
|
quotation mistakes. *)
|
2007-11-28 08:11:46 -08:00
|
|
|
include Signatures.COMMAND with type tags = Tags.t and type pathname = string
|
2007-02-07 00:59:16 -08:00
|
|
|
|
|
|
|
(** {6 For system use only, not for the casual user} *)
|
|
|
|
|
2007-10-08 07:19:34 -07:00
|
|
|
val string_target_and_tags_of_command_spec : spec -> string * string * Tags.t
|
|
|
|
|
2007-11-28 08:11:46 -08:00
|
|
|
val iter_tags : (Tags.t -> unit) -> t -> unit
|
|
|
|
|
2008-07-25 07:25:20 -07:00
|
|
|
val fold_pathnames : (pathname -> 'a -> 'a) -> t -> 'a -> 'a
|
|
|
|
|
2007-12-18 00:55:48 -08:00
|
|
|
(** Digest the given command. *)
|
|
|
|
val digest : t -> Digest.t
|
2007-02-07 00:59:16 -08:00
|
|
|
|
|
|
|
(** Maximum number of parallel jobs. *)
|
|
|
|
val jobs : int ref
|
|
|
|
|
|
|
|
(** Hook here the function that maps a set of tags to appropriate command
|
|
|
|
options. It also build the dependencies that matches the tags. *)
|
|
|
|
val tag_handler : (Tags.t -> spec) ref
|
2007-12-18 00:55:04 -08:00
|
|
|
|
|
|
|
(** For system use only *)
|
|
|
|
val dump_parallel_stats : unit -> unit
|
2008-07-25 07:25:20 -07:00
|
|
|
|
|
|
|
val deps_of_tags : Tags.t -> pathname list
|
|
|
|
|
|
|
|
(** [dep tags deps] Will build [deps] when [tags] will be activated. *)
|
|
|
|
val dep : Tags.elt list -> pathname list -> unit
|
2010-01-22 06:36:57 -08:00
|
|
|
|
|
|
|
val pdep : Tags.elt list -> Tags.elt -> (string -> pathname list) -> unit
|
2012-04-02 08:13:59 -07:00
|
|
|
|
2015-07-17 07:31:05 -07:00
|
|
|
val list_all_deps : unit -> (Tags.t * pathname list) list
|
|
|
|
|
2012-04-02 08:13:59 -07:00
|
|
|
val file_or_exe_exists: string -> bool
|