-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
40 lines (36 loc) · 1.01 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
// This file is part of raytracer.
// Licensed under the BSD 3-clause License.
// See the LICENSE.txt file for details.
// import Mill dependency
import mill._
import mill.define.Sources
import mill.modules.Util
import mill.scalalib.TestModule.ScalaTest
import scalalib._
// support BSP
import mill.bsp._
object raytracer extends SbtModule { m =>
override def millSourcePath = os.pwd
override def scalaVersion = "2.13.8"
override def scalacOptions = Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
"-P:chiselplugin:genBundleElements"
)
override def ivyDeps = Agg(
ivy"org.chipsalliance::chisel:5.0.0",
)
override def scalacPluginIvyDeps = Agg(
ivy"org.chipsalliance:::chisel-plugin:5.0.0",
)
def sources = T.sources{
super.sources() ++ Seq(PathRef(millSourcePath / "external"/"hardfloat"/"src"))
}
object test extends Tests with ScalaTest{
override def ivyDeps = m.ivyDeps() ++ Agg(
ivy"edu.berkeley.cs::chiseltest:5.0.2"
)
}
}