ref: 40a2186093388a87f1f6638b3a0f55745aa44abf
parent: d6ac7f4a6022b1a2f29e3210fa42364391cb3d3e
author: zhuling13 <zhulingwei2012@gmail.com>
date: Wed Jun 4 21:28:57 EDT 2014
add iosutdemo
--- /dev/null
+++ b/test/build/ios/codec_unittest/.gitignore
@@ -1,0 +1,1 @@
+build
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest.xcodeproj/project.pbxproj
@@ -1,0 +1,509 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 5447AB0219404B54001CD240 /* libgtest.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5447AB0019404B54001CD240 /* libgtest.a */; };
+ 5447AB0319404B54001CD240 /* libopenh264.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5447AB0119404B54001CD240 /* libopenh264.a */; };
+ 54EABE861940453B00F70476 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54EABE851940453B00F70476 /* Foundation.framework */; };
+ 54EABE881940453B00F70476 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54EABE871940453B00F70476 /* CoreGraphics.framework */; };
+ 54EABE8A1940453B00F70476 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54EABE891940453B00F70476 /* UIKit.framework */; };
+ 54EABE901940453B00F70476 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 54EABE8E1940453B00F70476 /* InfoPlist.strings */; };
+ 54EABE921940453B00F70476 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 54EABE911940453B00F70476 /* main.m */; };
+ 54EABE961940453B00F70476 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 54EABE951940453B00F70476 /* AppDelegate.m */; };
+ 54EABE991940453B00F70476 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 54EABE971940453B00F70476 /* Main.storyboard */; };
+ 54EABE9C1940453B00F70476 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 54EABE9B1940453B00F70476 /* ViewController.m */; };
+ 54EABE9E1940453B00F70476 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 54EABE9D1940453B00F70476 /* Images.xcassets */; };
+ 54EABEA51940453C00F70476 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54EABEA41940453C00F70476 /* XCTest.framework */; };
+ 54EABEA61940453C00F70476 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54EABE851940453B00F70476 /* Foundation.framework */; };
+ 54EABEA71940453C00F70476 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54EABE891940453B00F70476 /* UIKit.framework */; };
+ 54EABEAF1940453C00F70476 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 54EABEAD1940453C00F70476 /* InfoPlist.strings */; };
+ 54EABEB11940453C00F70476 /* codec_unittestTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 54EABEB01940453C00F70476 /* codec_unittestTests.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 54EABEA81940453C00F70476 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 54EABE7A1940453B00F70476 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 54EABE811940453B00F70476;
+ remoteInfo = codec_unittest;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXFileReference section */
+ 5447AB0019404B54001CD240 /* libgtest.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libgtest.a; path = ../../../../libgtest.a; sourceTree = "<group>"; };
+ 5447AB0119404B54001CD240 /* libopenh264.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libopenh264.a; path = ../../../../libopenh264.a; sourceTree = "<group>"; };
+ 54EABE821940453B00F70476 /* codec_unittest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = codec_unittest.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 54EABE851940453B00F70476 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 54EABE871940453B00F70476 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ 54EABE891940453B00F70476 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ 54EABE8D1940453B00F70476 /* codec_unittest-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "codec_unittest-Info.plist"; sourceTree = "<group>"; };
+ 54EABE8F1940453B00F70476 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 54EABE911940453B00F70476 /* main.m */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; path = main.m; sourceTree = "<group>"; };
+ 54EABE931940453B00F70476 /* codec_unittest-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "codec_unittest-Prefix.pch"; sourceTree = "<group>"; };
+ 54EABE941940453B00F70476 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+ 54EABE951940453B00F70476 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+ 54EABE981940453B00F70476 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+ 54EABE9A1940453B00F70476 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
+ 54EABE9B1940453B00F70476 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
+ 54EABE9D1940453B00F70476 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
+ 54EABEA31940453C00F70476 /* codec_unittestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = codec_unittestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 54EABEA41940453C00F70476 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
+ 54EABEAC1940453C00F70476 /* codec_unittestTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "codec_unittestTests-Info.plist"; sourceTree = "<group>"; };
+ 54EABEAE1940453C00F70476 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 54EABEB01940453C00F70476 /* codec_unittestTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = codec_unittestTests.m; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 54EABE7F1940453B00F70476 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 5447AB0219404B54001CD240 /* libgtest.a in Frameworks */,
+ 5447AB0319404B54001CD240 /* libopenh264.a in Frameworks */,
+ 54EABE881940453B00F70476 /* CoreGraphics.framework in Frameworks */,
+ 54EABE8A1940453B00F70476 /* UIKit.framework in Frameworks */,
+ 54EABE861940453B00F70476 /* Foundation.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 54EABEA01940453C00F70476 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 54EABEA51940453C00F70476 /* XCTest.framework in Frameworks */,
+ 54EABEA71940453C00F70476 /* UIKit.framework in Frameworks */,
+ 54EABEA61940453C00F70476 /* Foundation.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 54EABE791940453B00F70476 = {
+ isa = PBXGroup;
+ children = (
+ 54EABE8B1940453B00F70476 /* codec_unittest */,
+ 54EABEAA1940453C00F70476 /* codec_unittestTests */,
+ 54EABE841940453B00F70476 /* Frameworks */,
+ 54EABE831940453B00F70476 /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 54EABE831940453B00F70476 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 54EABE821940453B00F70476 /* codec_unittest.app */,
+ 54EABEA31940453C00F70476 /* codec_unittestTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 54EABE841940453B00F70476 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 5447AB0019404B54001CD240 /* libgtest.a */,
+ 5447AB0119404B54001CD240 /* libopenh264.a */,
+ 54EABE851940453B00F70476 /* Foundation.framework */,
+ 54EABE871940453B00F70476 /* CoreGraphics.framework */,
+ 54EABE891940453B00F70476 /* UIKit.framework */,
+ 54EABEA41940453C00F70476 /* XCTest.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 54EABE8B1940453B00F70476 /* codec_unittest */ = {
+ isa = PBXGroup;
+ children = (
+ 54EABE941940453B00F70476 /* AppDelegate.h */,
+ 54EABE951940453B00F70476 /* AppDelegate.m */,
+ 54EABE971940453B00F70476 /* Main.storyboard */,
+ 54EABE9A1940453B00F70476 /* ViewController.h */,
+ 54EABE9B1940453B00F70476 /* ViewController.m */,
+ 54EABE9D1940453B00F70476 /* Images.xcassets */,
+ 54EABE8C1940453B00F70476 /* Supporting Files */,
+ );
+ path = codec_unittest;
+ sourceTree = "<group>";
+ };
+ 54EABE8C1940453B00F70476 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 54EABE8D1940453B00F70476 /* codec_unittest-Info.plist */,
+ 54EABE8E1940453B00F70476 /* InfoPlist.strings */,
+ 54EABE911940453B00F70476 /* main.m */,
+ 54EABE931940453B00F70476 /* codec_unittest-Prefix.pch */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+ 54EABEAA1940453C00F70476 /* codec_unittestTests */ = {
+ isa = PBXGroup;
+ children = (
+ 54EABEB01940453C00F70476 /* codec_unittestTests.m */,
+ 54EABEAB1940453C00F70476 /* Supporting Files */,
+ );
+ path = codec_unittestTests;
+ sourceTree = "<group>";
+ };
+ 54EABEAB1940453C00F70476 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 54EABEAC1940453C00F70476 /* codec_unittestTests-Info.plist */,
+ 54EABEAD1940453C00F70476 /* InfoPlist.strings */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 54EABE811940453B00F70476 /* codec_unittest */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 54EABEB41940453C00F70476 /* Build configuration list for PBXNativeTarget "codec_unittest" */;
+ buildPhases = (
+ 54EABE7E1940453B00F70476 /* Sources */,
+ 54EABE7F1940453B00F70476 /* Frameworks */,
+ 54EABE801940453B00F70476 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = codec_unittest;
+ productName = codec_unittest;
+ productReference = 54EABE821940453B00F70476 /* codec_unittest.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 54EABEA21940453C00F70476 /* codec_unittestTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 54EABEB71940453C00F70476 /* Build configuration list for PBXNativeTarget "codec_unittestTests" */;
+ buildPhases = (
+ 54EABE9F1940453C00F70476 /* Sources */,
+ 54EABEA01940453C00F70476 /* Frameworks */,
+ 54EABEA11940453C00F70476 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 54EABEA91940453C00F70476 /* PBXTargetDependency */,
+ );
+ name = codec_unittestTests;
+ productName = codec_unittestTests;
+ productReference = 54EABEA31940453C00F70476 /* codec_unittestTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 54EABE7A1940453B00F70476 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0500;
+ ORGANIZATIONNAME = com.cisco;
+ TargetAttributes = {
+ 54EABEA21940453C00F70476 = {
+ TestTargetID = 54EABE811940453B00F70476;
+ };
+ };
+ };
+ buildConfigurationList = 54EABE7D1940453B00F70476 /* Build configuration list for PBXProject "codec_unittest" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 54EABE791940453B00F70476;
+ productRefGroup = 54EABE831940453B00F70476 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 54EABE811940453B00F70476 /* codec_unittest */,
+ 54EABEA21940453C00F70476 /* codec_unittestTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 54EABE801940453B00F70476 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 54EABE9E1940453B00F70476 /* Images.xcassets in Resources */,
+ 54EABE901940453B00F70476 /* InfoPlist.strings in Resources */,
+ 54EABE991940453B00F70476 /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 54EABEA11940453C00F70476 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 54EABEAF1940453C00F70476 /* InfoPlist.strings in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 54EABE7E1940453B00F70476 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 54EABE9C1940453B00F70476 /* ViewController.m in Sources */,
+ 54EABE961940453B00F70476 /* AppDelegate.m in Sources */,
+ 54EABE921940453B00F70476 /* main.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 54EABE9F1940453C00F70476 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 54EABEB11940453C00F70476 /* codec_unittestTests.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 54EABEA91940453C00F70476 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 54EABE811940453B00F70476 /* codec_unittest */;
+ targetProxy = 54EABEA81940453C00F70476 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 54EABE8E1940453B00F70476 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 54EABE8F1940453B00F70476 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ 54EABE971940453B00F70476 /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 54EABE981940453B00F70476 /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "<group>";
+ };
+ 54EABEAD1940453C00F70476 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 54EABEAE1940453C00F70476 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 54EABEB21940453C00F70476 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ 54EABEB31940453C00F70476 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ ENABLE_NS_ASSERTIONS = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 54EABEB51940453C00F70476 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = armv7;
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "libstdc++";
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "codec_unittest/codec_unittest-Prefix.pch";
+ INFOPLIST_FILE = "codec_unittest/codec_unittest-Info.plist";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ /Users/yongzxu/Desktop/openh264,
+ );
+ OTHER_LDFLAGS = (
+ "-force_load",
+ "$(BUILT_PRODUCTS_DIR)/libut.a",
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ 54EABEB61940453C00F70476 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = armv7;
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "libstdc++";
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "codec_unittest/codec_unittest-Prefix.pch";
+ INFOPLIST_FILE = "codec_unittest/codec_unittest-Info.plist";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ /Users/yongzxu/Desktop/openh264,
+ );
+ OTHER_LDFLAGS = (
+ "-force_load",
+ "$(BUILT_PRODUCTS_DIR)/libut.a",
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+ 54EABEB81940453C00F70476 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
+ BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/codec_unittest.app/codec_unittest";
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(inherited)",
+ "$(DEVELOPER_FRAMEWORKS_DIR)",
+ );
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "codec_unittest/codec_unittest-Prefix.pch";
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ INFOPLIST_FILE = "codec_unittestTests/codec_unittestTests-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TEST_HOST = "$(BUNDLE_LOADER)";
+ WRAPPER_EXTENSION = xctest;
+ };
+ name = Debug;
+ };
+ 54EABEB91940453C00F70476 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
+ BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/codec_unittest.app/codec_unittest";
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(inherited)",
+ "$(DEVELOPER_FRAMEWORKS_DIR)",
+ );
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "codec_unittest/codec_unittest-Prefix.pch";
+ INFOPLIST_FILE = "codec_unittestTests/codec_unittestTests-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TEST_HOST = "$(BUNDLE_LOADER)";
+ WRAPPER_EXTENSION = xctest;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 54EABE7D1940453B00F70476 /* Build configuration list for PBXProject "codec_unittest" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 54EABEB21940453C00F70476 /* Debug */,
+ 54EABEB31940453C00F70476 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 54EABEB41940453C00F70476 /* Build configuration list for PBXNativeTarget "codec_unittest" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 54EABEB51940453C00F70476 /* Debug */,
+ 54EABEB61940453C00F70476 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 54EABEB71940453C00F70476 /* Build configuration list for PBXNativeTarget "codec_unittestTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 54EABEB81940453C00F70476 /* Debug */,
+ 54EABEB91940453C00F70476 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 54EABE7A1940453B00F70476 /* Project object */;
+}
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/AppDelegate.h
@@ -1,0 +1,15 @@
+//
+// AppDelegate.h
+// codec_unittest
+//
+// Created by openh264 on 14-6-5.
+// Copyright (c) 2014年 com.cisco. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/AppDelegate.m
@@ -1,0 +1,46 @@
+//
+// AppDelegate.m
+// codec_unittest
+//
+// Created by openh264 on 14-6-5.
+// Copyright (c) 2014年 com.cisco. All rights reserved.
+//
+
+#import "AppDelegate.h"
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ // Override point for customization after application launch.
+ return YES;
+}
+
+- (void)applicationWillResignActive:(UIApplication *)application
+{
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
+}
+
+- (void)applicationDidEnterBackground:(UIApplication *)application
+{
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
+}
+
+- (void)applicationWillEnterForeground:(UIApplication *)application
+{
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
+}
+
+- (void)applicationDidBecomeActive:(UIApplication *)application
+{
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+}
+
+- (void)applicationWillTerminate:(UIApplication *)application
+{
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
+}
+
+@end
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/Base.lproj/Main.storyboard
@@ -1,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4451" systemVersion="13A461" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
+ <dependencies>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3676"/>
+ </dependencies>
+ <scenes>
+ <!--class Prefix:identifier View Controller-->
+ <scene sceneID="ufC-wZ-h7g">
+ <objects>
+ <viewController id="vXZ-lx-hvc" customClass="ViewController" sceneMemberID="viewController">
+ <view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
+ <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
+ </objects>
+ </scene>
+ </scenes>
+ <simulatedMetricsContainer key="defaultSimulatedMetrics">
+ <simulatedStatusBarMetrics key="statusBar"/>
+ <simulatedOrientationMetrics key="orientation"/>
+ <simulatedScreenMetrics key="destination" type="retina4"/>
+ </simulatedMetricsContainer>
+</document>
\ No newline at end of file
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/Images.xcassets/AppIcon.appiconset/Contents.json
@@ -1,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/Images.xcassets/LaunchImage.launchimage/Contents.json
@@ -1,0 +1,23 @@
+{
+ "images" : [
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ },
+ {
+ "orientation" : "portrait",
+ "idiom" : "iphone",
+ "subtype" : "retina4",
+ "extent" : "full-screen",
+ "minimum-system-version" : "7.0",
+ "scale" : "2x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/ViewController.h
@@ -1,0 +1,13 @@
+//
+// ViewController.h
+// codec_unittest
+//
+// Created by openh264 on 14-6-5.
+// Copyright (c) 2014年 com.cisco. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface ViewController : UIViewController
+
+@end
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/ViewController.m
@@ -1,0 +1,29 @@
+//
+// ViewController.m
+// codec_unittest
+//
+// Created by openh264 on 14-6-5.
+// Copyright (c) 2014年 com.cisco. All rights reserved.
+//
+
+#import "ViewController.h"
+
+@interface ViewController ()
+
+@end
+
+@implementation ViewController
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ // Do any additional setup after loading the view, typically from a nib.
+}
+
+- (void)didReceiveMemoryWarning
+{
+ [super didReceiveMemoryWarning];
+ // Dispose of any resources that can be recreated.
+}
+
+@end
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/codec_unittest-Info.plist
@@ -1,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.cisco.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIMainStoryboardFile</key>
+ <string>Main</string>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/codec_unittest-Prefix.pch
@@ -1,0 +1,16 @@
+//
+// Prefix header
+//
+// The contents of this file are implicitly included at the beginning of every source file.
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_5_0
+#warning "This project uses features only available in iOS SDK 5.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/en.lproj/InfoPlist.strings
@@ -1,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittest/main.m
@@ -1,0 +1,63 @@
+//
+// main.m
+// codec_unittest
+//
+// Created by openh264 on 14-6-5.
+// Copyright (c) 2014年 com.cisco. All rights reserved.
+//
+
+
+#import <UIKit/UIKit.h>
+
+#import "AppDelegate.h"
+extern int CodecUtMain(int argc, char** argv);
+
+
+int GetDocumentPath(char *pPath, unsigned long *pLen)
+{
+ if (!pLen) return 1;
+
+ unsigned long uPathLen = *pLen;
+ if(NULL == pPath || 0 == uPathLen)
+ {
+ return 1;
+ }
+
+ NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
+ if([paths count] == 0)
+ {
+ return 2;
+ }
+ NSString* document = [paths objectAtIndex:0];
+ NSString* escapedPath = [document stringByReplacingOccurrencesOfString:@" " withString:@"\\ "];
+ unsigned long uDocumentPathLen = [escapedPath length];
+ uPathLen= (uDocumentPathLen <= uPathLen) ? uDocumentPathLen : uPathLen;
+ memcpy(pPath,[escapedPath UTF8String],uPathLen);
+
+ return 0;
+}
+
+
+
+
+int main(int argc, char * argv[])
+{
+ //Call the UT
+#ifdef IOS_SIMULATOR
+ const char* path="/tmp/codec_unittest.xml";
+#else
+ char xmlWritePath[1024] = "";
+ unsigned long uPathLen = 1024;
+ char path[1024] = "";
+ GetDocumentPath(xmlWritePath,&uPathLen);
+ sprintf(path, "%s%s",xmlWritePath,"/codec_unittest.xml");
+
+#endif
+ argc =2;
+ argv[0]="codec_unittest";
+ argv[1]=path;
+ CodecUtMain(argc,argv);
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
+ }
+}
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittestTests/codec_unittestTests-Info.plist
@@ -1,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.cisco.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>BNDL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+</dict>
+</plist>
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittestTests/codec_unittestTests.m
@@ -1,0 +1,34 @@
+//
+// codec_unittestTests.m
+// codec_unittestTests
+//
+// Created by openh264 on 14-6-5.
+// Copyright (c) 2014年 com.cisco. All rights reserved.
+//
+
+#import <XCTest/XCTest.h>
+
+@interface codec_unittestTests : XCTestCase
+
+@end
+
+@implementation codec_unittestTests
+
+- (void)setUp
+{
+ [super setUp];
+ // Put setup code here. This method is called before the invocation of each test method in the class.
+}
+
+- (void)tearDown
+{
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
+ [super tearDown];
+}
+
+- (void)testExample
+{
+ XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
+}
+
+@end
--- /dev/null
+++ b/test/build/ios/codec_unittest/codec_unittestTests/en.lproj/InfoPlist.strings
@@ -1,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+