[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/'.
This commit is contained in:
1 parent
f1556009a9
commit
d80850104c
1 file changed
+3
-2
@@ -6,6 +6,7 @@ plugins {
|
|||||||
|
|
||||||
def packageName = 'imgui-java-natives-linux'
|
def packageName = 'imgui-java-natives-linux'
|
||||||
def packageDesc = 'Native binaries for imgui-java binding for 64bit Linux'
|
def packageDesc = 'Native binaries for imgui-java binding for 64bit Linux'
|
||||||
|
def fromDir = '../bin'
|
||||||
def libName = 'libimgui-java64.so'
|
def libName = 'libimgui-java64.so'
|
||||||
|
|
||||||
if (System.getProperty('deployWin32')) {
|
if (System.getProperty('deployWin32')) {
|
||||||
@@ -33,11 +34,11 @@ if (System.getProperty('deployWin32')) {
|
|||||||
if (System.getProperty('freetype')) {
|
if (System.getProperty('freetype')) {
|
||||||
packageName += '-ft'
|
packageName += '-ft'
|
||||||
packageDesc += ' with Freetype support'
|
packageDesc += ' with Freetype support'
|
||||||
libName = 'freetype/' + libName
|
fromDir += '/freetype'
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from('../bin') {
|
from(fromDir) {
|
||||||
include "$libName" // this is fine
|
include "$libName" // this is fine
|
||||||
into 'io/imgui/java/native-bin/'
|
into 'io/imgui/java/native-bin/'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user