reorganize source directory

This commit is contained in:
Zihao Yu 2024-04-10 13:30:51 +08:00
parent 1906a21bd8
commit 99b9b60bc4
5 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import mill.bsp._
object playground extends SbtModule with ScalafmtModule { m => object playground extends SbtModule with ScalafmtModule { m =>
val useChisel3 = false val useChisel3 = false
override def millSourcePath = os.pwd override def millSourcePath = os.pwd / "src"
override def scalaVersion = "2.13.12" override def scalaVersion = "2.13.12"
override def scalacOptions = Seq( override def scalacOptions = Seq(
"-language:reflectiveCalls", "-language:reflectiveCalls",
@ -19,7 +19,7 @@ object playground extends SbtModule with ScalafmtModule { m =>
"-Xcheckinit" "-Xcheckinit"
) )
override def sources = T.sources { override def sources = T.sources {
super.sources() ++ Seq(PathRef(millSourcePath / "playground" / "src" )) super.sources() ++ Seq(PathRef(millSourcePath / "main"))
} }
override def ivyDeps = Agg( override def ivyDeps = Agg(
if (useChisel3) ivy"edu.berkeley.cs::chisel3:3.6.0" else 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 { object test extends SbtModuleTests with TestModule.ScalaTest {
override def sources = T.sources { 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( override def ivyDeps = super.ivyDeps() ++ Agg(
if (useChisel3) ivy"edu.berkeley.cs::chiseltest:0.6.0" else if (useChisel3) ivy"edu.berkeley.cs::chiseltest:0.6.0" else