* First attempt at building android-natives. * Use OpenJDK because native build is broken without * Try OpenJDK 10 * Try openJDK 9 * Try openJDK11 again but "enable" the EE Module * OpenJDK 11 has no Java EE Module anymore. * Try to fix Android Header Generation * Fix invalid flag error with javac by removing empty quotes * Try to fix build of decode. * Remove jni generated headers from the repository. * Adjust .gitignore as those header files won't appear at that location anymore * Fix Android Build: Fill the jme3-android-native headers during the build of jme3-android. This works because jme3-android-native already depends on jme3-android. Due to technical reasons, the headers share the same location and thus the include directives have been adjusted slightly. * Copy jni headers to the jni directory. * Adjust the path slightly * Try to silence android sdk's license print out * Also fix openAL * Solve task name conflict * Really silence license now * Tasks seem shared but Strings are not... * Only build Android-Native * Trying to reduce the amount of dependencies needed. * Remove even more dependencies * Even more removal * Prepare Deployment * Fix Deployment * Cleanup: Remove feature branch from branches for travis. * Revert a few unnecessary things * Removed NDK Comments.
50 lines
1.6 KiB
Groovy
50 lines
1.6 KiB
Groovy
// Note: "common.gradle" in the root project contains additional initialization
|
|
// for this project. This initialization is applied in the "build.gradle"
|
|
// of the root project.
|
|
|
|
// NetBeans will automatically add "run" and "debug" tasks relying on the
|
|
// "mainClass" property. You may however define the property prior executing
|
|
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
|
|
//
|
|
// Note however, that you may define your own "run" and "debug" task if you
|
|
// prefer. In this case NetBeans will not add these tasks but you may rely on
|
|
// your own implementation.
|
|
|
|
if (!hasProperty('mainClass')) {
|
|
ext.mainClass = ''
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDir 'src/native'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// TODO: Add dependencies here
|
|
// but note that JUnit should have already been added in parent.gradle.
|
|
// By default, only the Maven Central Repository is specified in
|
|
// parent.gradle.
|
|
//
|
|
// You can read more about how to add dependency here:
|
|
// http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:how_to_declare_your_dependencies
|
|
compile project(':jme3-android')
|
|
}
|
|
|
|
ext {
|
|
// stores the native project classpath to be used in each native
|
|
// build to generate native header files
|
|
projectClassPath = configurations.runtime.asFileTree.matching {
|
|
exclude ".gradle"
|
|
}.asPath
|
|
}
|
|
//println "projectClassPath = " + projectClassPath
|
|
|
|
// add each native lib build file
|
|
apply from: file('openalsoft.gradle')
|
|
// apply from: file('stb_image.gradle')
|
|
// apply from: file('tremor.gradle')
|
|
apply from: file('decode.gradle')
|