mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-01 21:07:30 +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
1
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/c-file.c
Normal file
1
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/c-file.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
void c_fun() {}
|
||||
1
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/cc-file.cc
Normal file
1
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/cc-file.cc
Normal file
|
|
@ -0,0 +1 @@
|
|||
void cc_fun() {}
|
||||
6
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/main.m
Normal file
6
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/main.m
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
|
||||
int main() {
|
||||
printf("gc on: %d\n", [NSGarbageCollector defaultCollector] != NULL);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
void objcpp_fun() { }
|
||||
1
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/needs-gc.m
Normal file
1
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/needs-gc.m
Normal file
|
|
@ -0,0 +1 @@
|
|||
void objc_fun() { }
|
||||
102
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/test.gyp
Normal file
102
media/webrtc/trunk/tools/gyp/test/mac/objc-gc/test.gyp
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
# Copyright (c) 2012 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.
|
||||
{
|
||||
'targets': [
|
||||
# For some reason, static_library targets that are built with gc=required
|
||||
# and then linked to executables that don't use gc, the linker doesn't
|
||||
# complain. For shared_libraries it does, so use that.
|
||||
{
|
||||
'target_name': 'no_gc_lib',
|
||||
'type': 'shared_library',
|
||||
'sources': [
|
||||
'c-file.c',
|
||||
'cc-file.cc',
|
||||
'needs-gc-mm.mm',
|
||||
'needs-gc.m',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'gc_lib',
|
||||
'type': 'shared_library',
|
||||
'sources': [
|
||||
'c-file.c',
|
||||
'cc-file.cc',
|
||||
'needs-gc-mm.mm',
|
||||
'needs-gc.m',
|
||||
],
|
||||
'xcode_settings': {
|
||||
'GCC_ENABLE_OBJC_GC': 'supported',
|
||||
},
|
||||
},
|
||||
{
|
||||
'target_name': 'gc_req_lib',
|
||||
'type': 'shared_library',
|
||||
'sources': [
|
||||
'c-file.c',
|
||||
'cc-file.cc',
|
||||
'needs-gc-mm.mm',
|
||||
'needs-gc.m',
|
||||
],
|
||||
'xcode_settings': {
|
||||
'GCC_ENABLE_OBJC_GC': 'required',
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
'target_name': 'gc_exe_fails',
|
||||
'type': 'executable',
|
||||
'sources': [ 'main.m' ],
|
||||
'dependencies': [ 'no_gc_lib' ],
|
||||
'xcode_settings': {
|
||||
'GCC_ENABLE_OBJC_GC': 'required',
|
||||
},
|
||||
'libraries': [ 'Foundation.framework' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'gc_req_exe',
|
||||
'type': 'executable',
|
||||
'sources': [ 'main.m' ],
|
||||
'dependencies': [ 'gc_lib' ],
|
||||
'xcode_settings': {
|
||||
'GCC_ENABLE_OBJC_GC': 'required',
|
||||
},
|
||||
'libraries': [ 'Foundation.framework' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'gc_exe_req_lib',
|
||||
'type': 'executable',
|
||||
'sources': [ 'main.m' ],
|
||||
'dependencies': [ 'gc_req_lib' ],
|
||||
'xcode_settings': {
|
||||
'GCC_ENABLE_OBJC_GC': 'supported',
|
||||
},
|
||||
'libraries': [ 'Foundation.framework' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'gc_exe',
|
||||
'type': 'executable',
|
||||
'sources': [ 'main.m' ],
|
||||
'dependencies': [ 'gc_lib' ],
|
||||
'xcode_settings': {
|
||||
'GCC_ENABLE_OBJC_GC': 'supported',
|
||||
},
|
||||
'libraries': [ 'Foundation.framework' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'gc_off_exe_req_lib',
|
||||
'type': 'executable',
|
||||
'sources': [ 'main.m' ],
|
||||
'dependencies': [ 'gc_req_lib' ],
|
||||
'libraries': [ 'Foundation.framework' ],
|
||||
},
|
||||
{
|
||||
'target_name': 'gc_off_exe',
|
||||
'type': 'executable',
|
||||
'sources': [ 'main.m' ],
|
||||
'dependencies': [ 'gc_lib' ],
|
||||
'libraries': [ 'Foundation.framework' ],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue