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/no-cpp/src | |
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/no-cpp/src')
4 files changed, 31 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/no-cpp/src/call-f-main.c b/media/webrtc/trunk/tools/gyp/test/no-cpp/src/call-f-main.c new file mode 100644 index 000000000..8b95c5910 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/no-cpp/src/call-f-main.c @@ -0,0 +1,2 @@ +void* f(); +int main() { f(); } diff --git a/media/webrtc/trunk/tools/gyp/test/no-cpp/src/empty-main.c b/media/webrtc/trunk/tools/gyp/test/no-cpp/src/empty-main.c new file mode 100644 index 000000000..237c8ce18 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/no-cpp/src/empty-main.c @@ -0,0 +1 @@ +int main() {} diff --git a/media/webrtc/trunk/tools/gyp/test/no-cpp/src/f.cc b/media/webrtc/trunk/tools/gyp/test/no-cpp/src/f.cc new file mode 100644 index 000000000..02f50f21a --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/no-cpp/src/f.cc @@ -0,0 +1,3 @@ +extern "C" { void* f(); } + +void* f() { return new int; } diff --git a/media/webrtc/trunk/tools/gyp/test/no-cpp/src/test.gyp b/media/webrtc/trunk/tools/gyp/test/no-cpp/src/test.gyp new file mode 100644 index 000000000..417015ec8 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/no-cpp/src/test.gyp @@ -0,0 +1,25 @@ +# 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. +{ + 'targets': [ + { + 'target_name': 'no_cpp', + 'type': 'executable', + 'sources': [ 'empty-main.c' ], + }, + # A static_library with a cpp file and a linkable with only .c files + # depending on it causes a linker error: + { + 'target_name': 'cpp_lib', + 'type': 'static_library', + 'sources': [ 'f.cc' ], + }, + { + 'target_name': 'no_cpp_dep_on_cc_lib', + 'type': 'executable', + 'dependencies': [ 'cpp_lib' ], + 'sources': [ 'call-f-main.c' ], + }, + ], +} |