summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/copies/src/copies-sourceless-shared-lib.gyp
blob: 7908f716a9071b582abe39f0e366ba440e8de357 (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
# Copyright (c) 2015 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': 'mylib',
      'type': 'static_library',
      'sources': [ 'foo.c' ],
    },
    {
      'target_name': 'mysolib',
      'type': 'shared_library',
      'dependencies': [ 'mylib' ],
      'copies': [
        {
          'destination': '<(PRODUCT_DIR)/copies-out',
          'files': [ 'file1' ],
        },
      ],
      # link.exe gets confused by sourceless shared libraries and needs this
      # to become unconfused.
      'msvs_settings': { 'VCLinkerTool': { 'TargetMachine': '1', }, },
    },
  ],
}