summaryrefslogtreecommitdiff
path: root/deps/gyp/test/library/src/shared_dependency.gyp
blob: 7d29f5de598551ef730a13d6351a87dd2856e54c (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
# Copyright (c) 2009 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': 'lib1',
      'type': 'shared_library',
      'sources': [
        'lib1.c',
      ],
    },
    {
      'target_name': 'lib2',
      'type': 'shared_library',
      'sources': [
        'lib2.c',
      ],
      'dependencies': [
        'lib1',
      ],
    },
  ],
  'conditions': [
    ['OS=="linux"', {
      'target_defaults': {
        # Support 64-bit shared libs (also works fine for 32-bit).
        'cflags': ['-fPIC'],
      },
    }],
  ],
}