-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
59 lines (52 loc) · 2.25 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
val chiselVersion = "6.4.3-tywaves-SNAPSHOT" // Local version of chisel
val scalatestVersion = "3.2.16"
val circeVersion = "0.14.6"
val firtoolVersion = "0.1.5"
val firtoolFullName = "firtool-type-dbg-info-" ++ firtoolVersion
val surferTywavesVersion = "0.3.2"
val surferTywavesFullName = "surfer-tywaves-" ++ surferTywavesVersion
Compile / scalaSource := baseDirectory.value / "src/main/scala"
Test / scalaSource := baseDirectory.value / "src/test/scala"
ThisBuild / organization := "com.github.rameloni"
ThisBuild / version := "0.4.2-SNAPSHOT"
ThisBuild / scalaVersion := "2.13.14"
enablePlugins(ScalafmtPlugin)
lazy val root = (project in file("."))
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := {
val firtoolBinaryPath = BuildInfoKey("firtoolBinaryPath", firtoolFullName)
val surferTywavesBinaryPath = BuildInfoKey("surferTywavesBinaryPath", surferTywavesFullName)
Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion, firtoolBinaryPath, surferTywavesBinaryPath)
},
buildInfoPackage := "tywaves",
buildInfoUsePackageAsPath := true,
).settings(
name := "tywaves-chisel-api",
addCompilerPlugin(
"org.chipsalliance" % "chisel-plugin" % chiselVersion cross CrossVersion.full
),
libraryDependencies += "org.chipsalliance" %% "chisel" % chiselVersion,
libraryDependencies += "org.scalatest" %% "scalatest" % scalatestVersion % "test",
// libraryDependencies += "io.circe" %% "circe-core" % circeVersion,
// libraryDependencies += "io.circe" %% "circe-generic" % circeVersion,
// libraryDependencies += "io.circe" %% "circe-generic-extras" % "0.14.3",
// libraryDependencies += "io.circe" %% "circe-parser" % circeVersion,
libraryDependencies ++= Seq(
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.5",
"ch.qos.logback" % "logback-classic" % "1.4.14",
),
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-unchecked",
"-language:reflectiveCalls",
"-Xcheckinit",
// "-Xfatal-warnings",
"-Ywarn-dead-code",
"-Ywarn-unused",
"-Ymacro-annotations",
),
)