Class LwjglNatives
java.lang.Object
com.cleanroommc.gradle.api.util.LwjglNatives
Wires the "lwjglNative" configuration, usage is as follows:
dependencies {
lwjglNative 'org.lwjgl:lwjgl'
lwjglNative 'org.lwjgl:lwjgl-opengl'
}
LWJGL ships one native jar per platform. But the published metadata has to serve every distribution.
Runtime classpath takes Platform.lwjglNativesClassifier().
While publications take every classifier in cleanroom.loader.lwjglNativesClassifiers.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisForCurrentPlatform(String notation) publishedCoordinates(org.gradle.api.Project project, org.gradle.api.provider.ListProperty<String> classifiers) static void
-
Field Details
-
CONFIGURATION_NAME
- See Also:
-
CURRENT_CONFIGURATION_NAME
- See Also:
-
ALL_CONFIGURATION_NAME
- See Also:
-
CLASSIFIERS
Every platform LWJGL 3 publishes natives for. Listing them all is what lets a workspace be developed and run on any of them. The publication includes everything, and each machine resolves their own classifier.Complete as of LWJGL 3.3.6, which is when ppc64le, riscv64 and freebsd were first published.
-
-
Method Details
-
register
public static void register(org.gradle.api.Project project, org.gradle.api.provider.ListProperty<String> classifiers) -
publishedCoordinates
-
isForCurrentPlatform
-