Skip to content

Instantly share code, notes, and snippets.

@logbase2
logbase2 / get_sdl.sh
Created April 29, 2019 03:20
Build script for building SDL2 and extensions for iOS, tvOS and macOS
#!/bin/bash
#
# usage: Make executable and type ./get_sdl.sh
#
# Note - Use -showBuildSettings such as:
# xcodebuild -configuration Release HEADER_SEARCH_PATHS="../../SDL/include/ ./Frameworks/FreeType.framework/Headers/" -target "Static Library" -arch x86_64 -sdk macosx -showBuildSettings
# to list all build settings...
#
# Note - Had to update the HEADER_SEARCH_PATHS and MACOSX_DEPLOYMENT_TARGET for
# a couple of libraries for the macOS versions. The HEADER_SEARCH_PATHS were set to look