mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-04 11:50:44 +00:00
Rework
This commit is contained in:
+2
-1
@@ -300,7 +300,8 @@ project.ext {
|
||||
useBundledJavaFx = fullVersion
|
||||
bundledJdkJavaFx = ModuleFinder.ofSystem().find("javafx.base").isPresent()
|
||||
// Define a custom JavaFX SDK location
|
||||
// customJavaFxPath = null
|
||||
// customJavaFxLibsPath = file("C:\\Projects\\jfx\\build\\sdk/lib")
|
||||
// customJavaFxJmodsPath = file("C:\\Projects\\jfx\\build\\jmods")
|
||||
|
||||
// Other
|
||||
deeplApiKey = findProperty('DEEPL_API_KEY') != null ? findProperty('DEEPL_API_KEY') : ""
|
||||
|
||||
Vendored
+4
-1
@@ -47,9 +47,12 @@ jlink {
|
||||
options.addAll('--strip-native-debug-symbols', 'exclude-debuginfo-files')
|
||||
}
|
||||
|
||||
if (useBundledJavaFx && !bundledJdkJavaFx) {
|
||||
if (hasProperty("customJavaFxJmodsPath")) {
|
||||
addExtraModulePath(customJavaFxJmodsPath.toString())
|
||||
} else if (useBundledJavaFx && !bundledJdkJavaFx) {
|
||||
addExtraModulePath(layout.projectDirectory.dir("javafx/${platformName}/${arch}").toString())
|
||||
}
|
||||
|
||||
if (useBundledJna) {
|
||||
addExtraModulePath(layout.projectDirectory.dir("jna/${platformName}/${arch}").toString())
|
||||
}
|
||||
|
||||
@@ -18,14 +18,18 @@ configurations {
|
||||
javafx
|
||||
}
|
||||
|
||||
if (hasProperty("customJavaFxPath")) {
|
||||
if (hasProperty("customJavaFxLibsPath")) {
|
||||
repositories {
|
||||
flatDir {
|
||||
dirs customJavaFxPath
|
||||
dirs customJavaFxLibsPath
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
javafx fileTree(dir: customJavaFxPath, include: '*.jar')
|
||||
javafx files("$customJavaFxLibsPath/javafx.base.jar")
|
||||
javafx files("$customJavaFxLibsPath/javafx.controls.jar")
|
||||
javafx files("$customJavaFxLibsPath/javafx.graphics.jar")
|
||||
javafx files("$customJavaFxLibsPath/javafx.media.jar")
|
||||
javafx files("$customJavaFxLibsPath/javafx.web.jar")
|
||||
}
|
||||
} else if (!bundledJdkJavaFx) {
|
||||
// Always use maven version for development
|
||||
|
||||
Reference in New Issue
Block a user