defs.gradle 994 B

123456789101112131415161718192021222324252627
  1. import groovy.json.JsonSlurper
  2. ext {
  3. final def jsonFile = rootProject.file("../vcmiconf.json")
  4. final def rawConf = new JsonSlurper().parseText(jsonFile.text)
  5. PROJECT_PATH_BASE = jsonFile.getParentFile().getAbsolutePath().replace('\\', '/')
  6. VCMI_PATH_EXT = "${PROJECT_PATH_BASE}/ext"
  7. VCMI_PATH_MAIN = "${PROJECT_PATH_BASE}/project"
  8. VCMI_PATH_VCMI = "${VCMI_PATH_EXT}/vcmi"
  9. // can be 16 if building only for armeabi-v7a, definitely needs to be 21+ to build arm64 and x86_64
  10. VCMI_PLATFORM = rawConf.androidApi
  11. // we should be able to use the newest version to compile, but it seems that gradle-experimental is somehow broken and doesn't compile native libs correctly for apis older than this setting...
  12. VCMI_COMPILE_SDK = 26
  13. VCMI_ABIS = rawConf.abis.split(" ")
  14. VCMI_STL_VERSION = "c++_shared"
  15. VCMI_BUILD_TOOLS = "25.0.2"
  16. // these values will be retrieved during gradle build
  17. gitInfoLauncher = "none"
  18. gitInfoVcmi = "none"
  19. //logger.info("Base path = ${PROJECT_PATH_BASE}")
  20. }