ref: 560c14b67c577e528440d38ae04cf5b1187c9fa4
parent: 23ab1172407c47e577538f2252825ab3b0aea010
author: Martin Storsjö <martin@martin.st>
date: Sat Mar 1 12:24:15 EST 2014
Add the APPLE_IOS define when building for iOS with make Previously the define was only used when building from within the xcode project files. This enables the arm neon assembly.
--- a/Makefile
+++ b/Makefile
@@ -112,8 +112,10 @@
include codec/processing/targets.mk
ifneq (android, $(OS))
+ifneq (ios, $(OS))
include codec/console/dec/targets.mk
include codec/console/enc/targets.mk
+endif
endif
libraries: $(LIBPREFIX)wels.$(LIBSUFFIX) $(LIBPREFIX)wels.$(SHAREDLIBSUFFIX)
--- a/build/platform-ios.mk
+++ b/build/platform-ios.mk
@@ -10,6 +10,6 @@
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)
+CFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN) -DAPPLE_IOS
LDFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN)