mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-23 10:09:48 +00:00
ci: verify SDL build system does not include installed SDL headers
This commit is contained in:
parent
19b01c39b0
commit
fb8ac1ab7d
15
.github/workflows/psp.yml
vendored
15
.github/workflows/psp.yml
vendored
@ -16,6 +16,21 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apk update
|
apk update
|
||||||
apk add cmake gmp mpc1 mpfr4 make pkgconf
|
apk add cmake gmp mpc1 mpfr4 make pkgconf
|
||||||
|
- name: Pollute PSP SDK with "bad" SDL headers
|
||||||
|
run: |
|
||||||
|
# Create "bad" SDL headers in the PSP SDK.
|
||||||
|
# SDL sources should not use these.
|
||||||
|
infixes=". psp psp/sdk"
|
||||||
|
for infix in $infixes; do
|
||||||
|
directory="$PSPDEV/$infix/include/SDL3"
|
||||||
|
echo "Creating directory $directory"
|
||||||
|
mkdir -p "$directory"
|
||||||
|
for include in include/SDL3/*.h; do
|
||||||
|
dest="$PSPDEV/$infix/include/SDL3/$(basename "$include")"
|
||||||
|
echo "Creating $dest"
|
||||||
|
echo '#error "System SDL headers must not be used by build system"' >"$dest"
|
||||||
|
done
|
||||||
|
done
|
||||||
- name: Configure (CMake)
|
- name: Configure (CMake)
|
||||||
run: |
|
run: |
|
||||||
cmake -S . -B build \
|
cmake -S . -B build \
|
||||||
|
Loading…
Reference in New Issue
Block a user