forked from EECS-NTNU/bismo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
19 lines (16 loc) · 1.01 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
val chiselVersion = System.getProperty("chiselVersion", "2.+")
val scalaVer = System.getProperty("scalaVer", "2.11.6")
lazy val rosettaSettings = Seq (
name := "rosetta_template",
version := "0.1",
scalaVersion := scalaVer,
libraryDependencies ++= ( if (chiselVersion != "None" ) ("edu.berkeley.cs" %% "chisel" % chiselVersion) :: Nil; else Nil),
libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test",
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.4" % "test",
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVer
)
// add fpga-tidbits as unmanaged source dependency, pulled as git submodule
unmanagedSourceDirectories in Compile += baseDirectory.value / "fpga-tidbits" / "src" / "main" / "scala"
// fpga-tidbits stores compile scripts, drivers etc. in the resource dir
unmanagedResourceDirectories in Compile += baseDirectory.value / "fpga-tidbits" / "src" / "main" / "resources"
lazy val rosetta_template = (project in file(".")).settings(rosettaSettings: _*)