From bf2ff7804eda45a6a690a32a11c39cafe9481539 Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Thu, 17 Apr 2014 17:01:40 -0700 Subject: [PATCH] Add chisel-dependent.sbt for -DchiselVersion="latest.release" If -DchiselVersion is specified on the command line, add the appropriate chisel library to libraryDependencies. --- uncore/chisel-dependent.sbt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 uncore/chisel-dependent.sbt diff --git a/uncore/chisel-dependent.sbt b/uncore/chisel-dependent.sbt new file mode 100644 index 00000000..fa8d5490 --- /dev/null +++ b/uncore/chisel-dependent.sbt @@ -0,0 +1,6 @@ +// Provide a managed dependency on chisel if -DchiselVersion="" is +// supplied on the command line. + +val chiselVersion = System.getProperty("chiselVersion", "None") + +libraryDependencies ++= ( if (chiselVersion != "None" ) ("edu.berkeley.cs" %% "chisel" % chiselVersion) :: Nil; else Nil)