summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/mac/objc-arc
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/tools/gyp/test/mac/objc-arc
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-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')
-rw-r--r--media/webrtc/trunk/tools/gyp/test/mac/objc-arc/c-file.c6
-rw-r--r--media/webrtc/trunk/tools/gyp/test/mac/objc-arc/cc-file.cc5
-rw-r--r--media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file-no-arc.m5
-rw-r--r--media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file.m5
-rw-r--r--media/webrtc/trunk/tools/gyp/test/mac/objc-arc/mm-file-no-arc.mm5
-rw-r--r--media/webrtc/trunk/tools/gyp/test/mac/objc-arc/mm-file.mm5
-rw-r--r--media/webrtc/trunk/tools/gyp/test/mac/objc-arc/test.gyp45
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.
+ },
+ },
+ ],
+}
+