-
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add 1k/build.profiles for android ndk, sdk tools, emsdk ... - Android targetSdk and minSdk also control by 1k/build.profiles - You can override some build profiles in .axproj file, i.e android ndk, android target_sdk and min_sdk and others - support install ndk from ci.android.com
- Loading branch information
Showing
31 changed files
with
681 additions
and
358 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# | ||
# The cross platform build profiles, DO NOT MODIFY | ||
# @hint means just for hint, not managed by axmol build system | ||
# | ||
|
||
# --- region platfom:common | ||
|
||
# The axmol shader compiler, legacy name is 'glslcc' before axmol-2.3.0 | ||
axslcc=1.9.6+ | ||
|
||
# The cmake, @gradle @axmol-cmdline | ||
# as latest as possible | ||
cmake=3.30.0~3.31.2+ | ||
|
||
# The ninja | ||
ninja=1.10.0~1.12.1+ | ||
|
||
# --- endregion | ||
|
||
# --- region windows | ||
|
||
# The nuget, since 5.6.0, requires .net 4.0 | ||
# DNT MODIFY | ||
nuget=5.5.1.* | ||
|
||
# The visual studio version, @axmol-cmdline @verify | ||
vs=17.0+ | ||
|
||
# --- endregion | ||
|
||
# region platform:android | ||
|
||
# The microsoft openjdk, @axmol-cmdline | ||
jdk=17.0.10~17.0.13+ | ||
|
||
# The android ndk version | ||
# as stable as possible @setup.ps1 @gradle @axmol-cmdline | ||
ndk=r23c | ||
|
||
# The android target sdk version, @gradle | ||
# as latest as possible | ||
target_sdk=35 | ||
|
||
# The android min sdk version, @gradle | ||
# as min as possible | ||
min_sdk=17 | ||
|
||
# The gradle version, @setup.ps1 | ||
# as latest as possible | ||
gradle=8.10 | ||
|
||
# The android gradle plugin, @setup.ps1 | ||
# as stable as possible, match with build-tools,android-studio | ||
agp=8.6.0 | ||
|
||
# The android build-tools, @axmol-cmdline @gradle | ||
# as stable as possible, match with agp,android-studio | ||
build-tools=34.0.0 | ||
|
||
# The android-studio, @hint | ||
# as latest as possible, but match with agp, build-tools | ||
android-studio=2024.2.1+ | ||
|
||
# --- endregion | ||
|
||
# --- region platform:wasm | ||
|
||
emsdk=3.1.66~3.1.67 | ||
|
||
# --- endregion |
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# resolve artifact url | ||
param( | ||
[Alias('artifact')] | ||
$name, | ||
$manifest, | ||
$target, | ||
$build_id, | ||
$branch, | ||
$out_var | ||
) | ||
|
||
$artifact_url = $null | ||
|
||
if ($manifest -eq 'gcloud') { | ||
function Get-LatestGoodBuild { | ||
param ( | ||
[string]$branch, | ||
[string]$target | ||
) | ||
|
||
$apiURL = "https://androidbuildinternal.googleapis.com/android/internal/build/v3/builds?branches=$([uri]::EscapeDataString($branch))&buildAttemptStatus=complete&buildType=submitted&maxResults=1&successful=true&target=$([uri]::EscapeDataString($target))" | ||
$body = Invoke-WebRequest -Uri $apiURL | ||
$buildData = $body | ConvertFrom-Json | ||
if ($buildData.builds.Count -eq 0) { | ||
throw "No build ID is found" | ||
} | ||
return $buildData.builds[0].buildId | ||
} | ||
|
||
# Validate input parameters | ||
$artifact = $name | ||
if (-not $target) { throw "Missing target." } | ||
if (-not $artifact) { throw "Missing artifact." } | ||
if (-not $build_id -and -not $branch) { throw "Missing build_id or branch." } | ||
if (-not $build_id -and $branch) { | ||
$build_id = Get-LatestGoodBuild -branch $branch -target $target | ||
} | ||
|
||
$artifact_url = "https://androidbuildinternal.googleapis.com/android/internal/build/v3/builds/$([uri]::EscapeDataString($build_id))/$([uri]::EscapeDataString($target))/attempts/latest/artifacts/$([uri]::EscapeDataString($artifact))/url" | ||
} | ||
else { | ||
if (Test-Path $manifest -PathType Leaf) { | ||
$mirror = if (!(Test-Path (Join-Path $PSScriptRoot '.gitee') -PathType Leaf)) { 'github' } else { 'gitee' } | ||
|
||
$manifest_map = ConvertFrom-Json (Get-Content $manifest -raw) | ||
$ver = $manifest_map.versions.PSObject.Properties[$name].Value | ||
$mirror_current = $manifest_map.mirrors.PSObject.Properties[$mirror].Value.PSObject.Properties | ||
$url_base = "https://$($mirror_current['host'].Value)/" | ||
$url_path = $mirror_current[$name].Value | ||
|
||
$artifact_url = "$url_base$url_path#$ver" | ||
} | ||
} | ||
|
||
if($artifact_url) { | ||
if(!$out_var) { | ||
Write-Host $artifact_url -NoNewline | ||
} else { | ||
Write-Information $artifact_url -InformationVariable $out_var | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.