build.gradle 620 B

123456789101112131415161718192021222324252627
  1. apply plugin: 'java'
  2. if (!hasProperty('mainClass')) {
  3. ext.mainClass = ''
  4. }
  5. String classBuildDir = "${buildDir}" + File.separator + 'classes'
  6. def nativeIncludes = new File(project(":jme3-bullet-native").projectDir, "src/native/cpp")
  7. sourceSets {
  8. main {
  9. java {
  10. srcDir 'src/main/java'
  11. srcDir 'src/common/java'
  12. }
  13. }
  14. }
  15. dependencies {
  16. compile project(':jme3-core')
  17. compile project(':jme3-terrain')
  18. }
  19. compileJava {
  20. // The Android-Native Project requires the jni headers to be generated, so we do that here
  21. options.compilerArgs += ["-h", nativeIncludes]
  22. }