mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-08-17 11:01:48 +12:00
29 lines
792 B
Groovy
29 lines
792 B
Groovy
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
|
|
|
def currentOS = DefaultNativePlatform.currentOperatingSystem;
|
|
def platform = null
|
|
if (currentOS.isWindows()) {
|
|
platform = 'win'
|
|
} else if (currentOS.isLinux()) {
|
|
platform = 'linux'
|
|
} else if (currentOS.isMacOsX()) {
|
|
platform = 'mac'
|
|
}
|
|
|
|
def arch = System.getProperty ("os.arch");
|
|
if (arch == 'aarch64') {
|
|
platform += '-aarch64'
|
|
}
|
|
|
|
configurations {
|
|
dep
|
|
}
|
|
|
|
dependencies {
|
|
dep "org.openjfx:javafx-base:20.0.1:${platform}"
|
|
dep "org.openjfx:javafx-controls:20.0.1:${platform}"
|
|
dep "org.openjfx:javafx-graphics:20.0.1:${platform}"
|
|
dep "org.openjfx:javafx-media:20.0.1:${platform}"
|
|
dep "org.openjfx:javafx-web:20.0.1:${platform}"
|
|
dep "org.openjfx:javafx-swing:20.0.1:${platform}"
|
|
}
|