mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
39 lines
1.1 KiB
Groovy
39 lines
1.1 KiB
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'
|
|
}
|
|
|
|
if (System.getProperty ("os.arch") == 'aarch64') {
|
|
platform += '-aarch64'
|
|
}
|
|
|
|
configurations {
|
|
javafx
|
|
}
|
|
|
|
if (customJavaFxPath != null) {
|
|
repositories {
|
|
flatDir {
|
|
dirs customJavaFxPath
|
|
}
|
|
}
|
|
dependencies {
|
|
javafx fileTree(dir: customJavaFxPath, include: '*.jar')
|
|
}
|
|
} else {
|
|
// Always use maven version for now
|
|
dependencies {
|
|
javafx "org.openjfx:javafx-base:${javafxVersion}:${platform}"
|
|
javafx "org.openjfx:javafx-controls:${javafxVersion}:${platform}"
|
|
javafx "org.openjfx:javafx-graphics:${javafxVersion}:${platform}"
|
|
javafx "org.openjfx:javafx-media:${javafxVersion}:${platform}"
|
|
javafx "org.openjfx:javafx-web:${javafxVersion}:${platform}"
|
|
}
|
|
}
|