1 # Copyright (c) 2013 Google Inc. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 { 5 'targets': [ 6 { 7 'target_name': 'no_cpp', 8 'type': 'executable', 9 'sources': [ 'empty-main.c' ], 10 }, 11 # A static_library with a cpp file and a linkable with only .c files 12 # depending on it causes a linker error: 13 { 14 'target_name': 'cpp_lib', 15 'type': 'static_library', 16 'sources': [ 'f.cc' ], 17 }, 18 { 19 'target_name': 'no_cpp_dep_on_cc_lib', 20 'type': 'executable', 21 'dependencies': [ 'cpp_lib' ], 22 'sources': [ 'call-f-main.c' ], 23 }, 24 ], 25 } 26