Feature variants (#376)

Migrate from buildSrc to build-logic. Setup feature variants.
This commit is contained in:
Edwin Jakobs
2025-09-17 01:03:02 -07:00
committed by GitHub
parent 2979963d3f
commit b7ba6f6daa
100 changed files with 424 additions and 326 deletions

View File

@@ -2,16 +2,8 @@ import org.gradle.internal.os.OperatingSystem
rootProject.name = "orx"
@Suppress("INACCESSIBLE_TYPE")
// This is equivalent to `gradle.ext` https://stackoverflow.com/a/65377323/17977931
val openrndrClassifier: String by (gradle as ExtensionAware).extra(
"natives-" + when (val os = OperatingSystem.current()) {
OperatingSystem.WINDOWS -> "windows"
OperatingSystem.LINUX -> "linux-x64"
OperatingSystem.MAC_OS -> "macos"
else -> error("Unsupported operating system: $os")
}
)
includeBuild("build-logic")
dependencyResolutionManagement {
repositories {
@@ -88,9 +80,6 @@ include(
"orx-quadtree",
"orx-jvm:orx-rabbit-control",
"orx-jvm:orx-realsense2",
"orx-jvm:orx-realsense2-natives-linux-x64",
"orx-jvm:orx-realsense2-natives-macos",
"orx-jvm:orx-realsense2-natives-windows",
"orx-shader-phrases",
"orx-shade-styles",
"orx-shapes",
@@ -102,10 +91,6 @@ include(
"orx-triangulation",
"orx-jvm:orx-kinect-common",
"orx-jvm:orx-kinect-v1",
"orx-jvm:orx-kinect-v1-natives-linux-arm64",
"orx-jvm:orx-kinect-v1-natives-linux-x64",
"orx-jvm:orx-kinect-v1-natives-macos",
"orx-jvm:orx-kinect-v1-natives-windows",
"orx-jvm:orx-kinect-v1-demo",
"orx-jvm:orx-video-profiles",
"orx-depth-camera",