-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add macOS SDL to thirdparty, add .dylib to bundle
- Loading branch information
jcm
committed
Dec 14, 2023
1 parent
ed3083d
commit 5aab6b6
Showing
6 changed files
with
41 additions
and
7 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
15ead9a40d09a1eb9972215cceac2bf29c9b77f6 |
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,17 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
if [ ! -d "SDL" ]; then | ||
git clone https://github.com/libsdl-org/SDL.git -b SDL2 | ||
else | ||
git -C SDL fetch | ||
fi | ||
git -C SDL reset --hard "$(cat HEAD)" | ||
mkdir -p SDL/build | ||
pushd SDL/build | ||
cmake .. "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64" \ | ||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 #ares is currently built on Xcode 14.2, which has a minimum deploy target of 10.13 | ||
cmake --build . | ||
sudo cmake --install . | ||
popd | ||
cp SDL/build/libSDL2-2.0.0.dylib . |