Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust module name depending on deploy type #122

Merged
merged 5 commits into from
Mar 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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