summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/determinism/solibs.gyp
blob: 9ae3246d6383a37ab0bae60ee05fe59274ba5bc2 (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
# 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.

# This test both tests solibs and implicit_deps.
{
  'targets': [
    {
      'target_name': 'a',
      'type': 'shared_library',
      'sources': [ 'solib.cc' ],
    },
    {
      'target_name': 'b',
      'type': 'shared_library',
      'sources': [ 'solib.cc' ],
    },
    {
      'target_name': 'c',
      'type': 'executable',
      'sources': [ 'main.cc' ],
      'dependencies': [ 'a', 'b' ],
    },
  ],
  'conditions': [
    ['OS=="linux"', {
      'target_defaults': {
        'cflags': ['-fPIC'],
      },
    }],
  ],
}