summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorJim Lawson2016-06-03 12:38:28 -0700
committerJim Lawson2016-06-03 12:38:28 -0700
commit9dd286b8613beba58e053ed00d15877d3a4b02c9 (patch)
tree6ae9268d8e7e6532e5b8a0f3ad51d6c345623376 /build.sbt
parent70271cd8c3811cb518e81d1d5eb3ed20cb1e2063 (diff)
parentfd53af8642237998e23456a3fd1648ac84607db0 (diff)
Merge branch 'master' into front_end_dependency
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 284a9621..900cb5c6 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)
)