forked from OSCPU-Zhoushan/Zhoushan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
43 lines (38 loc) · 1.36 KB
/
build.sc
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
// import mill dependency
import mill._
import mill.scalalib._
import mill.scalalib.TestModule.Utest
// support BSP
import mill.bsp._
// maven repository
import coursier.maven.MavenRepository
object ivys {
val sv = "2.12.13"
val chisel3 = ivy"edu.berkeley.cs::chisel3:3.5.0-RC1"
val chisel3Plugin = ivy"edu.berkeley.cs:::chisel3-plugin:3.5.0-RC1"
val chiseltest = ivy"edu.berkeley.cs::chiseltest:0.3.3"
val scalatest = ivy"org.scalatest::scalatest:3.2.2"
val macroParadise = ivy"org.scalamacros:::paradise:2.1.1"
}
trait CommonModule extends ScalaModule {
override def scalaVersion = ivys.sv
override def scalacOptions = Seq("-Xsource:2.11")
override def compileIvyDeps = Agg(ivys.macroParadise)
override def scalacPluginIvyDeps = Agg(ivys.macroParadise, ivys.chisel3Plugin)
}
object difftest extends SbtModule with CommonModule {
override def millSourcePath = os.pwd / "difftest"
override def ivyDeps = super.ivyDeps() ++ Agg(ivys.chisel3)
}
object ConnectAXI extends SbtModule with CommonModule {
override def millSourcePath = os.pwd / "CONNECT-AXI"
override def ivyDeps = super.ivyDeps() ++ Agg(ivys.chisel3)
}
object Zhoushan extends SbtModule with CommonModule {
override def millSourcePath = os.pwd
override def ivyDeps = super.ivyDeps() ++ Agg(ivys.chisel3)
override def moduleDeps = super.moduleDeps ++ Seq(
difftest,
ConnectAXI
)
}