2021-05-05 19:49:30 +08:00
|
|
|
import java.nio.file.Paths
|
|
|
|
import java.nio.file.Files
|
|
|
|
|
2022-07-09 22:23:34 +08:00
|
|
|
def ENGINE_ROOT=Paths.get("${System.env.AXIS_ROOT}")
|
2021-05-05 19:49:30 +08:00
|
|
|
if(Files.exists(ENGINE_ROOT)) {
|
2022-07-09 22:23:34 +08:00
|
|
|
println("Determine ENGINE_JAVA_LIBPATH with system env var AXIS_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() + "/../../.."
|
|
|
|
}
|
|
|
|
|
2021-12-31 14:39:08 +08:00
|
|
|
def ENGINE_JAVA_LIBPATH = ENGINE_ROOT + '/core/platform/android/libcocos2dx';
|
2021-05-05 19:49:30 +08:00
|
|
|
|
2020-08-04 13:15:02 +08:00
|
|
|
include ':libcocos2dx'
|
2021-05-05 19:49:30 +08:00
|
|
|
project(':libcocos2dx').projectDir = new File(ENGINE_JAVA_LIBPATH)
|
2020-08-05 16:33:13 +08:00
|
|
|
include ':FairyGUITests'
|
|
|
|
project(':FairyGUITests').projectDir = new File(settingsDir, 'app')
|
|
|
|
rootProject.name = "fairygui-tests"
|