build.sh: build SDL3 with CMake (#2060)

* build.sh: support building SDL3 with cmake

* ci: install cmake

* ci: make msvc use bash to build again

* ci: use get-command to get link.exe

* build.sh: revert back to CMAKE_INSTALL_PREFIX

* ci: hardcode CMAKE_INSTALL_LIBDIR

* ci: set cc_ld to not step on cmake

* build.sh: less messing with cwd

* build.sh: fix prefix once and for all

* ci: skip installing cmake on macos to avoid warnings

* build.sh: pass MACOSX_DEPLOYMENT_TARGET to cmake

* build.sh: remove extra .. in configure command

* build.sh: remove unused variable

* build.sh: allow SIMD runtime detection

* build.sh: propagate LTO to SDL3
This commit is contained in:
Takase
2025-05-18 23:16:07 +08:00
committed by takase1121
parent 5ff596aff2
commit 6d686e78db
3 changed files with 63 additions and 37 deletions
+2 -2
View File
@@ -164,7 +164,7 @@ jobs:
- name: Install Dependencies
run: |
brew install bash md5sha1sum sdl3
brew install bash md5sha1sum cmake
pip install meson ninja dmgbuild
- name: Build
@@ -276,7 +276,7 @@ jobs:
ca-certificates:p
ninja:p
pkg-config:p
sdl3:p
cmake:p
- name: Set Environment Variables
run: |