mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-02 02:31:21 +12:00
27 lines
734 B
Groovy
27 lines
734 B
Groovy
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
|
|
|
def currentOS = DefaultNativePlatform.currentOperatingSystem;
|
|
def platform
|
|
if (currentOS.isWindows()) {
|
|
platform = 'win'
|
|
} else if (currentOS.isLinux()) {
|
|
platform = 'linux'
|
|
} else if (currentOS.isMacOsX()) {
|
|
platform = 'mac'
|
|
def macArch = System.getProperty ("os.arch");
|
|
if (macArch == 'aarch64') {
|
|
platform = 'mac-aarch64'
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
dep
|
|
}
|
|
|
|
dependencies {
|
|
dep "org.openjfx:javafx-base:19:${platform}"
|
|
dep "org.openjfx:javafx-controls:19:${platform}"
|
|
dep "org.openjfx:javafx-graphics:19:${platform}"
|
|
dep "org.openjfx:javafx-media:19:${platform}"
|
|
dep "org.openjfx:javafx-web:19:${platform}"
|
|
}
|