restructure macros for better submoduling

This commit is contained in:
Donggyu Kim
2017-07-25 13:48:58 -07:00
committed by edwardcwang
parent 607e810b1d
commit 9de1f5f2c0
28 changed files with 27 additions and 26 deletions

View File

@@ -2,31 +2,33 @@
import Dependencies._ import Dependencies._
lazy val commonSettings = Seq(
organization := "edu.berkeley.cs",
version := "0.1-SNAPSHOT",
scalaVersion := "2.11.8",
scalacOptions := Seq("-deprecation", "-feature", "-language:reflectiveCalls"),
libraryDependencies ++= commonDependencies
)
val defaultVersions = Map( val defaultVersions = Map(
"chisel3" -> "3.1-SNAPSHOT", "chisel3" -> "3.1-SNAPSHOT",
"chisel-iotesters" -> "1.2-SNAPSHOT" "chisel-iotesters" -> "1.2-SNAPSHOT"
) )
lazy val mdf = RootProject(file("mdf/scalalib")) lazy val commonSettings = Seq(
organization := "edu.berkeley.cs",
version := "0.1-SNAPSHOT",
scalaVersion := "2.11.8",
scalacOptions := Seq("-deprecation", "-feature", "-language:reflectiveCalls"),
libraryDependencies ++= commonDependencies,
libraryDependencies ++= Seq("chisel3","chisel-iotesters").map {
dep: String => "edu.berkeley.cs" %% dep % sys.props.getOrElse(dep + "Version", defaultVersions(dep))
},
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
)
)
lazy val tapeout = (project in file("tapeout")) lazy val mdf = (project in file("mdf/scalalib"))
lazy val macros = (project in file("macros"))
.dependsOn(mdf) .dependsOn(mdf)
.settings(commonSettings) .settings(commonSettings)
.settings(
libraryDependencies ++= Seq("chisel3","chisel-iotesters").map { lazy val tapeout = (project in file("tapeout"))
dep: String => "edu.berkeley.cs" %% dep % sys.props.getOrElse(dep + "Version", defaultVersions(dep)) .settings(commonSettings)
},
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
)
)
.settings(scalacOptions in Test ++= Seq("-language:reflectiveCalls")) .settings(scalacOptions in Test ++= Seq("-language:reflectiveCalls"))
lazy val root = (project in file(".")).aggregate(macros, tapeout)

View File

@@ -1,6 +1,6 @@
// See LICENSE for license details. // See LICENSE for license details.
package barstools.tapeout.transforms.macros package barstools.macros
import firrtl._ import firrtl._
import firrtl.ir._ import firrtl.ir._

View File

@@ -1,6 +1,6 @@
// See LICENSE for license details. // See LICENSE for license details.
package barstools.tapeout.transforms.macros package barstools.macros
import firrtl._ import firrtl._
import firrtl.ir._ import firrtl.ir._

View File

@@ -1,6 +1,6 @@
// See LICENSE for license details. // See LICENSE for license details.
package barstools.tapeout.transforms.macros package barstools.macros
import firrtl._ import firrtl._
import firrtl.ir._ import firrtl.ir._

View File

@@ -1,6 +1,5 @@
package barstools.tapeout.transforms.macros.test package barstools.macros
import barstools.tapeout.transforms.macros._
import firrtl.ir.{Circuit, NoInfo} import firrtl.ir.{Circuit, NoInfo}
import firrtl.passes.RemoveEmpty import firrtl.passes.RemoveEmpty
import firrtl.Parser.parse import firrtl.Parser.parse

View File

@@ -1,4 +1,4 @@
package barstools.tapeout.transforms.macros.test package barstools.macros
import firrtl.Utils.ceilLog2 import firrtl.Utils.ceilLog2
import mdf.macrolib._ import mdf.macrolib._

View File

@@ -1,4 +1,4 @@
//~ package barstools.tapeout.transforms.macros.test //~ package barstools.macros
//~ import java.io.File //~ import java.io.File