shithub: openh264

Download patch

ref: fff39090530ef03520008d26189fd70b83aa4a3d
parent: fb396cd3d2613334f675e52bb6dda467457cf3c2
parent: fd90d14ece4bacd509104c53bd08624ab122319b
author: Ethan Hugg <[email protected]>
date: Sat Mar 8 03:48:29 EST 2014

Merge pull request #457 from mstorsjo/ios-enc-defines

Add missing defines when building the encoder for iOS using the xcode project files

--- a/codec/build/iOS/common/common.xcodeproj/project.pbxproj
+++ b/codec/build/iOS/common/common.xcodeproj/project.pbxproj
@@ -385,8 +385,12 @@
 				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphoneos*]" = (
 					APPLE_IOS,
 					HAVE_NEON,
+					MT_ENABLED,
 				);
-				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = APPLE_IOS;
+				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = (
+					APPLE_IOS,
+					MT_ENABLED,
+				);
 				IPHONEOS_DEPLOYMENT_TARGET = 6.1;
 				ONLY_ACTIVE_ARCH = NO;
 				OTHER_LDFLAGS = "-ObjC";
@@ -407,8 +411,12 @@
 				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphoneos*]" = (
 					APPLE_IOS,
 					HAVE_NEON,
+					MT_ENABLED,
 				);
-				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = APPLE_IOS;
+				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = (
+					APPLE_IOS,
+					MT_ENABLED,
+				);
 				IPHONEOS_DEPLOYMENT_TARGET = 6.1;
 				OTHER_LDFLAGS = "-ObjC";
 				PRODUCT_NAME = "$(TARGET_NAME)";
--- a/codec/build/iOS/enc/welsenc/welsenc.xcodeproj/project.pbxproj
+++ b/codec/build/iOS/enc/welsenc/welsenc.xcodeproj/project.pbxproj
@@ -636,8 +636,13 @@
 					APPLE_IOS,
 					NO_DYNAMIC_VP,
 					HAVE_NEON,
+					MT_ENABLED,
 				);
-				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = APPLE_IOS;
+				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = (
+					APPLE_IOS,
+					NO_DYNAMIC_VP,
+					MT_ENABLED,
+				);
 				HEADER_SEARCH_PATHS = (
 					"$(SRCROOT)/../../../../common",
 					"$(SRCROOT)/../../../../processing/interface",
@@ -666,8 +671,13 @@
 					APPLE_IOS,
 					NO_DYNAMIC_VP,
 					HAVE_NEON,
+					MT_ENABLED,
 				);
-				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = APPLE_IOS;
+				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = (
+					APPLE_IOS,
+					NO_DYNAMIC_VP,
+					MT_ENABLED,
+				);
 				HEADER_SEARCH_PATHS = (
 					"$(SRCROOT)/../../../../common",
 					"$(SRCROOT)/../../../../processing/interface",