Skip to content

Commit 44c5ca1

Browse files
committed
[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.
1 parent d808501 commit 44c5ca1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

example/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ dependencies {
1414
implementation project(':imgui-app')
1515
}
1616

17-
task start(type: JavaExec, dependsOn: build) {
18-
main = 'Main'
19-
classpath = sourceSets.test.runtimeClasspath
20-
jvmArgs = ["-Dimgui.library.path=${System.getProperty('libPath', '../bin')}"]
21-
17+
run {
2218
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
2319
jvmArgs += ['-XstartOnFirstThread', '-Djava.awt.headless=true']
2420
}

imgui-app/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ dependencies {
3131

3232
jar {
3333
from('../bin') {
34-
include 'imgui-java64.dll'
3534
include 'libimgui-java64.so'
3635
include 'libimgui-java64.dylib'
3736
into 'io/imgui/java/native-bin/'
3837
}
38+
from('../bin/freetype') {
39+
include 'imgui-java64.dll'
40+
into 'io/imgui/java/native-bin/'
41+
}
3942
}
4043

4144
apply from: "$rootDir/publish.gradle"

0 commit comments

Comments
 (0)