Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (47 sloc) 1.828 kb
fccc685 Initial open-source release
MLstate authored
1 (*
2 Copyright © 2011 MLstate
3
4 This file is part of OPA.
5
6 OPA is free software: you can redistribute it and/or modify it under the
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
10 OPA is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with OPA. If not, see <http://www.gnu.org/licenses/>.
17 *)
18 (**
19 Install directories
20 *)
21
22 (**
23 The install directory is where libs have been installed.
24 This directory is needed by opa to compile applications.
25
26 The location of this directory is pointed by an environment var,
27 which use to be one of the following vars:
28 MLSTATELIBS, OPADIR, (used to be also BASEDIR), whatever...
29
30 We will now stabilize the build process, and choose only 1 name for this variable.
31 There we do a toplevel getenv, and then in any other place in the compiler,
32 we should refer to this value.
33 *)
34
35 (**
36 Currently "MLSTATELIBS"
37 This is used for generating e.g. Makefile, without duplicating the string
38 in the code of the compiler.
39 *)
40 val name : string
41
42 (**
43 This is the value of the installdir variable, returned once for all
44 by a getenv executed at toplevel of this module.
45 *)
46 val getenv : string Lazy.t
47
48 (**
49 The path into the install dir to find the lib of the OPA compiler.
50 Without the first '/', the current value is ["lib/opa/static"]
51 *)
52 val lib_opa : string
53
54 (**
55 The path into the install dir to find the compiled opa packages of the stdlib.
56 The current value is ["lib/opa/stdlib"]
57 *)
58 val opa_packages : string
Something went wrong with that request. Please try again.