Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ymontmarin authored Feb 10, 2025
1 parent 2893b69 commit 0593132
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions recipes/sdl3/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/bin/sh

if [[ ${HOST} =~ .*darwin.* ]]; then
export CFLAGS="${CFLAGS} -isysroot ${SDKROOT:-$CONDA_BUILD_SYSROOT}"

if [[ "${target_platform}" == "osx-arm64" ]]; then
export ADDITIONAL_OPTIONS="-DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_OSX_DEPLOYMENT_TARGET=11.3"
fi

if [[ "${target_platform}" == "osx-x86_64" ]]; then
export ADDITIONAL_OPTIONS="-DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13"
fi
fi

mkdir build
cd build

Expand All @@ -15,8 +27,7 @@ cmake .. \
-DSDL_HIDAPI=OFF \
-DSDL_POWER=OFF \
-DSDL_SENSOR=OFF \
-DSDL_DIALOG=OFF \
-DSDL_COCOA=OFF
-DSDL_DIALOG=OFF

make
make install

0 comments on commit 0593132

Please sign in to comment.