~hjd/ubuntu/wily/gyp/debian-merged

« back to all changes in this revision

Viewing changes to test/win/linker-flags/force-symbol-reference.gyp

  • Committer: Hans Joachim Desserud
  • Date: 2015-10-31 12:46:59 UTC
  • mfrom: (6.2.6 sid)
  • Revision ID: hans_joachim_desserud-20151031124659-lzxekr6woskh4k0b
Merge latest Debian version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}