[Build] Make imgui-app to use a freetype version of library for Windows
It's absolutely safe to use FreeType for Windows, since dll's are compiled fully statically.
This commit is contained in:
1 parent
d80850104c
commit
44c5ca18ca
2 files changed
+5
-6
No files matched your search
@@ -14,11 +14,7 @@ dependencies {
|
||||
implementation project(':imgui-app')
|
||||
}
|
||||
|
||||
task start(type: JavaExec, dependsOn: build) {
|
||||
main = 'Main'
|
||||
classpath = sourceSets.test.runtimeClasspath
|
||||
jvmArgs = ["-Dimgui.library.path=${System.getProperty('libPath', '../bin')}"]
|
||||
|
||||
run {
|
||||
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
|
||||
jvmArgs += ['-XstartOnFirstThread', '-Djava.awt.headless=true']
|
||||
}
|
||||
|
||||
@@ -31,11 +31,14 @@ dependencies {
|
||||
|
||||
jar {
|
||||
from('../bin') {
|
||||
include 'imgui-java64.dll'
|
||||
include 'libimgui-java64.so'
|
||||
include 'libimgui-java64.dylib'
|
||||
into 'io/imgui/java/native-bin/'
|
||||
}
|
||||
from('../bin/freetype') {
|
||||
include 'imgui-java64.dll'
|
||||
into 'io/imgui/java/native-bin/'
|
||||
}
|
||||
}
|
||||
|
||||
apply from: "$rootDir/publish.gradle"
|
||||
|
||||
Reference in new issue
Block a user