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 *)
|
2015-07-28 06:18:34 -07:00
|
|
|
(* under the terms of the GNU Library General Public License, with *)
|
|
|
|
(* the special exception on linking described in file ../LICENSE. *)
|
2007-02-07 00:59:16 -08:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
2009-03-03 08:54:58 -08:00
|
|
|
|
2007-02-07 00:59:16 -08:00
|
|
|
(* Original author: Nicolas Pouillard *)
|
|
|
|
val of_tags : Tags.t -> Command.spec
|
|
|
|
val of_tag_list : Tags.elt list -> Command.spec
|
2013-09-15 04:36:37 -07:00
|
|
|
|
|
|
|
(* The ?deprecated parameter marks the flag declaration as deprecated,
|
|
|
|
because it is superseded by a different, better way to express the
|
|
|
|
same thing (eg. a parametrized tag). So far, it is only used when
|
|
|
|
showing documentation.
|
|
|
|
|
|
|
|
This flag is not exported in OCamlbuild_plugin interface for now. It
|
|
|
|
would make sense to let plugin authors deprecate their own flags,
|
|
|
|
but it has to be balanced again the simplicity of the plugin
|
|
|
|
interface exposed. If you're reading this as a plugin author that
|
|
|
|
has a real need for deprecation, drop us a note on the bugtracker. *)
|
|
|
|
val flag : ?deprecated:bool -> Tags.elt list -> Command.spec -> unit
|
|
|
|
|
2010-01-22 06:36:57 -08:00
|
|
|
val pflag : Tags.elt list -> string -> (string -> Command.spec) -> unit
|
2007-02-07 00:59:16 -08:00
|
|
|
val add : 'a -> 'a list -> 'a list
|
|
|
|
val remove : 'a -> 'a list -> 'a list
|
2007-02-26 09:05:30 -08:00
|
|
|
|
2013-09-15 04:36:33 -07:00
|
|
|
val show_documentation : unit -> unit
|
2013-09-15 04:36:43 -07:00
|
|
|
|
|
|
|
(** "useful" tags: they are used by a tag declaration, or have been
|
|
|
|
explicitly added with [mark_as_used] *)
|
|
|
|
val get_used_tags : unit -> Tags.t
|
|
|
|
|
2013-09-15 04:36:52 -07:00
|
|
|
val mark_tag_used : Tags.elt -> unit
|