jmonkeyengine/jme3-bullet/build.gradle
MeFisto94 1bde90d1a1 Build android bullet-native on Travis (#1175)
* 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.

* Bullet Android: Some cosmetic changes (removed commented debug code) and generate bullet-native headers during jme3-bullet compilation.

* Fix Bullet Build by using GNU libstdc++ instead of STLPort (discontinued)

* Fix Bullet-Native Compilation
2019-09-16 06:49:45 -07:00

28 lines
620 B
Groovy

apply plugin: 'java'
if (!hasProperty('mainClass')) {
ext.mainClass = ''
}
String classBuildDir = "${buildDir}" + File.separator + 'classes'
def nativeIncludes = new File(project(":jme3-bullet-native").projectDir, "src/native/cpp")
sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'src/common/java'
}
}
}
dependencies {
compile project(':jme3-core')
compile project(':jme3-terrain')
}
compileJava {
// The Android-Native Project requires the jni headers to be generated, so we do that here
options.compilerArgs += ["-h", nativeIncludes]
}