Skip to content

Commit

Permalink
build.sc: separate build and common dependencies (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
poemonsense authored Oct 9, 2023
1 parent 458e9b1 commit 5ce36d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
14 changes: 2 additions & 12 deletions build.sc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import mill._
import scalalib._
import scalafmt._
import $file.common
import $file.`rocket-chip`.common
import $file.`rocket-chip`.cde.common
import $file.`rocket-chip`.hardfloat.common
Expand Down Expand Up @@ -76,18 +77,7 @@ object utility extends SbtModule with HasChisel {
}


trait HuanCunModule extends ScalaModule {

def rocketModule: ScalaModule

def utilityModule: ScalaModule

override def moduleDeps = super.moduleDeps ++ Seq(rocketModule, utilityModule)

}


object HuanCun extends SbtModule with HasChisel with HuanCunModule {
object HuanCun extends SbtModule with HasChisel with millbuild.common.HuanCunModule {

override def millSourcePath = millOuterCtx.millSourcePath

Expand Down
12 changes: 12 additions & 0 deletions common.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import mill._
import scalalib._

trait HuanCunModule extends ScalaModule {

def rocketModule: ScalaModule

def utilityModule: ScalaModule

override def moduleDeps = super.moduleDeps ++ Seq(rocketModule, utilityModule)

}

0 comments on commit 5ce36d8

Please sign in to comment.