Merge pull request #546 from mstorsjo/ios-sdk-version

Automatically pick the latest installed iOS SDK when building with make
This commit is contained in:
Licai Guo 2014-03-19 17:19:55 +08:00
commit c247c5a05d

View File

@ -2,12 +2,12 @@ ARCH = armv7
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 = $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-version)
SDK_MIN = 5.1
SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/$(SDKTYPE).platform/Developer/SDKs/$(SDKTYPE)$(SDK).sdk