2022-06-24 16:23:26 +08:00
|
|
|
import java.nio.file.Paths
|
2023-03-11 22:10:18 +08:00
|
|
|
import java.nio.file.Files
|
|
|
|
|
|
|
|
def ENGINE_ROOT=Paths.get("${System.env.AX_ROOT}")
|
|
|
|
if(Files.exists(ENGINE_ROOT)) {
|
|
|
|
println("Determine ENGINE_JAVA_LIBPATH with system env var AX_ROOT")
|
|
|
|
ENGINE_ROOT = ENGINE_ROOT.toAbsolutePath().toString()
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
println("Determine ENGINE_JAVA_LIBPATH with relative to settingsDir")
|
|
|
|
ENGINE_ROOT = settingsDir.getPath() + "/../../.."
|
|
|
|
}
|
|
|
|
|
|
|
|
def ENGINE_JAVA_LIBPATH = ENGINE_ROOT + '/core/platform/android/libaxmol';
|
|
|
|
|
2022-10-01 16:24:52 +08:00
|
|
|
include ':libaxmol'
|
2023-03-11 22:10:18 +08:00
|
|
|
project(':libaxmol').projectDir = new File(ENGINE_JAVA_LIBPATH)
|
2022-08-02 22:03:54 +08:00
|
|
|
include ':Live2dTests'
|
|
|
|
project(':Live2dTests').projectDir = new File(settingsDir, 'app')
|
|
|
|
rootProject.name = "live2d-tests"
|