-
Notifications
You must be signed in to change notification settings - Fork 239
/
build.sc
37 lines (26 loc) · 882 Bytes
/
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
import mill._, scalalib._
import coursier.maven.MavenRepository
object ivys {
val scala = "2.13.14"
val chisel = ivy"org.chipsalliance::chisel:6.5.0"
val chiselPlugin = ivy"org.chipsalliance:::chisel-plugin:6.5.0"
}
trait CommonModule extends ScalaModule {
override def scalaVersion = ivys.scala
override def scalacOptions = Seq("-Ymacro-annotations")
}
trait HasChisel extends ScalaModule {
override def ivyDeps = Agg(ivys.chisel)
override def scalacPluginIvyDeps = Agg(ivys.chiselPlugin)
}
trait CommonNS extends SbtModule with CommonModule with HasChisel
object difftest extends CommonNS {
override def millSourcePath = os.pwd / "difftest"
}
object generator extends CommonNS {
override def millSourcePath = os.pwd
override def moduleDeps = super.moduleDeps ++ Seq(
difftest
)
object test extends SbtModuleTests with TestModule.ScalaTest
}