I am using gradle to build a JNI library for our java project and it works fine, however I can't seem to figure out how to keep gradle from building both shared and static versions of the file. I'd like to disable the build of the static library to speed up the build process. Adding the "shared" tag doesn't seem to do the trick.
From the gradle build file:
libraries {
bulletjme {
shared
}
}
The gradle manual states that "For example, when you define a library called helloworld and build on Linux, Gradle will, by default, produce libhelloworld.so and libhelloworld.a binaries." However it doesn't say how to disable the build of either of the binaries.
Thanks for any answers!
Copyright Notice:Content Author:「normen」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/27929052/disabling-static-library-build-in-gradle