Skip to content

Commit 3cd0eeb

Browse files
tmvkrpxl0SpaiR
andauthored
[Build] Adjust module name depending on deploy type (#122)
* Adjust module name depending on deploy type * Update imgui-binding-natives/build.gradle * Update imgui-binding-natives/build.gradle * Update imgui-binding-natives/build.gradle * Update imgui-binding-natives/build.gradle Co-authored-by: SpaiR <[email protected]>
1 parent d045279 commit 3cd0eeb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

imgui-binding-natives/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,27 @@ plugins {
66

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

1213
switch (findProperty('deployType')) {
1314
case 'win':
1415
packageName = 'imgui-java-natives-windows'
1516
packageDesc = 'Native binaries for imgui-java binding for Windows'
17+
moduleName = 'imgui.natives.windows'
1618
libName = 'imgui-java64.dll'
1719
break
1820
case 'linux':
1921
packageName = 'imgui-java-natives-linux'
2022
packageDesc = 'Native binaries for imgui-java binding for Linux'
23+
moduleName = 'imgui.natives.linux'
2124
libName = 'libimgui-java64.so'
2225
break
2326
case 'mac':
2427
packageName = 'imgui-java-natives-macos'
2528
packageDesc = 'Native binaries for imgui-java binding for MacOS'
29+
moduleName = 'imgui.natives.macos'
2630
libName = 'libimgui-java64.dylib'
2731
break
2832
}
@@ -39,7 +43,7 @@ jar {
3943
into 'io/imgui/java/native-bin/'
4044
}
4145
manifest {
42-
attributes 'Automatic-Module-Name': 'imgui.natives'
46+
attributes 'Automatic-Module-Name': moduleName
4347
}
4448
}
4549

0 commit comments

Comments
 (0)