summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/ocamlbuild/ocamlbuild_plugin.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml-binary-annot/ocamlbuild/ocamlbuild_plugin.ml')
-rw-r--r--ocaml-binary-annot/ocamlbuild/ocamlbuild_plugin.ml61
1 files changed, 61 insertions, 0 deletions
diff --git a/ocaml-binary-annot/ocamlbuild/ocamlbuild_plugin.ml b/ocaml-binary-annot/ocamlbuild/ocamlbuild_plugin.ml
new file mode 100644
index 0000000000..ccbc07984d
--- /dev/null
+++ b/ocaml-binary-annot/ocamlbuild/ocamlbuild_plugin.ml
@@ -0,0 +1,61 @@
+(***********************************************************************)
+(* 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. *)
+(* *)
+(***********************************************************************)
+
+
+(* Original author: Nicolas Pouillard *)
+
+open Ocamlbuild_pack
+include Ocamlbuild_pack.My_std
+module Arch = Ocamlbuild_pack.Ocaml_arch
+module Command = Ocamlbuild_pack.Command
+module Pathname = Ocamlbuild_pack.Pathname
+module Tags = Ocamlbuild_pack.Tags
+include Pathname.Operators
+include Tags.Operators
+module Rule = Ocamlbuild_pack.Rule
+module Options = Ocamlbuild_pack.Options
+module Findlib = Ocamlbuild_pack.Findlib
+type command = Command.t = Seq of command list | Cmd of spec | Echo of string list * string | Nop
+and spec = Command.spec =
+ | N | S of spec list | A of string | P of string | Px of string
+ | Sh of string | T of Tags.t | V of string | Quote of spec
+include Rule.Common_commands
+type env = Pathname.t -> Pathname.t
+type builder = Pathname.t list list -> (Pathname.t, exn) Ocamlbuild_pack.My_std.Outcome.t list
+type action = env -> builder -> Command.t
+let rule = Rule.rule
+let clear_rules = Rule.clear_rules
+let dep = Command.dep
+let pdep = Command.pdep
+let copy_rule = Rule.copy_rule
+let ocaml_lib = Ocamlbuild_pack.Ocaml_utils.ocaml_lib
+let flag = Ocamlbuild_pack.Flags.flag
+let pflag = Ocamlbuild_pack.Flags.pflag
+let flag_and_dep = Ocamlbuild_pack.Ocaml_utils.flag_and_dep
+let pflag_and_dep = Ocamlbuild_pack.Ocaml_utils.pflag_and_dep
+let non_dependency = Ocamlbuild_pack.Ocaml_utils.non_dependency
+let use_lib = Ocamlbuild_pack.Ocaml_utils.use_lib
+let module_name_of_pathname = Ocamlbuild_pack.Ocaml_utils.module_name_of_pathname
+let string_list_of_file = Ocamlbuild_pack.Ocaml_utils.string_list_of_file
+let expand_module = Ocamlbuild_pack.Ocaml_utils.expand_module
+let tags_of_pathname = Ocamlbuild_pack.Tools.tags_of_pathname
+let hide_package_contents = Ocamlbuild_pack.Ocaml_compiler.hide_package_contents
+let tag_file = Ocamlbuild_pack.Configuration.tag_file
+let tag_any = Ocamlbuild_pack.Configuration.tag_any
+let run_and_read = Ocamlbuild_pack.My_unix.run_and_read
+type hook = Ocamlbuild_pack.Hooks.message =
+ | Before_hygiene
+ | After_hygiene
+ | Before_options
+ | After_options
+ | Before_rules
+ | After_rules
+let dispatch = Ocamlbuild_pack.Hooks.setup_hooks