-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make tests could build at external location [ci build]
- Loading branch information
Showing
6 changed files
with
96 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import java.nio.file.Paths | ||
import java.nio.file.Files | ||
|
||
def ENGINE_ROOT=Paths.get("${System.env.ENGINEX_ROOT}") | ||
if(Files.exists(ENGINE_ROOT)) { | ||
println("Determine ENGINE_JAVA_LIBPATH with system env var ENGINEX_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'; | ||
|
||
include ':libcocos2dx' | ||
project(':libcocos2dx').projectDir = new File(settingsDir, '../../../cocos/platform/android/libcocos2dx') | ||
project(':libcocos2dx').projectDir = new File(ENGINE_JAVA_LIBPATH) | ||
include ':CppEmptyTest' | ||
project(':CppEmptyTest').projectDir = new File(settingsDir, 'app') | ||
rootProject.name = "cpp-empty-test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import java.nio.file.Paths | ||
import java.nio.file.Files | ||
|
||
def ENGINE_ROOT=Paths.get("${System.env.ENGINEX_ROOT}") | ||
if(Files.exists(ENGINE_ROOT)) { | ||
println("Determine ENGINE_JAVA_LIBPATH with system env var ENGINEX_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'; | ||
|
||
include ':libcocos2dx' | ||
project(':libcocos2dx').projectDir = new File(settingsDir, '../../../cocos/platform/android/libcocos2dx') | ||
project(':libcocos2dx').projectDir = new File(ENGINE_JAVA_LIBPATH) | ||
include ':CppTests' | ||
project(':CppTests').projectDir = new File(settingsDir, 'app') | ||
rootProject.name = "cpp-tests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import java.nio.file.Paths | ||
import java.nio.file.Files | ||
|
||
def ENGINE_ROOT=Paths.get("${System.env.ENGINEX_ROOT}") | ||
if(Files.exists(ENGINE_ROOT)) { | ||
println("Determine ENGINE_JAVA_LIBPATH with system env var ENGINEX_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'; | ||
|
||
include ':libcocos2dx' | ||
project(':libcocos2dx').projectDir = new File(settingsDir, '../../../cocos/platform/android/libcocos2dx') | ||
project(':libcocos2dx').projectDir = new File(ENGINE_JAVA_LIBPATH) | ||
include ':FairyGUITests' | ||
project(':FairyGUITests').projectDir = new File(settingsDir, 'app') | ||
rootProject.name = "fairygui-tests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import java.nio.file.Paths | ||
import java.nio.file.Files | ||
|
||
def ENGINE_ROOT=Paths.get("${System.env.ENGINEX_ROOT}") | ||
if(Files.exists(ENGINE_ROOT)) { | ||
println("Determine ENGINE_JAVA_LIBPATH with system env var ENGINEX_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'; | ||
|
||
include ':libcocos2dx' | ||
project(':libcocos2dx').projectDir = new File(settingsDir, '../../../../cocos/platform/android/libcocos2dx') | ||
project(':libcocos2dx').projectDir = new File(ENGINE_JAVA_LIBPATH) | ||
include ':LuaEmptyTest' | ||
project(':LuaEmptyTest').projectDir = new File(settingsDir, 'app') | ||
rootProject.name = "lua-empty-test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import java.nio.file.Paths | ||
import java.nio.file.Files | ||
|
||
def ENGINE_ROOT=Paths.get("${System.env.ENGINEX_ROOT}") | ||
if(Files.exists(ENGINE_ROOT)) { | ||
println("Determine ENGINE_JAVA_LIBPATH with system env var ENGINEX_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'; | ||
|
||
include ':libcocos2dx' | ||
project(':libcocos2dx').projectDir = new File(settingsDir, '../../../../cocos/platform/android/libcocos2dx') | ||
project(':libcocos2dx').projectDir = new File(ENGINE_JAVA_LIBPATH) | ||
include ':LuaTests' | ||
project(':LuaTests').projectDir = new File(settingsDir, 'app') | ||
rootProject.name = "lua-tests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
import java.nio.file.Paths | ||
import java.nio.file.Files | ||
|
||
def ENGINE_ROOT=Paths.get("${System.env.ENGINEX_ROOT}") | ||
if(Files.exists(ENGINE_ROOT)) { | ||
println("Determine ENGINE_JAVA_LIBPATH with system env var ENGINEX_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'; | ||
|
||
include ':libcocos2dx' | ||
project(':libcocos2dx').projectDir = new File(settingsDir, '../../../cocos/platform/android/libcocos2dx') | ||
project(':libcocos2dx').projectDir = new File(ENGINE_JAVA_LIBPATH) | ||
include ':performance-tests' | ||
project(':performance-tests').projectDir = new File(settingsDir, 'app') | ||
rootProject.name = "performance-tests" |