-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
63 lines (55 loc) · 1.95 KB
/
build.sbt
File metadata and controls
63 lines (55 loc) · 1.95 KB
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
60
61
62
63
ThisBuild / version := "1.0"
ThisBuild / scalaVersion := "2.12.17"
//ThisBuild / scalaVersion := "2.13"
//ThisBuild / scalaVersion := "2.13.12"
//ThisBuild / scalaVersion := "2.12.12"
//ThisBuild / scalaVersion := "2.12.15"
ThisBuild / organization := "org.example"
val spinalVersion = (
//"1.9.3"
//"dev"
//"1.10.0"
//"1.10.1"
"1.10.2a"
)
val spinalCore = "com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion
val spinalLib = "com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion
val spinalIdslPlugin = compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion)
// BEGIN: Stuff for larger projects
//val depVersion = "2a16a9ee912e627d3ccaea02e7ecc95ac1193b83"
//lazy val libcheesevoyage = RootProject(uri("https://github.com/fl4shk/libcheesevoyage.git#%s".format(depVersion)))
//libcheesevoyage / scalacOptions ++= Seq(
// "-Ybackend-parallelism", "4",
// "-Ybackend-worker-queue", "4",
// "-P:semanticdb:sourceroot:."
//)
// END: Stuff for larger projects
lazy val libcheesevoyage = (
project in file("./submodules/libsnowhouse/submodules/libcheesevoyage")
)
.settings(
Compile / scalaSource := baseDirectory.value / "hw" / "spinal",
libraryDependencies ++= Seq(spinalCore, spinalLib, spinalIdslPlugin)
)
lazy val libsnowhouse = (project in file("./submodules/libsnowhouse"))
.settings(
Compile / scalaSource := baseDirectory.value / "hw" / "spinal",
libraryDependencies ++= Seq(spinalCore, spinalLib, spinalIdslPlugin)
)
lazy val flare_cpu = (project in file("."))
//.aggregate(libcheesevoyage)
.settings(
Compile / scalaSource := baseDirectory.value / "hw" / "spinal",
libraryDependencies ++= Seq(
//libcheesevoyage,
spinalCore,
spinalLib,
spinalIdslPlugin,
),
scalacOptions ++= Seq(
"-Ybackend-parallelism", "4",
"-Ybackend-worker-queue", "4",
"-P:semanticdb:sourceroot:."
)
).dependsOn(libsnowhouse, libcheesevoyage)
fork := true