Skip to content

Commit b550d56

Browse files
committed
Update prebuilt tool glslcc to 1.9.5
- macos-arm64 support and built for macos-10.15+
1 parent 53e2fba commit b550d56

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
6767
- name: Publish to github release page
6868
if: ${{ steps.make_pkg.outputs.release_tag != '' }}
69-
uses: softprops/action-gh-release@v1
69+
uses: softprops/action-gh-release@v2
7070
with:
7171
tag_name: ${{ steps.make_pkg.outputs.release_tag }}
7272
name: ${{ steps.make_pkg.outputs.release_tag }}

1k/1kiss.ps1

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# SOFTWARE.
2727
#
2828
#
29-
# The 1k/build.ps1, the core script of project 1kiss(1k)
29+
# The 1k/1kiss.ps1, the core script of project 1kiss(1k)
3030
# options
3131
# -p: build target platform: win32,winrt(winuwp),linux,android,osx(mac),ios,tvos,watchos,wasm
3232
# for android: will search ndk in sdk_root which is specified by env:ANDROID_HOME first,
@@ -86,7 +86,7 @@ else {
8686
$HOST_OS = $HOST_MAC
8787
}
8888
else {
89-
throw "Unsupported host OS to run 1k/build.ps1"
89+
throw "Unsupported host OS to run 1k/1kiss.ps1"
9090
}
9191
}
9292

@@ -441,12 +441,14 @@ if ($1k.isfile($manifest_file)) {
441441
# choose mirror for 1kiss/devtools
442442
$sentry_file = Join-Path $myRoot '.gitee'
443443
$mirror = if ($1k.isfile($sentry_file)) { 'gitee' } else { 'github' }
444-
$devtools_url_base = @{'github' = 'https://github.com/'; 'gitee' = 'https://gitee.com/' }[$mirror]
444+
$mirror_url_base = @{'github' = 'https://github.com/'; 'gitee' = 'https://gitee.com/' }[$mirror]
445+
$devtools_url_base = $mirror_url_base
445446
$mirror_conf_file = $1k.realpath("$myRoot/../manifest.json")
446-
$mirror_conf = $null
447+
$mirror_current = $null
447448
if ($1k.isfile($mirror_conf_file)) {
448449
$mirror_conf = ConvertFrom-Json (Get-Content $mirror_conf_file -raw)
449-
$devtools_url_base += $mirror_conf.mirrors.$mirror.'1kdist'
450+
$mirror_current = $mirror_conf.mirrors.$mirror
451+
$devtools_url_base += $mirror_current.'1kdist'
450452
$devtools_url_base += '/devtools'
451453
}
452454

@@ -723,12 +725,21 @@ function setup_glslcc() {
723725
return $glslcc_prog
724726
}
725727

726-
$suffix = $('win64.zip', 'linux.tar.gz', 'osx.tar.gz').Get($HOST_OS)
728+
$suffix = $('win64.zip', 'linux.tar.gz', 'osx{0}.tar.gz').Get($HOST_OS)
729+
if($IsMacOS) {
730+
if([System.VersionEx]$glslcc_ver -ge [System.VersionEx]'1.9.4.1') {
731+
$suffix = $suffix -f "-$HOST_CPU"
732+
} else {
733+
$suffix = $suffix -f ''
734+
}
735+
}
736+
727737
$1k.rmdirs($glslcc_bin)
728738
$glslcc_pkg = Join-Path $external_prefix "glslcc-$suffix"
729739
$1k.del($glslcc_pkg)
730740

731-
$glscc_url = devtool_url glslcc-$glslcc_ver-$suffix
741+
$glscc_base_url = $mirror_current.glslcc
742+
$glscc_url = "$mirror_url_base$glscc_base_url/v$glslcc_ver/glslcc-$glslcc_ver-$suffix"
732743

733744
download_and_expand $glscc_url "$glslcc_pkg" $glslcc_bin
734745

1k/manifest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# add or overwrite tool version like follow
1111
if ($Global:is_axmol_app -or $Global:is_axmol_engine) {
1212
$manifest['nuget'] = '5.5.1' # since 5.6.0, require .net 4.0
13-
$manifest['glslcc'] = '1.9.4+'
13+
$manifest['glslcc'] = '1.9.5+'
1414
if ($Global:is_darwin_family) {
1515
# 3.29.0: Fix linking duplicated libraries warnings
1616
$manifest['cmake'] = '3.29.0+'

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868

6969
### Improvements
7070

71+
- Update prebuilt tool `glslcc` to 1.9.5, macos-arm64 support and built for macos-10.15+
7172
- Improve MediaPlayer: handle video rotation properly
7273
- Disable c++20 char8_t
7374
- Improve build system, set rpath properly for platforms: linux, apple

manifest.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"lz4": "lz4/lz4.git",
1717
"yaml-cpp": "jbeder/yaml-cpp.git",
1818
"box2d-optimized": "mtsamis/box2d-optimized.git",
19-
"sample-assets": "axmolengine/axmol-sample-assets.git"
19+
"sample-assets": "axmolengine/axmol-sample-assets.git",
20+
"glslcc": "axmolengine/glslcc/releases/download"
2021
},
2122
"gitee":
2223
{
@@ -26,7 +27,8 @@
2627
"lz4": "simdsoft/lz4.git",
2728
"yaml-cpp": "mirrors/yaml-cpp.git",
2829
"box2d-optimized": "simdsoft/box2d-optimized.git",
29-
"sample-assets": "simdsoft/axmol-sample-assets.git"
30-
}
30+
"sample-assets": "simdsoft/axmol-sample-assets.git",
31+
"glslcc": "simdsoft/glslcc/releases/download"
32+
}
3133
}
3234
}

0 commit comments

Comments
 (0)