-
Notifications
You must be signed in to change notification settings - Fork 33
/
build.ocp2
55 lines (46 loc) · 2.88 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
(****************************************************************************)
(* Liquidity *)
(* *)
(* Copyright (C) 2017-2020 OCamlPro SAS *)
(* *)
(* Authors: Fabrice Le Fessant *)
(* Alain Mebsout *)
(* David Declerck *)
(* Steven De Oliveira *)
(* *)
(* This program is free software: you can redistribute it and/or modify *)
(* it under the terms of the GNU General Public License as published by *)
(* the Free Software Foundation, either version 3 of the License, or *)
(* (at your option) any later version. *)
(* *)
(* This program is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)
(* GNU General Public License for more details. *)
(* *)
(* You should have received a copy of the GNU General Public License *)
(* along with this program. If not, see <https://www.gnu.org/licenses/>. *)
(****************************************************************************)
(* 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_dune_network is not set before *)
default_with_dune_network = Sys.file_exists("dune-network/README.md");
try { with_dune_network = with_dune_network; }
catch("unknown-variable",x){ with_dune_network = default_with_dune_network; }
(* 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; }