mirror of https://github.com/axmolengine/axmol.git
[build1k] Allow overwrite manifest by script manifest.ps1
This commit is contained in:
parent
a29f54316a
commit
f73c6c3edc
|
@ -69,6 +69,13 @@ $manifest = @{
|
||||||
cmdlinetools = '7.0+'; # android cmdlinetools
|
cmdlinetools = '7.0+'; # android cmdlinetools
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$myRoot = $PSScriptRoot
|
||||||
|
|
||||||
|
$manifest_file = Join-Path $myRoot 'manifest.ps1'
|
||||||
|
if (Test-Path $manifest_file -PathType Leaf) {
|
||||||
|
. $manifest_file
|
||||||
|
}
|
||||||
|
|
||||||
# refer to: https://developer.android.com/studio#command-line-tools-only
|
# refer to: https://developer.android.com/studio#command-line-tools-only
|
||||||
$cmdlinetools_rev = '9477386'
|
$cmdlinetools_rev = '9477386'
|
||||||
|
|
||||||
|
@ -116,8 +123,6 @@ if (!$options.setupOnly) {
|
||||||
b1k_print $(Out-String -InputObject $options)
|
b1k_print $(Out-String -InputObject $options)
|
||||||
}
|
}
|
||||||
|
|
||||||
$myRoot = $PSScriptRoot
|
|
||||||
|
|
||||||
$HOST_WIN = 0 # targets: win,uwp,android
|
$HOST_WIN = 0 # targets: win,uwp,android
|
||||||
$HOST_LINUX = 1 # targets: linux,android
|
$HOST_LINUX = 1 # targets: linux,android
|
||||||
$HOST_MAC = 2 # targets: android,ios,osx(macos),tvos,watchos
|
$HOST_MAC = 2 # targets: android,ios,osx(macos),tvos,watchos
|
||||||
|
@ -362,6 +367,7 @@ function setup_cmake() {
|
||||||
|
|
||||||
# setup nuget
|
# setup nuget
|
||||||
function setup_nuget() {
|
function setup_nuget() {
|
||||||
|
if(!$manifest.Contains('nuget')) { return $null }
|
||||||
$nuget_bin = Join-Path $prefix 'nuget'
|
$nuget_bin = Join-Path $prefix 'nuget'
|
||||||
$nuget_prog, $nuget_ver = find_prog -name 'nuget' -path $nuget_bin -mode 'BOTH'
|
$nuget_prog, $nuget_ver = find_prog -name 'nuget' -path $nuget_bin -mode 'BOTH'
|
||||||
if ($nuget_prog) {
|
if ($nuget_prog) {
|
||||||
|
@ -385,6 +391,7 @@ function setup_nuget() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_jdk() {
|
function setup_jdk() {
|
||||||
|
if(!$manifest.Contains('jdk')) { return $null }
|
||||||
$javac_prog, $jdk_ver = find_prog -name 'jdk' -cmd 'javac'
|
$javac_prog, $jdk_ver = find_prog -name 'jdk' -cmd 'javac'
|
||||||
if ($javac_prog) {
|
if ($javac_prog) {
|
||||||
return $javac_prog
|
return $javac_prog
|
||||||
|
@ -429,6 +436,7 @@ function setup_jdk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_glslcc() {
|
function setup_glslcc() {
|
||||||
|
if(!$manifest.Contains('glslcc')) { return $null }
|
||||||
$glslcc_bin = Join-Path $prefix 'glslcc'
|
$glslcc_bin = Join-Path $prefix 'glslcc'
|
||||||
$glslcc_prog, $glslcc_ver = find_prog -name 'glslcc' -path $glslcc_bin -mode 'BOTH'
|
$glslcc_prog, $glslcc_ver = find_prog -name 'glslcc' -path $glslcc_bin -mode 'BOTH'
|
||||||
if ($glslcc_prog) {
|
if ($glslcc_prog) {
|
||||||
|
@ -460,6 +468,7 @@ function setup_glslcc() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_ninja() {
|
function setup_ninja() {
|
||||||
|
if(!$manifest.Contains('ninja')) { return $null }
|
||||||
$ninja_prog, $ninja_ver = find_prog -name 'ninja'
|
$ninja_prog, $ninja_ver = find_prog -name 'ninja'
|
||||||
if ($ninja_prog) {
|
if ($ninja_prog) {
|
||||||
return $ninja_prog
|
return $ninja_prog
|
||||||
|
@ -482,6 +491,7 @@ function setup_ninja() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_android_sdk() {
|
function setup_android_sdk() {
|
||||||
|
if(!$manifest.Contains('ndk')) { return $null }
|
||||||
# setup ndk
|
# setup ndk
|
||||||
$ndk_ver = $TOOLCHAIN_VER
|
$ndk_ver = $TOOLCHAIN_VER
|
||||||
if (!$ndk_ver) {
|
if (!$ndk_ver) {
|
||||||
|
@ -605,6 +615,7 @@ function setup_android_sdk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_clang() {
|
function setup_clang() {
|
||||||
|
if(!$manifest.Contains('clang')) { return $null }
|
||||||
$clang_prog, $clang_ver = find_prog -name 'clang'
|
$clang_prog, $clang_ver = find_prog -name 'clang'
|
||||||
if (!$clang_prog) {
|
if (!$clang_prog) {
|
||||||
throw 'required clang $clang_ver not installed, please install it from: https://github.com/llvm/llvm-project/releases'
|
throw 'required clang $clang_ver not installed, please install it from: https://github.com/llvm/llvm-project/releases'
|
||||||
|
|
Loading…
Reference in New Issue