reorganize source directory
This commit is contained in:
parent
1906a21bd8
commit
99b9b60bc4
6
build.sc
6
build.sc
|
@ -10,7 +10,7 @@ import mill.bsp._
|
|||
|
||||
object playground extends SbtModule with ScalafmtModule { m =>
|
||||
val useChisel3 = false
|
||||
override def millSourcePath = os.pwd
|
||||
override def millSourcePath = os.pwd / "src"
|
||||
override def scalaVersion = "2.13.12"
|
||||
override def scalacOptions = Seq(
|
||||
"-language:reflectiveCalls",
|
||||
|
@ -19,7 +19,7 @@ object playground extends SbtModule with ScalafmtModule { m =>
|
|||
"-Xcheckinit"
|
||||
)
|
||||
override def sources = T.sources {
|
||||
super.sources() ++ Seq(PathRef(millSourcePath / "playground" / "src" ))
|
||||
super.sources() ++ Seq(PathRef(millSourcePath / "main"))
|
||||
}
|
||||
override def ivyDeps = Agg(
|
||||
if (useChisel3) ivy"edu.berkeley.cs::chisel3:3.6.0" else
|
||||
|
@ -31,7 +31,7 @@ object playground extends SbtModule with ScalafmtModule { m =>
|
|||
)
|
||||
object test extends SbtModuleTests with TestModule.ScalaTest {
|
||||
override def sources = T.sources {
|
||||
super.sources() ++ Seq(PathRef(millSourcePath / "playground" / "test" / "src"))
|
||||
super.sources() ++ Seq(PathRef(millSourcePath / "test"))
|
||||
}
|
||||
override def ivyDeps = super.ivyDeps() ++ Agg(
|
||||
if (useChisel3) ivy"edu.berkeley.cs::chiseltest:0.6.0" else
|
||||
|
|
Loading…
Reference in New Issue