Use sed instead of a patch

This commit is contained in:
hwsmm 2025-01-02 13:23:25 +09:00
parent c86db6c2fd
commit 3c24492891
2 changed files with 1 additions and 11 deletions

2
External/build.sh vendored
View File

@ -93,7 +93,7 @@ git reset --hard HEAD
if [[ $RUNNER_OS == 'Windows' ]]; then
echo "Patching SDL to not include gameinput.h"
patch -Np1 -i ../exclude-gameinput.patch
sed -i 's/#include <gameinput.h>/#_include <gameinput.h>/g' CMakeLists.txt
fi
cmake -B build $FLAGS -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSDL_SHARED_ENABLED_BY_DEFAULT=ON -DSDL_STATIC_ENABLED_BY_DEFAULT=ON

View File

@ -1,10 +0,0 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1953,6 +1953,7 @@ elseif(WINDOWS)
check_c_source_compiles("
#include <stdbool.h>
#define COBJMACROS
+ #error SDL does not build on Github Actions with GameInput
#include <gameinput.h>
int main(int argc, char **argv) { return 0; }" HAVE_GAMEINPUT_H
)