mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
Use latest iOS SDK found on local machine
This commit is contained in:
parent
836ef7437c
commit
8bc8a818e4
14
makefile
14
makefile
@ -320,12 +320,24 @@ ifeq ($(platform),darwin)
|
|||||||
so-suffix = .dylib
|
so-suffix = .dylib
|
||||||
shared = -dynamiclib
|
shared = -dynamiclib
|
||||||
|
|
||||||
|
sdk-dir = $(developer-dir)/Platforms/iPhoneOS.platform/Developer/SDKs
|
||||||
|
|
||||||
|
ios-version := $(shell if test -d $(sdk-dir)/iPhoneOS5.1.sdk; then echo 5.1; \
|
||||||
|
elif test -d $(sdk-dir)/iPhoneOS5.0.sdk; then echo 5.0; \
|
||||||
|
elif test -d $(sdk-dir)/iPhoneOS4.3.sdk; then echo 4.3; \
|
||||||
|
elif test -d $(sdk-dir)/iPhoneOS4.2.sdk; then echo 4.2; \
|
||||||
|
else echo; fi)
|
||||||
|
|
||||||
|
ifeq ($(ios-version),)
|
||||||
|
x := $(error "couldn't find SDK for iOS version")
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(arch),arm)
|
ifeq ($(arch),arm)
|
||||||
ifeq ($(build-arch),powerpc)
|
ifeq ($(build-arch),powerpc)
|
||||||
converter-cflags += -DOPPOSITE_ENDIAN
|
converter-cflags += -DOPPOSITE_ENDIAN
|
||||||
endif
|
endif
|
||||||
flags = -arch armv7 -isysroot \
|
flags = -arch armv7 -isysroot \
|
||||||
$(developer-dir)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/
|
$(sdk-dir)/iPhoneOS$(ios-version).sdk/
|
||||||
openjdk-extra-cflags += $(flags)
|
openjdk-extra-cflags += $(flags)
|
||||||
cflags += $(flags)
|
cflags += $(flags)
|
||||||
asmflags += $(flags)
|
asmflags += $(flags)
|
||||||
|
Loading…
Reference in New Issue
Block a user