ref: 078681a0973607c6527d0c232ee9e26a8e1885e5
parent: ab3609c4c7f0f3648db9c4434293b2ca6de341ed
author: Martin Storsjö <[email protected]>
date: Wed Feb 26 09:58:34 EST 2014
Add a platform file for building for iOS using the makefile build system This doesn't build the actual demo apps that you can run on the phone (not yet at least), but is useful for easily testing compilation in different setups, and for building a precompiled static library for use in external projects.
--- /dev/null
+++ b/build/platform-ios.mk
@@ -1,0 +1,15 @@
+include build/platform-darwin.mk
+CXX = clang++
+CC = clang
+SDK = 7.0
+ifneq ($(filter %86 x86_64, $(ARCH)),)
+SDKTYPE = iPhoneSimulator
+else
+SDKTYPE = iPhoneOS
+endif
+SDK_MIN = 5.1
+
+SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/$(SDKTYPE).platform/Developer/SDKs/$(SDKTYPE)$(SDK).sdk
+CFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN)
+LDFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN)
+