summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/archs/test-dependencies.gyp
blob: 0431f5f2f4fab2ba5c7bd070eccf5f014579d163 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Copyright (c) 2014 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.

{
  'target_defaults': {
    'xcode_settings': {
      'ARCHS': ['i386', 'x86_64'],
    },
  },
  'targets': [
    {
      'target_name': 'target_a',
      'type': 'static_library',
      'sources': [
        'file_a.cc',
        'file_a.h',
      ],
    },
    {
      'target_name': 'target_b',
      'type': 'static_library',
      'sources': [
        'file_b.cc',
        'file_b.h',
      ],
    },
    {
      'target_name': 'target_c_standalone_helper',
      'type': 'loadable_module',
      'hard_dependency': 1,
      'dependencies': [
        'target_a',
        'target_b',
      ],
      'sources': [
        'file_c.cc',
      ],
    },
    {
      'target_name': 'target_c_standalone',
      'type': 'none',
      'dependencies': [
        'target_c_standalone_helper',
      ],
      'actions': [
        {
          'action_name': 'Package C',
          'inputs': [],
          'outputs': [
            '<(PRODUCT_DIR)/libc_standalone.a',
          ],
          'action': [
            'touch',
            '<@(_outputs)',
          ],
        },
      ],
    },
    {
      'target_name': 'target_d_standalone_helper',
      'type': 'shared_library',
      'dependencies': [
        'target_a',
        'target_b',
      ],
      'sources': [
        'file_d.cc',
      ],
    },
    {
      'target_name': 'target_d_standalone',
      'type': 'none',
      'dependencies': [
        'target_d_standalone_helper',
      ],
      'actions': [
        {
          'action_name': 'Package D',
          'inputs': [],
          'outputs': [
            '<(PRODUCT_DIR)/libd_standalone.a',
          ],
          'action': [
            'touch',
            '<@(_outputs)',
          ],
        },
      ],
    }
  ],
}