-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
83 lines (63 loc) · 1.97 KB
/
build.sbt
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
77
78
79
80
81
82
83
import Common._, prj._
coverageExcludedFiles in ThisBuild := ".*macro.*"
parallelExecution in ThisBuild := false
fork in ThisBuild := true
scalaVersion in ThisBuild := "2.12.4"
coverageEnabled in (Test, test) := true
enablePlugins(PackPlugin)
lazy val pBase = base()
// utils
lazy val pUtils = utils().dependsOn(pBase)
lazy val pTypes = types()
.dependsOn(pUtils)
lazy val pTypesJson = typesJson()
.dependsOn(pTypes)
lazy val pAst = ast()
.dependsOn(pTypes)
.dependsOn(pContractLib)
lazy val pScp = scp()
.dependsOn(pUtils)
lazy val pInterperter = interpreter()
.dependsOn(pAst)
.dependsOn(pTypesJson)
.dependsOn(pTrie)
.dependsOn(pSandBox)
.dependsOn(pContractScaffold)
.dependsOn(pScp)
.dependsOn(pStore)
.dependsOn(pJsonRpc)
lazy val pJsonRpc = jsonrpc()
lazy val pTrie = trie()
.dependsOn(pUtils)
lazy val pStore = store()
.dependsOn(pBase)
lazy val pContractLib = contractLib()
.dependsOn(pTypes)
lazy val pSandBox = sandBox().dependsOn(pTypes).dependsOn(pContractLib)
lazy val pContractScaffold = contractScaffold().dependsOn(pTypes)
lazy val pTool = tool()
.dependsOn(pInterperter)
.dependsOn(pSandBox)
.settings(
packMain := Map("tool" -> "fssi.tool.ToolMain")
)
lazy val pWallet = wallet()
.dependsOn(pBase)
.dependsOn(pInterperter)
.dependsOn(pSandBox)
lazy val pCoreNode = coreNode()
.dependsOn(pInterperter)
.settings(
packMain := Map("corenode" -> "fssi.corenode.CoreNodeMain")
)
lazy val pEdgeNode = edgeNode()
.dependsOn(pInterperter)
.settings(
packMain := Map("edgenode" -> "fssi.edgenode.EdgeNodeMain")
)
addCommandAlias(
"packInstallAll",
";project tool;clean;packInstall;project coreNode;clean;packInstall;project edgeNode;clean;packInstall")
addCommandAlias("packInstallTool", ";project /;clean;project tool;packInstall")
addCommandAlias("packInstallCoreNode", ";project /;clean;project coreNode;packInstall")
addCommandAlias("packInstallEdgeNode", ";project /;clean;project edgeNode;packInstall")