1# Copyright (c) 2012 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{ 6 'targets': [ 7 { 8 'target_name': 'lib1', 9 'type': 'static_library', 10 'sources': ['a.cc'], 11 }, 12 { 13 'target_name': 'final_uldi', 14 'type': 'executable', 15 'dependencies': [ 16 'lib1', 17 'lib2', 18 ], 19 'msvs_settings': { 20 'VCLinkerTool': { 21 'UseLibraryDependencyInputs': 'true' 22 }, 23 }, 24 'sources': ['main.cc'], 25 }, 26 { 27 'target_name': 'final_no_uldi', 28 'type': 'executable', 29 'dependencies': [ 30 'lib1', 31 'lib2', 32 ], 33 'sources': ['main.cc'], 34 }, 35 { 36 'target_name': 'lib2', 37 'type': 'static_library', 38 # b.cc has the same named function as a.cc, but don't use the same name 39 # so that the .obj will have a different name. If the obj file has the 40 # same name, the linker will discard the obj file, invalidating the 41 # test. 42 'sources': ['b.cc'], 43 }, 44 ] 45} 46