Skip to content

Commit

Permalink
Some build improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
szeiger committed Nov 21, 2024
1 parent 766463d commit d122ad4
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 4 deletions.
23 changes: 19 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ Global / version := "0.1-SNAPSHOT"

//cancelable in Global := false

val release = "22"

val runtimeOpts = Seq(
"--add-modules", "jdk.incubator.vector",
"--add-opens", "java.base/jdk.internal.misc=ALL-UNNAMED",
"--add-opens", "java.base/java.lang=ALL-UNNAMED",
)
val compileOpts = Seq(
"--add-modules", "jdk.incubator.vector",
"--release", release,
)

javaOptions in Global ++= runtimeOpts
javacOptions in Global ++= compileOpts
scalacOptions in Global ++= Seq("-java-output-version", release)

// javaOptions in Global += "-Djmh.blackhole.autoDetect=false"

Expand All @@ -33,18 +37,27 @@ Global / scalaVersion := "3.5.2"

val hedgehogVersion = "0.10.1"

lazy val main = (project in file("."))
.aggregate(LocalProject("bench"), LocalProject("test"), LocalProject("scalaApi"))
lazy val root = (project in file("."))
.aggregate(LocalProject("core"), LocalProject("bench"), LocalProject("test"), LocalProject("scalaApi"))
.settings(
crossPaths := false,
autoScalaLibrary := false,
name := "perfio-root",
publish / skip := true,
)

lazy val core = (project in file("core"))
.settings(
crossPaths := false,
autoScalaLibrary := false,
name := "perfio",
)

lazy val scalaApi = (project in file("scalaapi"))
.dependsOn(main)
.dependsOn(core)
.settings(
name := "perfio-scala",
publish / skip := true,
)

lazy val bench = (project in file("bench"))
Expand Down Expand Up @@ -76,9 +89,10 @@ lazy val test_ = Project("test", file("test"))
)

lazy val protoRuntime = (project in file("proto-runtime"))
.dependsOn(main)
.dependsOn(core)
.settings(
name := "perfio-proto-runtime",
publish / skip := true,
)

lazy val proto = (project in file("proto"))
Expand All @@ -102,6 +116,7 @@ lazy val proto = (project in file("proto"))
val outs = cachedCompile(srcs ++ cp.iterator.map(_.data).toSet).toSeq.sorted
outs
}.taskValue,
publish / skip := true,
)

lazy val protoBench = (project in file("proto-bench"))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions core/src/main/java/perfio/internal/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// Internal classes for use by other PerfIO components. Not public API.
package perfio.internal;
2 changes: 2 additions & 0 deletions core/src/main/java/perfio/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// PerfIO API
package perfio;

0 comments on commit d122ad4

Please sign in to comment.