summaryrefslogtreecommitdiff
path: root/deps/gyp/test/ninja/solibs_avoid_relinking/solibs_avoid_relinking.gyp
blob: e816351d684f554986d74562f711be62b3112cea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright (c) 2012 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': 'a',
      'type': 'shared_library',
      'sources': [ 'solib.cc' ],
      # Incremental linking enabled so that .lib timestamp is maintained when
      # exports are unchanged.
      'msvs_settings': {
        'VCLinkerTool': {
          'LinkIncremental': '2',
        }
      },
    },
    {
      'target_name': 'b',
      'type': 'executable',
      'sources': [ 'main.cc' ],
      'dependencies': [ 'a' ],
      'msvs_settings': {
        'VCLinkerTool': {
          'LinkIncremental': '2',
        }
      },
    },
  ],
  'conditions': [
    ['OS=="linux"', {
      'target_defaults': {
        'cflags': ['-fPIC'],
      },
    }],
  ],
}