1
0

simplify .sbt files

This commit is contained in:
Henry Cook 2015-07-28 14:35:26 -07:00
parent ce161b83e3
commit 9d67ef4ee2
4 changed files with 3 additions and 26 deletions

View File

@ -5,3 +5,6 @@ version := "1.2"
name := "rocket"
scalaVersion := "2.10.2"
libraryDependencies ++= (Seq("chisel", "hardfloat", "uncore").map {
dep: String => sys.props.get(dep + "Version") map { "edu.berkeley.cs" %% dep % _ }}).flatten

View File

@ -1,10 +0,0 @@
// Provide a managed dependency on chisel if -DchiselVersion="" is
// supplied on the command line.
val chiselVersion_r = System.getProperty("chiselVersion", "None")
// _r a temporary fix until sbt 13.6 https://github.com/sbt/sbt/issues/1465
libraryDependencies ++= ( if (chiselVersion_r != "None" ) (
"edu.berkeley.cs" %% "chisel" % chiselVersion_r
) :: Nil; else Nil)

View File

@ -1,8 +0,0 @@
// Provide a managed dependency on chisel if -DhardfloatVersion="" is
// supplied on the command line.
val hardfloatVersion = System.getProperty("hardfloatVersion", "None")
libraryDependencies ++= ( if (hardfloatVersion != "None" ) (
"edu.berkeley.cs" %% "hardfloat" % hardfloatVersion
) :: Nil; else Nil)

View File

@ -1,8 +0,0 @@
// Provide a managed dependency on chisel if -DuncoreVersion="" is
// supplied on the command line.
val uncoreVersion = System.getProperty("uncoreVersion", "None")
libraryDependencies ++= ( if (uncoreVersion != "None" ) (
"edu.berkeley.cs" %% "uncore" % uncoreVersion
) :: Nil; else Nil)