mirror of https://github.com/axmolengine/axmol.git
[build1k] Create differ build folder for cross target platforms
rules: - host target: build_${buildArch} - cross target: build_${buildTarget}_{buildArch}
This commit is contained in:
parent
7ade6fefad
commit
09a3a950ae
|
@ -878,7 +878,12 @@ if (!$options.setupOnly) {
|
||||||
$CONFIG_ALL_OPTIONS += $xopts
|
$CONFIG_ALL_OPTIONS += $xopts
|
||||||
}
|
}
|
||||||
if ("$($xopts)".IndexOf('-B') -eq -1) {
|
if ("$($xopts)".IndexOf('-B') -eq -1) {
|
||||||
|
$is_host_target = ($BUILD_TARGET -eq 'win32') -or ($BUILD_TARGET -eq 'linux') -or ($BUILD_TARGET -eq 'osx')
|
||||||
|
if ($is_host_target) { # wheither building host target?
|
||||||
$BUILD_DIR = "build_$($options.a)"
|
$BUILD_DIR = "build_$($options.a)"
|
||||||
|
} else {
|
||||||
|
$BUILD_DIR = "build_${BUILD_TARGET}_$($options.a)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach ($opt in $xopts) {
|
foreach ($opt in $xopts) {
|
||||||
|
|
Loading…
Reference in New Issue