-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
56 lines (46 loc) · 2.47 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
val chiselVersion = "6.5.0"
ThisBuild / scalaVersion := "2.13.12"
// Settings required for scalafix
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
ThisBuild / scalafixScalaBinaryVersion := scalaBinaryVersion.value
lazy val commonSettings = Seq(
homepage := Some(url("https://github.com/abs-tudelft/tydi-chisel")),
organizationHomepage := Some(url("https://github.com/abs-tudelft/")),
licenses := List(License.Apache2),
version := "0.1.0",
organization := "nl.tudelft",
organizationName := "ABS Group, Delft University of Technology",
startYear := Some(2023),
libraryDependencies += "org.chipsalliance" %% "chisel" % chiselVersion,
scalacOptions ++= Seq("-language:reflectiveCalls", "-deprecation", "-feature", "-Xcheckinit", "-Ymacro-annotations"),
addCompilerPlugin("org.chipsalliance" % "chisel-plugin" % chiselVersion cross CrossVersion.full)
)
lazy val library: Project = (project in file("library"))
.settings(
commonSettings,
name := "Tydi-Chisel",
description := "Tydi-Chisel is an implementation of Tydi concepts in the Chisel HDL.",
libraryDependencies += "edu.berkeley.cs" %% "chiseltest" % "6.0.0" % Test
)
// .dependsOn(testingTools % "test->test")
lazy val testingTools: Project = (project in file("testing"))
.settings(
commonSettings,
name := "Tydi-Chisel-Test",
description := "This package contains the testing tools for Tydi-Chisel",
libraryDependencies += "edu.berkeley.cs" %% "chiseltest" % "6.0.0"
)
.dependsOn(library % "compile->compile") // Make testingTools project depend on the library project
// Aggregate projects to build them together
lazy val root = (project in file("."))
.aggregate(library, testingTools)
.settings(
publish := {}, // Disable publishing for the root project
publishLocal := {}
)
val CICommands =
Seq("clean", "compile", "test", "scalafmtCheckAll", "scalafmtSbtCheck", "scalafixAll --check").mkString(";")
val PrepareCICommands = Seq("scalafixAll", "scalafmtAll", "scalafmtSbt").mkString(";")
addCommandAlias("ci", CICommands)
addCommandAlias("preCI", PrepareCICommands)