Skip to content

Commit

Permalink
doc: add oasis section to build documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
seliopou committed Nov 13, 2014
1 parent 32e9521 commit 661e22f
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
_build/*
*.byte
*.native
*.docdir
setup.bin
setup.data
setup.log
Expand Down
8 changes: 8 additions & 0 deletions _oasis
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ Library tdk
Pack: true
Modules: S, Bdd, Vcr, Vlr

Document tdk
Title: Tdk Docs
Type: ocamlbuild (0.4)
BuildTools+: ocamldoc
Install: true
XOCamlbuildPath: lib
XOCamlbuildLibraries: tdk

Executable test_vcr
Path: lib_test
MainIs: test_vcr.ml
Expand Down
48 changes: 43 additions & 5 deletions setup.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(* setup.ml generated for the first time by OASIS v0.4.4 *)

(* OASIS_START *)
(* DO NOT EDIT (digest: 8abd8764570a85bb6d8ba152f92797df) *)
(* DO NOT EDIT (digest: f053e1ca64f08162b6bc7ac568680d2a) *)
(*
Regenerated by OASIS v0.4.4
Visit http://oasis.forge.ocamlcore.org for more information and
Expand Down Expand Up @@ -6787,7 +6787,12 @@ let setup_t =
cmd_distclean = [(OASISExpr.EBool true, None)]
})
];
doc = [];
doc =
[
("tdk",
OCamlbuildDocPlugin.doc_build
{OCamlbuildDocPlugin.extra_args = []; run_path = "lib"})
];
install = InternalInstallPlugin.install;
uninstall = InternalInstallPlugin.uninstall;
clean = [OCamlbuildPlugin.clean];
Expand All @@ -6810,7 +6815,12 @@ let setup_t =
cmd_distclean = [(OASISExpr.EBool true, None)]
})
];
clean_doc = [];
clean_doc =
[
("tdk",
OCamlbuildDocPlugin.doc_clean
{OCamlbuildDocPlugin.extra_args = []; run_path = "lib"})
];
distclean = [];
distclean_test =
[
Expand Down Expand Up @@ -6923,6 +6933,34 @@ let setup_t =
lib_findlib_name = Some "tdk";
lib_findlib_containers = []
});
Doc
({
cs_name = "tdk";
cs_data = PropList.Data.create ();
cs_plugin_data = []
},
{
doc_type = (`Doc, "ocamlbuild", Some "0.4");
doc_custom =
{
pre_command = [(OASISExpr.EBool true, None)];
post_command = [(OASISExpr.EBool true, None)]
};
doc_build =
[
(OASISExpr.ENot (OASISExpr.EFlag "docs"), false);
(OASISExpr.EFlag "docs", true)
];
doc_install = [(OASISExpr.EBool true, true)];
doc_install_dir = "$docdir";
doc_title = "Tdk Docs";
doc_authors = [];
doc_abstract = None;
doc_format = OtherDoc;
doc_data_files = [];
doc_build_tools =
[ExternalTool "ocamlbuild"; ExternalTool "ocamldoc"]
});
Executable
({
cs_name = "test_vcr";
Expand Down Expand Up @@ -7052,14 +7090,14 @@ let setup_t =
};
oasis_fn = Some "_oasis";
oasis_version = "0.4.4";
oasis_digest = Some "\016\1515\167\174\r\181W\159)\030'\254cw\164";
oasis_digest = Some "D>\153*\185\001\235\140\2227\141v}\t\173\203";
oasis_exec = None;
oasis_setup_args = [];
setup_update = false
};;

let setup () = BaseSetup.setup setup_t;;

# 7064 "setup.ml"
# 7102 "setup.ml"
(* OASIS_STOP *)
let () = setup ();;

0 comments on commit 661e22f

Please sign in to comment.