-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt.local
40 lines (35 loc) · 2 KB
/
build.sbt.local
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
ThisBuild / version := "1.0"
ThisBuild / scalaVersion := "2.11.12"
ThisBuild / organization := "online.blackwire"
// sometimes we want to work against a local
// SpinalHDL checkout of dev branch, or own fork
// https://github.com/SpinalHDL/SpinalHDL.git
// ad62c4ea3fc0acf70885441a88fe8f2336e4cb20
val spinalVersion = "dev"
val spinalDir = "../SpinalHDL"
val spinalCore = "com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion
val spinalLib = "com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion
val spinalSim = "com.github.spinalhdl" %% "spinalhdl-sim" % spinalVersion
val spinalTester = "com.github.spinalhdl" %% "spinalhdl-tester" % spinalVersion
val spinalIdslPlugin = compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion)
val sourceCode = "com.lihaoyi" %% "sourcecode" % "0.2.7"
val scalaTest = "org.scalatest" % "scalatest_2.11" % "2.2.1"
// for {Dense,Sparse}{Vector,Matrix) used by LowCost.scala_
//val breeze = "org.scalanlp" %% "breeze" % "0.11.2"
lazy val spinalCorundum = (project in file("."))
.settings(
name := "SpinalCorundum",
libraryDependencies ++= Seq(sourceCode, scalaTest),
//libraryDependencies ++= Seq(breeze),
//libraryDependencies ++= Seq(spinalCore, spinalLib, spinalSim, spinalTester, spinalIdslPlugin)
// the following 3 lines take SpinalHDL from a local checkout, above line must be commented out
scalacOptions += s"-Xplugin:${new File(baseDirectory.value + s"/" + spinalDir + s"/idslplugin/target/scala-2.11/spinalhdl-idsl-plugin_2.11-$spinalVersion.jar")}",
scalacOptions += s"-Xplugin-require:idsl-plugin"
).dependsOn(localHdlIdslPlugin, localHdlSim, localHdlCore, localHdlLib, localHdlTester)
lazy val localHdlIdslPlugin = ProjectRef(file(spinalDir), "idslplugin")
lazy val localHdlSim = ProjectRef(file(spinalDir), "sim")
lazy val localHdlCore = ProjectRef(file(spinalDir), "core")
lazy val localHdlLib = ProjectRef(file(spinalDir), "lib")
lazy val localHdlTester = ProjectRef(file(spinalDir), "tester")
// for simulation
fork := true