Skip to content

Commit

Permalink
[Build] Adjust module name depending on deploy type (#122)
Browse files Browse the repository at this point in the history
* 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 <klimbetoo@gmail.com>
  • Loading branch information
tmvkrpxl0 and SpaiR committed Mar 11, 2022
1 parent d045279 commit 3cd0eeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion imgui-binding-natives/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,27 @@ plugins {

def packageName = 'imgui-java-natives-linux'
def packageDesc = 'Native binaries for imgui-java binding for Linux'
def moduleName = 'imgui.natives.linux'
def fromDir = '../bin'
def libName = 'libimgui-java64.so'

switch (findProperty('deployType')) {
case 'win':
packageName = 'imgui-java-natives-windows'
packageDesc = 'Native binaries for imgui-java binding for Windows'
moduleName = 'imgui.natives.windows'
libName = 'imgui-java64.dll'
break
case 'linux':
packageName = 'imgui-java-natives-linux'
packageDesc = 'Native binaries for imgui-java binding for Linux'
moduleName = 'imgui.natives.linux'
libName = 'libimgui-java64.so'
break
case 'mac':
packageName = 'imgui-java-natives-macos'
packageDesc = 'Native binaries for imgui-java binding for MacOS'
moduleName = 'imgui.natives.macos'
libName = 'libimgui-java64.dylib'
break
}
Expand All @@ -39,7 +43,7 @@ jar {
into 'io/imgui/java/native-bin/'
}
manifest {
attributes 'Automatic-Module-Name': 'imgui.natives'
attributes 'Automatic-Module-Name': moduleName
}
}

Expand Down

0 comments on commit 3cd0eeb

Please sign in to comment.