axmol/tests/cpp-tests/proj.android/settings.gradle

21 lines
697 B
Groovy
Raw Normal View History

import java.nio.file.Paths
import java.nio.file.Files
2021-05-18 16:40:30 +08:00
def ENGINE_ROOT=Paths.get("${System.env.ADXE_ROOT}")
if(Files.exists(ENGINE_ROOT)) {
2021-05-18 16:40:30 +08:00
println("Determine ENGINE_JAVA_LIBPATH with system env var ADXE_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 + '/cocos/platform/android/libcocos2dx';
2019-11-23 20:27:39 +08:00
include ':libcocos2dx'
project(':libcocos2dx').projectDir = new File(ENGINE_JAVA_LIBPATH)
2019-11-23 20:27:39 +08:00
include ':CppTests'
project(':CppTests').projectDir = new File(settingsDir, 'app')
rootProject.name = "cpp-tests"