From 2a5aeeae246cabfa31eaa8b82ff7199c90af84a8 Mon Sep 17 00:00:00 2001 From: Howard Mao Date: Mon, 8 Aug 2016 19:31:03 -0700 Subject: [PATCH] add sbt pack plugin (#197) --- project/build.scala | 3 ++- project/plugins.sbt | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/project/build.scala b/project/build.scala index 9a23a338..71ad41b7 100644 --- a/project/build.scala +++ b/project/build.scala @@ -2,6 +2,7 @@ import sbt._ import Keys._ import complete._ import complete.DefaultParsers._ +import xerial.sbt.Pack._ object BuildSettings extends Build { @@ -28,7 +29,7 @@ object BuildSettings extends Build { lazy val make = inputKey[Unit]("trigger backend-specific makefile command") val setMake = NotSpace ~ ( Space ~> NotSpace ) - val chipSettings = Seq( + val chipSettings = packAutoSettings ++ Seq( addons := { val a = sys.env.getOrElse("ROCKETCHIP_ADDONS", "") println(s"Using addons: $a") diff --git a/project/plugins.sbt b/project/plugins.sbt index e12e95d0..d10a6dfb 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -5,3 +5,5 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.3") addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.8.1") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.5.0") + +addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.8.0")