Feature variants (#376)
Migrate from buildSrc to build-logic. Setup feature variants.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user