forked from leanprover-community/mathlib4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlakefile.lean
76 lines (58 loc) · 2.05 KB
/
lakefile.lean
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import Lake
open Lake DSL
def moreServerArgs := #[
"-Dpp.unicode.fun=true", -- pretty-prints `fun a ↦ b`
"-DrelaxedAutoImplicit=false"
]
-- These settings only apply during `lake build`, but not in VSCode editor.
def moreLeanArgs := moreServerArgs
-- These are additional settings which do not affect the lake hash,
-- so they can be enabled in CI and disabled locally or vice versa.
-- Warning: Do not put any options here that actually change the olean files,
-- or inconsistent behavior may result
def weakLeanArgs :=
if get_config? CI |>.isSome then
#["-DwarningAsError=true"]
else
#[]
package mathlib where
moreServerArgs := moreServerArgs
@[default_target]
lean_lib Mathlib where
moreLeanArgs := moreLeanArgs
weakLeanArgs := weakLeanArgs
@[default_target]
lean_exe runLinter where
root := `scripts.runLinter
supportInterpreter := true
@[default_target]
lean_exe checkYaml where
root := `scripts.checkYaml
supportInterpreter := true
meta if get_config? doc = some "on" then -- do not download and build doc-gen4 by default
require «doc-gen4» from git "https://github.com/leanprover/doc-gen4" @ "main"
require std from git "https://github.com/leanprover/std4" @ "main"
require Qq from git "https://github.com/gebner/quote4" @ "master"
require aesop from git "https://github.com/JLimperg/aesop" @ "master"
require Cli from git "https://github.com/mhuisi/lean4-cli.git" @ "nightly"
require proofwidgets from git "https://github.com/EdAyers/ProofWidgets4" @ "v0.0.11"
lean_lib Cache where
moreLeanArgs := moreLeanArgs
weakLeanArgs := weakLeanArgs
roots := #[`Cache]
lean_exe cache where
root := `Cache.Main
lean_lib MathlibExtras where
roots := #[`MathlibExtras]
lean_lib Archive where
roots := #[`Archive]
lean_lib Counterexamples where
roots := #[`Counterexamples]
lean_lib ImportGraph where
roots := #[`ImportGraph]
lean_exe graph where
root := `ImportGraph.Main
supportInterpreter := true
/-- Additional documentation in the form of modules that only contain module docstrings. -/
lean_lib docs where
roots := #[`docs]