forked from OCamlPro/liquidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ocp2
31 lines (23 loc) · 1.06 KB
/
build.ocp2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(* Disable to compile without the sources of Tezos.
The following features with be disabled:
* Decompilation of Michelson files
* Execution of Michelson contracts
*)
Sys = module("ocp-build:Sys", "1.0");
(* This value is used if with_tezos is not set before *)
default_with_tezos = Sys.file_exists("tezos/README.md");
try { with_tezos = with_tezos; }
catch("unknown-variable",x){ with_tezos = default_with_tezos; }
(* By default, liquidity will contain some version information
(Git commit, build date, etc.). However, during development, it
makes recompilation slower, so you can create a file DEVEL here
to tell ocp-build not to include version information.
The flag can also be controled in an inclusing project by using
the 'with_version' option.
*)
default_with_version = !Sys.file_exists("DEVEL");
try { with_version = with_version; }
catch("unknown-variable",x){ with_version = default_with_version; }
default_for_javascript = false;
try { for_javascript = for_javascript; }
catch("unknown-variable",x){ for_javascript = default_for_javascript; }