summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorducky2016-05-09 16:38:04 -0700
committerducky2016-05-09 16:38:04 -0700
commite0af5d85bc4d671ded7c584633567e235798f0e9 (patch)
tree781df3095bf62a9c5caca332a36368777529be0e
parent163097ac2bc8323d3ddbf1c6c63911bc4cd2bd17 (diff)
Include Chisel Frontend in JAR
-rw-r--r--build.sbt23
1 files changed, 15 insertions, 8 deletions
diff --git a/build.sbt b/build.sbt
index 647fe9cb..06a73d88 100644
--- a/build.sbt
+++ b/build.sbt
@@ -6,13 +6,16 @@ site.includeScaladoc()
ghpages.settings
-lazy val chiselBuildSettings = Seq (
+lazy val commonSettings = Seq (
+ scalaVersion := "2.11.7"
+)
+
+lazy val chiselSettings = Seq (
organization := "edu.berkeley.cs",
version := "3.0",
name := "Chisel3",
git.remoteRepo := "git@github.com:ucb-bar/chisel3.git",
- scalaVersion := "2.11.7",
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { x => false },
@@ -77,12 +80,16 @@ lazy val chiselBuildSettings = Seq (
)
lazy val chiselFrontend = (project in file("chiselFrontend")).
- settings(Seq(
- scalaVersion := "2.11.7",
+ settings(commonSettings: _*).
+ settings(
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
- ): _*)
+ )
lazy val chisel = (project in file(".")).
- settings(chiselBuildSettings: _*).
- dependsOn(chiselFrontend)
-
+ settings(commonSettings: _*).
+ settings(chiselSettings: _*).
+ dependsOn(chiselFrontend).settings(
+ // Include macro classes, resources, and sources main jar.
+ mappings in (Compile, packageBin) <++= mappings in (chiselFrontend, Compile, packageBin),
+ mappings in (Compile, packageSrc) <++= mappings in (chiselFrontend, Compile, packageSrc)
+ )