build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Note: "common.gradle" in the root project contains additional initialization
  2. // for this project. This initialization is applied in the "build.gradle"
  3. // of the root project.
  4. // NetBeans will automatically add "run" and "debug" tasks relying on the
  5. // "mainClass" property. You may however define the property prior executing
  6. // tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
  7. //
  8. // Note however, that you may define your own "run" and "debug" task if you
  9. // prefer. In this case NetBeans will not add these tasks but you may rely on
  10. // your own implementation.
  11. if (!hasProperty('mainClass')) {
  12. ext.mainClass = ''
  13. }
  14. sourceSets {
  15. main {
  16. java {
  17. srcDir 'src/native'
  18. }
  19. }
  20. }
  21. dependencies {
  22. // TODO: Add dependencies here
  23. // but note that JUnit should have already been added in parent.gradle.
  24. // By default, only the Maven Central Repository is specified in
  25. // parent.gradle.
  26. //
  27. // You can read more about how to add dependency here:
  28. // http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:how_to_declare_your_dependencies
  29. compile project(':jme3-android')
  30. }
  31. ext {
  32. // stores the native project classpath to be used in each native
  33. // build to generate native header files
  34. projectClassPath = configurations.runtime.asFileTree.matching {
  35. exclude ".gradle"
  36. }.asPath
  37. }
  38. //println "projectClassPath = " + projectClassPath
  39. // add each native lib build file
  40. apply from: file('openalsoft.gradle')
  41. // apply from: file('stb_image.gradle')
  42. // apply from: file('tremor.gradle')
  43. apply from: file('decode.gradle')