From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../TestApp/English.lproj/InfoPlist-error.strings | 3 + .../TestApp/English.lproj/InfoPlist.strings | 3 + .../TestApp/English.lproj/LanguageMap.plist | 8 ++ .../app-bundle/TestApp/English.lproj/MainMenu.xib | 17 ++++ .../TestApp/English.lproj/Main_iPhone.storyboard | 27 +++++ .../AppIcon.appiconset/Contents.json | 58 +++++++++++ .../Images.xcassets/image.imageset/Contents.json | 23 +++++ .../image.imageset/super_sylvain.png | Bin 0 -> 3263 bytes .../image.imageset/super_sylvain@2x.png | Bin 0 -> 3847 bytes .../image.imageset/super_sylvain@3x.png | Bin 0 -> 4394 bytes .../test/ios/app-bundle/TestApp/TestApp-Info.plist | 28 ++++++ .../ios/app-bundle/TestApp/check_no_signature.py | 13 +++ .../tools/gyp/test/ios/app-bundle/TestApp/main.m | 13 +++ .../app-bundle/TestApp/only-compile-in-32-bits.m | 7 ++ .../app-bundle/TestApp/only-compile-in-64-bits.m | 7 ++ .../tools/gyp/test/ios/app-bundle/test-archs.gyp | 109 +++++++++++++++++++++ .../test/ios/app-bundle/test-assets-catalog.gyp | 45 +++++++++ .../gyp/test/ios/app-bundle/test-crosscompile.gyp | 47 +++++++++ .../tools/gyp/test/ios/app-bundle/test-device.gyp | 109 +++++++++++++++++++++ .../trunk/tools/gyp/test/ios/app-bundle/test.gyp | 75 ++++++++++++++ .../tools/gyp/test/ios/app-bundle/tool_main.cc | 7 ++ 21 files changed, 599 insertions(+) create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist.strings create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/LanguageMap.plist create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/MainMenu.xib create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/Main_iPhone.storyboard create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/Contents.json create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/TestApp-Info.plist create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/check_no_signature.py create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/main.m create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-32-bits.m create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-64-bits.m create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-archs.gyp create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-assets-catalog.gyp create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-crosscompile.gyp create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-device.gyp create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test.gyp create mode 100644 media/webrtc/trunk/tools/gyp/test/ios/app-bundle/tool_main.cc (limited to 'media/webrtc/trunk/tools/gyp/test/ios/app-bundle') diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings new file mode 100644 index 000000000..452e7fabf --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings @@ -0,0 +1,3 @@ +/* Localized versions of Info.plist keys */ + +NSHumanReadableCopyright = "Copyright ©2011 Google Inc." diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist.strings b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist.strings new file mode 100644 index 000000000..35bd33a96 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist.strings @@ -0,0 +1,3 @@ +/* Localized versions of Info.plist keys */ + +NSHumanReadableCopyright = "Copyright ©2011 Google Inc."; diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/LanguageMap.plist b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/LanguageMap.plist new file mode 100644 index 000000000..6b9488232 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/LanguageMap.plist @@ -0,0 +1,8 @@ + + + + + en + en + + diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/MainMenu.xib b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/MainMenu.xib new file mode 100644 index 000000000..21b60448a --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/MainMenu.xib @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/Main_iPhone.storyboard b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/Main_iPhone.storyboard new file mode 100644 index 000000000..723bc8512 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/English.lproj/Main_iPhone.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/AppIcon.appiconset/Contents.json b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..2db2b1c7c --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,58 @@ +{ + "images" : [ + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/Contents.json b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/Contents.json new file mode 100644 index 000000000..0a87b6edc --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x", + "filename" : "super_sylvain.png" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "super_sylvain@2x.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "super_sylvain@3x.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png new file mode 100644 index 000000000..0ba769182 Binary files /dev/null and b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png differ diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png new file mode 100644 index 000000000..edfa6a568 Binary files /dev/null and b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png differ diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png new file mode 100644 index 000000000..e0652efc7 Binary files /dev/null and b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png differ diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/TestApp-Info.plist b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/TestApp-Info.plist new file mode 100644 index 000000000..bb9004368 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/TestApp-Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.google.${PRODUCT_NAME} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ause + CFBundleVersion + 1 + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/check_no_signature.py b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/check_no_signature.py new file mode 100644 index 000000000..4f6e34007 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/check_no_signature.py @@ -0,0 +1,13 @@ +#!/usr/bin/python + +import os +import subprocess +import sys + +p = os.path.join(os.environ['BUILT_PRODUCTS_DIR'],os.environ['EXECUTABLE_PATH']) +proc = subprocess.Popen(['codesign', '-v', p], + stderr=subprocess.STDOUT, stdout=subprocess.PIPE) +o = proc.communicate()[0].strip() +if "code object is not signed at all" not in o: + sys.stderr.write('File should not already be signed.') + sys.exit(1) diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/main.m b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/main.m new file mode 100644 index 000000000..ec93e0e23 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/main.m @@ -0,0 +1,13 @@ +// Copyright (c) 2011 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import + +int main(int argc, char *argv[]) +{ + NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; + int retVal = UIApplicationMain(argc, argv, nil, nil); + [pool release]; + return retVal; +} diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-32-bits.m b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-32-bits.m new file mode 100644 index 000000000..28bb11778 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-32-bits.m @@ -0,0 +1,7 @@ +// Copyright (c) 2013 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#if defined(__LP64__) +# error 64-bit build +#endif diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-64-bits.m b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-64-bits.m new file mode 100644 index 000000000..e6d255841 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/TestApp/only-compile-in-64-bits.m @@ -0,0 +1,7 @@ +// Copyright (c) 2013 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#if !defined(__LP64__) +# error 32-bit build +#endif diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-archs.gyp b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-archs.gyp new file mode 100644 index 000000000..fa935c4fb --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-archs.gyp @@ -0,0 +1,109 @@ +# Copyright (c) 2013 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +{ + 'make_global_settings': [ + ['CC', '/usr/bin/clang'], + ], + 'target_defaults': { + 'mac_bundle_resources': [ + 'TestApp/English.lproj/InfoPlist.strings', + 'TestApp/English.lproj/MainMenu.xib', + ], + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', + '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', + ], + }, + 'xcode_settings': { + 'OTHER_CFLAGS': [ + '-fobjc-abi-version=2', + ], + 'CODE_SIGNING_REQUIRED': 'NO', + 'SDKROOT': 'iphoneos', # -isysroot + 'TARGETED_DEVICE_FAMILY': '1,2', + 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', + 'IPHONEOS_DEPLOYMENT_TARGET': '7.0', + 'CONFIGURATION_BUILD_DIR':'build/Default', + }, + }, + 'targets': [ + { + 'target_name': 'TestNoArchs', + 'product_name': 'TestNoArchs', + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'TestApp/main.m', + 'TestApp/only-compile-in-32-bits.m', + ], + 'xcode_settings': { + 'VALID_ARCHS': [ + 'i386', + 'x86_64', + 'arm64', + 'armv7', + ], + } + }, + { + 'target_name': 'TestArch32Bits', + 'product_name': 'TestArch32Bits', + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'TestApp/main.m', + 'TestApp/only-compile-in-32-bits.m', + ], + 'xcode_settings': { + 'ARCHS': [ + '$(ARCHS_STANDARD)', + ], + 'VALID_ARCHS': [ + 'i386', + 'armv7', + ], + }, + }, + { + 'target_name': 'TestArch64Bits', + 'product_name': 'TestArch64Bits', + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'TestApp/main.m', + 'TestApp/only-compile-in-64-bits.m', + ], + 'xcode_settings': { + 'ARCHS': [ + '$(ARCHS_STANDARD_INCLUDING_64_BIT)', + ], + 'VALID_ARCHS': [ + 'x86_64', + 'arm64', + ], + }, + }, + { + 'target_name': 'TestMultiArchs', + 'product_name': 'TestMultiArchs', + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'TestApp/main.m', + ], + 'xcode_settings': { + 'ARCHS': [ + '$(ARCHS_STANDARD_INCLUDING_64_BIT)', + ], + 'VALID_ARCHS': [ + 'x86_64', + 'i386', + 'arm64', + 'armv7', + ], + } + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-assets-catalog.gyp b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-assets-catalog.gyp new file mode 100644 index 000000000..9a12d07af --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-assets-catalog.gyp @@ -0,0 +1,45 @@ +# Copyright (c) 2011 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +{ + 'conditions': [ + ['"<(GENERATOR)"=="ninja"', { + 'make_global_settings': [ + ['CC', '/usr/bin/clang'], + ['CXX', '/usr/bin/clang++'], + ], + }], + ], + 'targets': [ + { + 'target_name': 'test_app', + 'product_name': 'Test App Assets Catalog Gyp', + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'TestApp/main.m', + ], + 'mac_bundle_resources': [ + 'TestApp/English.lproj/InfoPlist.strings', + 'TestApp/English.lproj/MainMenu.xib', + 'TestApp/English.lproj/Main_iPhone.storyboard', + 'TestApp/Images.xcassets', + ], + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', + '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', + ], + }, + 'xcode_settings': { + 'OTHER_CFLAGS': [ + '-fobjc-abi-version=2', + ], + 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', + 'SDKROOT': 'iphonesimulator', # -isysroot + 'IPHONEOS_DEPLOYMENT_TARGET': '7.0', + 'CONFIGURATION_BUILD_DIR':'build/Default', + }, + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-crosscompile.gyp b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-crosscompile.gyp new file mode 100644 index 000000000..d9049588b --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-crosscompile.gyp @@ -0,0 +1,47 @@ +# Copyright (c) 2014 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +{ + 'make_global_settings': [ + ['CC', '/usr/bin/clang'], + ], + 'targets': [ + # This target will not be built, but is here so that ninja Xcode emulation + # understand this is a multi-platform (ios + mac) build. + { + 'target_name': 'TestDummy', + 'product_name': 'TestDummy', + 'toolsets': ['target'], + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'tool_main.cc', + ], + 'xcode_settings': { + 'SDKROOT': 'iphonesimulator', # -isysroot + 'TARGETED_DEVICE_FAMILY': '1,2', + 'IPHONEOS_DEPLOYMENT_TARGET': '7.0', + }, + }, + { + 'target_name': 'TestHost', + 'product_name': 'TestHost', + 'toolsets': ['host'], + 'type': 'executable', + 'mac_bundle': 0, + 'sources': [ + 'tool_main.cc', + ], + 'xcode_settings': { + 'SDKROOT': 'macosx', + 'ARCHS': [ + '$(ARCHS_STANDARD)', + 'x86_64', + ], + 'VALID_ARCHS': [ + 'x86_64', + ], + } + } + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-device.gyp b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-device.gyp new file mode 100644 index 000000000..a0cfff7cd --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test-device.gyp @@ -0,0 +1,109 @@ +# Copyright (c) 2011 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +{ + 'conditions': [ + ['"<(GENERATOR)"=="xcode"', { + 'target_defaults': { + 'configurations': { + 'Default': { + 'xcode_settings': { + 'SDKROOT': 'iphonesimulator', + 'CONFIGURATION_BUILD_DIR':'build/Default', + } + }, + 'Default-iphoneos': { + 'xcode_settings': { + 'SDKROOT': 'iphoneos', + 'CONFIGURATION_BUILD_DIR':'build/Default-iphoneos', + } + }, + }, + }, + }, { + 'target_defaults': { + 'configurations': { + 'Default': { + 'xcode_settings': { + 'SDKROOT': 'iphonesimulator', + } + }, + }, + }, + }], + ], + 'targets': [ + { + 'target_name': 'test_app', + 'product_name': 'Test App Gyp', + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'TestApp/main.m', + ], + 'mac_bundle_resources': [ + 'TestApp/English.lproj/InfoPlist.strings', + 'TestApp/English.lproj/MainMenu.xib', + ], + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', + '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', + ], + }, + 'xcode_settings': { + 'OTHER_CFLAGS': [ + '-fobjc-abi-version=2', + ], + 'SDKROOT': 'iphonesimulator', # -isysroot + 'TARGETED_DEVICE_FAMILY': '1,2', + 'INFOPLIST_OUTPUT_FORMAT':'xml', + 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', + 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', + 'IPHONEOS_DEPLOYMENT_TARGET': '8.0', + 'CODE_SIGNING_REQUIRED': 'NO', + 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '', + + }, + }, + { + 'target_name': 'sig_test', + 'product_name': 'sigtest', + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'TestApp/main.m', + ], + 'mac_bundle_resources': [ + 'TestApp/English.lproj/InfoPlist.strings', + 'TestApp/English.lproj/MainMenu.xib', + ], + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', + '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', + ], + }, + 'postbuilds': [ + { + 'postbuild_name': 'Verify no signature', + 'action': [ + 'python', + 'TestApp/check_no_signature.py' + ], + }, + ], + 'xcode_settings': { + 'OTHER_CFLAGS': [ + '-fobjc-abi-version=2', + ], + 'SDKROOT': 'iphonesimulator', # -isysroot + 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer', + 'INFOPLIST_OUTPUT_FORMAT':'xml', + 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', + 'IPHONEOS_DEPLOYMENT_TARGET': '8.0', + 'CONFIGURATION_BUILD_DIR':'buildsig/Default', + }, + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test.gyp b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test.gyp new file mode 100644 index 000000000..544c589f6 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/test.gyp @@ -0,0 +1,75 @@ +# Copyright (c) 2011 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +{ + 'conditions': [ + ['"<(GENERATOR)"=="ninja"', { + 'make_global_settings': [ + ['CC', '/usr/bin/clang'], + ['CXX', '/usr/bin/clang++'], + ], + }], + ], + 'targets': [ + { + 'target_name': 'test_app', + 'product_name': 'Test App Gyp', + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'TestApp/main.m', + ], + 'mac_bundle_resources': [ + 'TestApp/English.lproj/InfoPlist.strings', + 'TestApp/English.lproj/LanguageMap.plist', + 'TestApp/English.lproj/MainMenu.xib', + 'TestApp/English.lproj/Main_iPhone.storyboard', + ], + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', + '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', + ], + }, + 'xcode_settings': { + 'OTHER_CFLAGS': [ + '-fobjc-abi-version=2', + ], + 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', + 'SDKROOT': 'iphonesimulator', # -isysroot + 'IPHONEOS_DEPLOYMENT_TARGET': '5.0', + 'CONFIGURATION_BUILD_DIR':'build/Default', + }, + }, + { + 'target_name': 'test_app_xml', + 'product_name': 'Test App Gyp XML', + 'type': 'executable', + 'mac_bundle': 1, + 'sources': [ + 'TestApp/main.m', + ], + 'mac_bundle_resources': [ + 'TestApp/English.lproj/InfoPlist.strings', + 'TestApp/English.lproj/MainMenu.xib', + 'TestApp/English.lproj/Main_iPhone.storyboard', + ], + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', + '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', + ], + }, + 'xcode_settings': { + 'OTHER_CFLAGS': [ + '-fobjc-abi-version=2', + ], + 'INFOPLIST_FILE': 'TestApp/TestApp-Info.plist', + 'INFOPLIST_OUTPUT_FORMAT':'xml', + 'SDKROOT': 'iphonesimulator', # -isysroot + 'IPHONEOS_DEPLOYMENT_TARGET': '5.0', + 'CONFIGURATION_BUILD_DIR':'build/Default', + }, + }, + ], +} diff --git a/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/tool_main.cc b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/tool_main.cc new file mode 100644 index 000000000..9dc3c94f3 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/ios/app-bundle/tool_main.cc @@ -0,0 +1,7 @@ +// Copyright (c) 2014 Google Inc. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +int main() { + return 0; +} -- cgit v1.2.3