Skip to content

Commit

Permalink
reuse SDL_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
francisdb committed Oct 21, 2024
1 parent fd1ef26 commit 69fa7b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions platforms/linux/x64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ CACHE_NAME="SDL-${SDL_VERSION}_002"

if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then
curl -sL https://github.com/libsdl-org/SDL/releases/download/preview-${SDL_VERSION}/SDL3-${SDL_VERSION}.tar.xz -o SDL3-${SDL_VERSION}.tar.xz
tar -xf SDL3-3.1.3.tar.xz
cd SDL3-3.1.3
tar -xf SDL3-${SDL_VERSION}.tar.xz
cd SDL3-${SDL_VERSION}
cmake \
-DSDL_SHARED=ON \
-DSDL_STATIC=OFF \
Expand Down
6 changes: 3 additions & 3 deletions platforms/osx/x64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

SDL_VERSION=3.1.3

NUM_PROCS=$(nproc)
NUM_PROCS=$(sysctl -n hw.ncpu)

echo "Building external libraries..."
echo " SDL_VERSION: ${SDL_VERSION}"
Expand Down Expand Up @@ -35,8 +35,8 @@ CACHE_NAME="SDL-${SDL_VERSION}_002"

if [ ! -f "../${CACHE_DIR}/${CACHE_NAME}.cache" ]; then
curl -sL https://github.com/libsdl-org/SDL/releases/download/preview-${SDL_VERSION}/SDL3-${SDL_VERSION}.tar.xz -o SDL3-${SDL_VERSION}.tar.xz
tar -xf SDL3-3.1.3.tar.xz
cd SDL3-3.1.3
tar -xf SDL3-${SDL_VERSION}.tar.xz
cd SDL3-${SDL_VERSION}
cmake \
-DSDL_SHARED=ON \
-DSDL_STATIC=OFF \
Expand Down

0 comments on commit 69fa7b4

Please sign in to comment.