mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
6
media/webrtc/trunk/tools/gyp/test/mac/objc-arc/c-file.c
Normal file
6
media/webrtc/trunk/tools/gyp/test/mac/objc-arc/c-file.c
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#if __has_feature(objc_arc)
|
||||
#error "C files shouldn't be ARC'd!"
|
||||
#endif
|
||||
|
||||
void c_fun() {}
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#if __has_feature(objc_arc)
|
||||
#error "C++ files shouldn't be ARC'd!"
|
||||
#endif
|
||||
|
||||
void cc_fun() {}
|
||||
|
|
@ -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() {}
|
||||
5
media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file.m
Normal file
5
media/webrtc/trunk/tools/gyp/test/mac/objc-arc/m-file.m
Normal file
|
|
@ -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() {}
|
||||
|
|
@ -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() {}
|
||||
|
|
@ -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() {}
|
||||
45
media/webrtc/trunk/tools/gyp/test/mac/objc-arc/test.gyp
Normal file
45
media/webrtc/trunk/tools/gyp/test/mac/objc-arc/test.gyp
Normal file
|
|
@ -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.
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue