2021-05-05 19:49:30 +08:00
|
|
|
import java.nio.file.Paths
|
|
|
|
import java.nio.file.Files
|
|
|
|
|
2022-08-29 20:51:22 +08:00
|
|
|
def ENGINE_ROOT=Paths.get("${System.env.AX_ROOT}")
|
2021-05-05 19:49:30 +08:00
|
|
|
if(Files.exists(ENGINE_ROOT)) {
|
2022-08-29 20:51:22 +08:00
|
|
|
println("Determine ENGINE_JAVA_LIBPATH with system env var AX_ROOT")
|
2021-05-05 19:49:30 +08:00
|
|
|
ENGINE_ROOT = ENGINE_ROOT.toAbsolutePath().toString()
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
println("Determine ENGINE_JAVA_LIBPATH with relative to settingsDir")
|
|
|
|
ENGINE_ROOT = settingsDir.getPath() + "/../../.."
|
|
|
|
}
|
|
|
|
|
2022-10-01 16:24:52 +08:00
|
|
|
def ENGINE_JAVA_LIBPATH = ENGINE_ROOT + '/core/platform/android/libaxmol';
|
2021-05-05 19:49:30 +08:00
|
|
|
|
2022-10-01 16:24:52 +08:00
|
|
|
include ':libaxmol'
|
|
|
|
project(':libaxmol').projectDir = new File(ENGINE_JAVA_LIBPATH)
|
2019-11-23 20:27:39 +08:00
|
|
|
include ':LuaTests'
|
|
|
|
project(':LuaTests').projectDir = new File(settingsDir, 'app')
|
|
|
|
rootProject.name = "lua-tests"
|