summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorducky2016-05-05 13:22:04 -0700
committerducky2016-05-20 16:02:49 -0700
commite92f2f69477a6ce86fc148a1a95db5797f2e3051 (patch)
tree2f1511e3395299fd4f1e98c3f75886e06c0cd096 /build.sbt
parent84de04606bc972bd6a83f67913a0e30c4c46ee5e (diff)
Implementation of source locators
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt15
1 files changed, 13 insertions, 2 deletions
diff --git a/build.sbt b/build.sbt
index 06a73d88..be039872 100644
--- a/build.sbt
+++ b/build.sbt
@@ -79,17 +79,28 @@ lazy val chiselSettings = Seq (
// }
)
-lazy val chiselFrontend = (project in file("chiselFrontend")).
+lazy val coreMacros = (project in file("coreMacros")).
settings(commonSettings: _*).
settings(
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
)
+lazy val chiselFrontend = (project in file("chiselFrontend")).
+ settings(commonSettings: _*).
+ settings(
+ libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
+ ).
+ dependsOn(coreMacros)
+
lazy val chisel = (project in file(".")).
settings(commonSettings: _*).
settings(chiselSettings: _*).
- dependsOn(chiselFrontend).settings(
+ dependsOn(coreMacros).
+ dependsOn(chiselFrontend).
+ settings(
// Include macro classes, resources, and sources main jar.
+ mappings in (Compile, packageBin) <++= mappings in (coreMacros, Compile, packageBin),
+ mappings in (Compile, packageSrc) <++= mappings in (coreMacros, Compile, packageSrc),
mappings in (Compile, packageBin) <++= mappings in (chiselFrontend, Compile, packageBin),
mappings in (Compile, packageSrc) <++= mappings in (chiselFrontend, Compile, packageSrc)
)