forked from axmolengine/axmol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.ps1
35 lines (29 loc) · 1.47 KB
/
manifest.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Default manifest, refer in 1k/1kiss.ps1
# For maintaining axmol, halx99 contributed some PRs to https://gitlab.kitware.com/cmake
# 3.27.0: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8319
# 3.28.0: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8632
# https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9008
# 3.28.0: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9014
# 3.30.0: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9478
#
# load cross platform build.profiles
$build_profiles_file = Join-Path $PSScriptRoot 'build.profiles'
$build_profiles = ConvertFrom-Props (Get-Content $build_profiles_file)
$manifest['emsdk'] = $build_profiles['emsdk']
$manifest['jdk'] = $build_profiles['jdk']
$manifest['ninja'] = $build_profiles['ninja']
$manifest['ndk'] = $build_profiles['ndk']
$manifest['cmake'] = $build_profiles['cmake']
$manifest['vs'] = $build_profiles['vs']
$manifest['llvm'] = $build_profiles['llvm']
# android sdk tools
$android_sdk_tools['build-tools'] = $build_profiles['build-tools']
$android_sdk_tools['platforms'] = $build_profiles['target_sdk']
$android_sdk_tools['cmdline-tools'] = $build_profiles['cmdline-tools']
$Global:build_profiles = $build_profiles
$Global:download_path = $1k.realpath("$PSScriptRoot/../cache")
# add or overwrite tool version like follow
if ($Global:is_axmol_app -or $Global:is_axmol_engine) {
$manifest['axslcc'] = $build_profiles['axslcc']
$manifest['nuget'] = $build_profiles['nuget']
}