diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/tools/gyp/test/mac/objc-arc | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/mac/objc-arc')
7 files changed, 76 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/c-file.c b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/c-file.c new file mode 100644 index 000000000..653613206 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/c-file.c @@ -0,0 +1,6 @@ +#if __has_feature(objc_arc) +#error "C files shouldn't be ARC'd!" +#endif + +void c_fun() {} + diff --git a/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/cc-file.cc b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/cc-file.cc new file mode 100644 index 000000000..95e14ea3e --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/cc-file.cc @@ -0,0 +1,5 @@ +#if __has_feature(objc_arc) +#error "C++ files shouldn't be ARC'd!" +#endif + +void cc_fun() {} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file-no-arc.m b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file-no-arc.m new file mode 100644 index 000000000..8ffaabfaa --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file-no-arc.m @@ -0,0 +1,5 @@ +#if __has_feature(objc_arc) +#error "ObjC files without CLANG_ENABLE_OBJC_ARC should not be ARC'd!" +#endif + +void m_fun() {} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file.m b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file.m new file mode 100644 index 000000000..9689b1f8e --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file.m @@ -0,0 +1,5 @@ +#if !__has_feature(objc_arc) +#error "ObjC files with CLANG_ENABLE_OBJC_ARC should be ARC'd!" +#endif + +void m_fun() {} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/mm-file-no-arc.mm b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/mm-file-no-arc.mm new file mode 100644 index 000000000..0dac53949 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/mm-file-no-arc.mm @@ -0,0 +1,5 @@ +#if __has_feature(objc_arc) +#error "ObjC++ files without CLANG_ENABLE_OBJC_ARC should not be ARC'd!" +#endif + +void mm_fun() {} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/mm-file.mm b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/mm-file.mm new file mode 100644 index 000000000..9467e9656 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/mm-file.mm @@ -0,0 +1,5 @@ +#if !__has_feature(objc_arc) +#error "ObjC++ files with CLANG_ENABLE_OBJC_ARC should be ARC'd!" +#endif + +void mm_fun() {} diff --git a/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/test.gyp b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/test.gyp new file mode 100644 index 000000000..59cf0e29c --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/objc-arc/test.gyp @@ -0,0 +1,45 @@ +# 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'], + ['CXX', '/usr/bin/clang++'], + ], + + 'targets': [ + { + 'target_name': 'arc_enabled', + 'type': 'static_library', + 'sources': [ + 'c-file.c', + 'cc-file.cc', + 'm-file.m', + 'mm-file.mm', + ], + 'xcode_settings': { + 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', + 'MACOSX_DEPLOYMENT_TARGET': '10.6', + 'ARCHS': [ 'x86_64' ], # For the non-fragile objc ABI. + 'CLANG_ENABLE_OBJC_ARC': 'YES', + }, + }, + + { + 'target_name': 'arc_disabled', + 'type': 'static_library', + 'sources': [ + 'c-file.c', + 'cc-file.cc', + 'm-file-no-arc.m', + 'mm-file-no-arc.mm', + ], + 'xcode_settings': { + 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', + 'MACOSX_DEPLOYMENT_TARGET': '10.6', + 'ARCHS': [ 'x86_64' ], # For the non-fragile objc ABI. + }, + }, + ], +} + |