shithub: openh264

Download patch

ref: fd90d14ece4bacd509104c53bd08624ab122319b
parent: 45c21931de2c9dfb3c2341ac7964b50210f3128e
author: Martin Storsjö <[email protected]>
date: Sat Mar 8 08:03:13 EST 2014

Enable threading when building for iOS using the project files

This was already enabled when building the library for iOS using
the makefiles.

--- 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,10 +636,12 @@
 					APPLE_IOS,
 					NO_DYNAMIC_VP,
 					HAVE_NEON,
+					MT_ENABLED,
 				);
 				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = (
 					APPLE_IOS,
 					NO_DYNAMIC_VP,
+					MT_ENABLED,
 				);
 				HEADER_SEARCH_PATHS = (
 					"$(SRCROOT)/../../../../common",
@@ -669,10 +671,12 @@
 					APPLE_IOS,
 					NO_DYNAMIC_VP,
 					HAVE_NEON,
+					MT_ENABLED,
 				);
 				"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*]" = (
 					APPLE_IOS,
 					NO_DYNAMIC_VP,
+					MT_ENABLED,
 				);
 				HEADER_SEARCH_PATHS = (
 					"$(SRCROOT)/../../../../common",