Skip to content

Commit db654df

Browse files
committed
Remove all os/arch negotiation code
1 parent aa1fda2 commit db654df

9 files changed

Lines changed: 8 additions & 123 deletions

File tree

build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/FFmpegRule.kt

Lines changed: 0 additions & 46 deletions
This file was deleted.

build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/LwjglRule.kt

Lines changed: 0 additions & 48 deletions
This file was deleted.

build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/Utils.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import org.gradle.nativeplatform.MachineArchitecture
66
import org.gradle.nativeplatform.OperatingSystemFamily
77
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
88

9-
data class JvmNativeVariant(val targetName: String, val os: String, val arch: String)
10-
119
val currentOperatingSystemName: String = DefaultNativePlatform.getCurrentOperatingSystem().toFamilyName()
1210
val currentArchitectureName: String = DefaultNativePlatform.getCurrentArchitecture().name
1311

build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/component-metadata-rule.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,3 @@ package org.openrndr.extra.convention
22

33
addHostMachineAttributesToRuntimeConfigurations()
44

5-
dependencies {
6-
components {
7-
all<LwjglRule>()
8-
withModule<FFmpegRule>("org.bytedeco:javacpp")
9-
withModule<FFmpegRule>("org.bytedeco:ffmpeg")
10-
}
11-
}

build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/kotlin-jvm.gradle.kts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ val sharedLibs = extensions.getByType(VersionCatalogsExtension::class.java).name
1111
val openrndr = extensions.getByType(VersionCatalogsExtension::class.java).named("openrndr")
1212
val libs = extensions.getByType(VersionCatalogsExtension::class.java).named("libs")
1313

14-
println("all is well")
15-
1614
val shouldPublish = project.name !in setOf("openrndr-demos", "orx-git-archiver-gradle")
1715

1816
plugins {
@@ -34,7 +32,6 @@ repositories {
3432

3533
group = "org.openrndr.extra"
3634

37-
println("getting main sourceset")
3835
val main: SourceSet by project.sourceSets.getting
3936

4037
@Suppress("UNUSED_VARIABLE")
@@ -60,16 +57,12 @@ dependencies {
6057
testImplementation(sharedLibs.findLibrary("kotlin-test").get())
6158
testRuntimeOnly(sharedLibs.findLibrary("slf4j-simple").get())
6259
"demoImplementation"(main.output.classesDirs + main.runtimeClasspath)
63-
println("set up demo impl")
6460
"demoImplementation"(openrndr.findLibrary("application").get())
6561
"demoImplementation"(openrndr.findLibrary("orextensions").get())
66-
println("done part 1")
67-
if (DefaultNativePlatform.getCurrentOperatingSystem().isMacOsX) {
68-
"demoRuntimeOnly"(libs.findLibrary("openrndr-gl3-natives-macos-arm64").get())
69-
}
70-
"demoRuntimeOnly"(libs.findLibrary("openrndr-gl3-core").get())
62+
63+
"demoRuntimeOnly"(openrndr.findLibrary("gl3").get())
64+
7165
"demoRuntimeOnly"(sharedLibs.findLibrary("slf4j-simple").get())
72-
println("still good")
7366
}
7467

7568
tasks {

build-logic/orx-convention/src/main/kotlin/org/openrndr/extra/convention/kotlin-multiplatform.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ kotlin {
6464
dependsOn(compileTaskProvider)
6565
}
6666
dependencies {
67-
if (DefaultNativePlatform.getCurrentOperatingSystem().isMacOsX) {
68-
runtimeOnly(libs.findLibrary("openrndr-gl3-natives-macos-arm64").get())
69-
}
67+
runtimeOnly(openrndr.findLibrary("gl3").get())
68+
7069
}
7170
}
7271
}
@@ -112,7 +111,7 @@ kotlin {
112111
dependencies {
113112
implementation(openrndr.findLibrary("application").get())
114113
implementation(openrndr.findLibrary("orextensions").get())
115-
runtimeOnly(libs.findLibrary("openrndr-gl3-core").get())
114+
runtimeOnly(openrndr.findLibrary("gl3").get())
116115
runtimeOnly(sharedLibs.findLibrary("slf4j-simple").get())
117116
}
118117
}

gradle/libs.versions.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ mockk = { group = "io.mockk", name = "mockk", version.ref = "mockk"}
3939

4040
processing-core = { group = "org.processing", name = "core", version.ref = "processing"}
4141

42-
openrndr-extensions = { group = "org.openrndr", name = "openrndr-extensions", version.ref = "openrndr" }
43-
openrndr-gl3-core = { group = "org.openrndr", name = "openrndr-gl3", version.ref = "openrndr" }
44-
openrndr-gl3-natives-macos-arm64 = { group = "org.openrndr", name = "openrndr-gl3-natives-macos-arm64", version.ref = "openrndr" }
45-
4642
boofcv = { group = "org.boofcv", name = "boofcv-core", version.ref = "boofcv" }
4743
libfreenect = { group = "org.bytedeco", name = "libfreenect", version.ref = "libfreenect" }
4844
librealsense = { group = "org.bytedeco", name = "librealsense2", version.ref = "librealsense" }

orx-jvm/orx-kinect-v1-demo/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ dependencies {
1010
implementation(project(":orx-fx"))
1111
implementation(project(":orx-jvm:orx-gui"))
1212
runtimeOnly(project(":orx-jvm:orx-kinect-v1-${(gradle as ExtensionAware).extra["openrndrClassifier"]}"))
13-
runtimeOnly(libs.openrndr.gl3.core)
13+
runtimeOnly(openrndr.gl3)
1414
}

orx-jvm/orx-syphon/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ plugins {
44

55
dependencies {
66
implementation(openrndr.application)
7-
implementation(libs.openrndr.gl3.core)
7+
implementation(openrndr.gl3)
88
}

0 commit comments

Comments
 (0)