summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/no-cpp/src/test.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/no-cpp/src/test.gyp')
-rw-r--r--media/webrtc/trunk/tools/gyp/test/no-cpp/src/test.gyp25
1 files changed, 25 insertions, 0 deletions
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' ],
+ },
+ ],
+}