summaryrefslogtreecommitdiff
path: root/deps/gyp/test/link-dependency/test.gyp
blob: 47cec15005f4c7caeb032ac71da688874b1bf632 (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
{
  'variables': {
    'custom_malloc%' : 1,
  },
  'target_defaults': {
    'conditions': [
      ['custom_malloc==1', {
        'dependencies': [
          'malloc',
        ],
      }],
    ],
  },
  'targets': [
    {
      'target_name': 'main',
      'type': 'none',
      'dependencies': [ 'main_initial',],
    },
    {
      'target_name': 'main_initial',
      'type': 'executable',
      'product_name': 'main',
      'sources': [ 'main.c' ],
    },
    {
      'target_name': 'malloc',
      'type': 'shared_library',
      'variables': {
        'prune_self_dependency': 1,
        # Targets with type 'none' won't depend on this target.
        'link_dependency': 1,
      },  
      'sources': [ 'mymalloc.c' ],
    },
  ],
}