-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
49 lines (45 loc) · 1.38 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
44
45
46
47
48
49
// import Mill dependency
import mill._
import mill.define.Sources
import mill.modules.Util
import mill.scalalib._
import mill.scalalib.TestModule._
import mill.scalalib.scalafmt.ScalafmtModule
import publish._
import scalalib._
// support BSP
import mill.bsp._
object rvsoc extends SbtModule with PublishModule with ScalafmtModule { m =>
override def millSourcePath = os.pwd
override def scalaVersion = "2.12.10"
override def scalacOptions = Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
"-P:chiselplugin:genBundleElements",
)
override def ivyDeps = Agg(
ivy"edu.berkeley.cs::chisel3:3.5.4",
)
override def scalacPluginIvyDeps = Agg(
ivy"edu.berkeley.cs:::chisel3-plugin:3.5.4",
)
object test extends Tests with ScalaTest {
override def ivyDeps = m.ivyDeps() ++ Agg(
ivy"edu.berkeley.cs::chiseltest:0.5.4",
)
}
override def publishVersion = "0.1.0"
override def pomSettings = PomSettings(
description = "Hello",
organization = "shuosc",
url = "https://github.com/Chasing1020/rvsoc",
licenses = Seq(License.`Apache-2.0`),
versionControl = VersionControl.github("Chasing1020", "https://github.com/chasing1020/rvsoc"),
developers = Seq(
Developer("Chasing1020", "Chasing1020", "https://github.com/chasing1020"),
),
)
override def mainClass = Some("com.chasing1020.Main")
}