Skip to content

Commit d808501

Browse files
committed
[Build] Fix build script for jar with native freetype binaries
Natives were packed in 'io/imgui/java/native-bin/freetype', not in 'io/imgui/java/native-bin/'.
1 parent f155600 commit d808501

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

imgui-binding-natives/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ plugins {
66

77
def packageName = 'imgui-java-natives-linux'
88
def packageDesc = 'Native binaries for imgui-java binding for 64bit Linux'
9+
def fromDir = '../bin'
910
def libName = 'libimgui-java64.so'
1011

1112
if (System.getProperty('deployWin32')) {
@@ -33,11 +34,11 @@ if (System.getProperty('deployWin32')) {
3334
if (System.getProperty('freetype')) {
3435
packageName += '-ft'
3536
packageDesc += ' with Freetype support'
36-
libName = 'freetype/' + libName
37+
fromDir += '/freetype'
3738
}
3839

3940
jar {
40-
from('../bin') {
41+
from(fromDir) {
4142
include "$libName" // this is fine
4243
into 'io/imgui/java/native-bin/'
4344
}

0 commit comments

Comments
 (0)