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 { 6 'targets': [ 7 { 8 'target_name': 'test_force_reference_lib', 9 'type': 'static_library', 10 'sources': ['x.cc', 'y.cc'], 11 }, 12 { 13 'target_name': 'test_force_reference', 14 'type': 'executable', 15 # Turn on debug info to get symbols in disasm for the test code, and 16 # turn on opt:ref to drop unused symbols to make sure we wouldn't 17 # otherwise have the symbols. 18 'msvs_settings': { 19 'VCCLCompilerTool': { 20 'DebugInformationFormat': '3', 21 }, 22 'VCLinkerTool': { 23 'GenerateDebugInformation': 'true', 24 'AdditionalOptions': [ 25 '/OPT:REF', 26 ], 27 'ForceSymbolReferences': [ 28 '?x@@YAHXZ', 29 '?y@@YAHXZ', 30 ], 31 }, 32 }, 33 'sources': ['hello.cc'], 34 'dependencies': [ 35 'test_force_reference_lib', 36 ], 37 }, 38 ] 39 } 40