From 8441d46b10e69f93f7ed9b4ad8f2e3c052f6b689 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 9 Nov 2014 18:13:56 +0100 Subject: [PATCH] (Theos/iOS) Come up with more elegant way of detecting the latest iOS SDK in $THEOS/sdks --- apple/iOS/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apple/iOS/Makefile b/apple/iOS/Makefile index de19799311..39639d1259 100644 --- a/apple/iOS/Makefile +++ b/apple/iOS/Makefile @@ -1,4 +1,8 @@ -SDKVERSION=8.1 +_SDK_DIR := $(THEOS)/sdks +_IOS_SDKS := $(sort $(patsubst $(_SDK_DIR)/iPhoneOS%.sdk,%,$(wildcard $(_SDK_DIR)/iPhoneOS*.sdk))) +_LATEST_SDK := $(word $(words $(_IOS_SDKS)),$(_IOS_SDKS)) + +SDKVERSION := $(_LATEST_SDK) ARCHS = armv7 armv7s include $(THEOS)/makefiles/common.mk