summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/sourceless-module/test.gyp
blob: cbbe63df02df38da78e2812c496e3577f8fa90ba (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
93
94
95
96
# Copyright (c) 2012 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': 'empty_bundle',
      'type': 'loadable_module',
      'mac_bundle': 1,
    },
    {
      'target_name': 'resource_bundle',
      'type': 'loadable_module',
      'mac_bundle': 1,
      'actions': [
        {
          'action_name': 'Add Resource',
          'inputs': [],
          'outputs': [
            '<(INTERMEDIATE_DIR)/app_manifest/foo.manifest',
          ],
          'action': [
            'touch', '<(INTERMEDIATE_DIR)/app_manifest/foo.manifest',
          ],
          'process_outputs_as_mac_bundle_resources': 1,
        },
      ],
    },
    {
      'target_name': 'dependent_on_resource_bundle',
      'type': 'executable',
      'sources': [ 'empty.c' ],
      'dependencies': [
        'resource_bundle',
      ],
    },

    {
      'target_name': 'alib',
      'type': 'static_library',
      'sources': [ 'fun.c' ]
    },
    { # No sources, but depends on a static_library so must be linked.
      'target_name': 'resource_framework',
      'type': 'shared_library',
      'mac_bundle': 1,
      'dependencies': [
        'alib',
      ],
      'actions': [
        {
          'action_name': 'Add Resource',
          'inputs': [],
          'outputs': [
            '<(INTERMEDIATE_DIR)/app_manifest/foo.manifest',
          ],
          'action': [
            'touch', '<(INTERMEDIATE_DIR)/app_manifest/foo.manifest',
          ],
          'process_outputs_as_mac_bundle_resources': 1,
        },
      ],
    },
    {
      'target_name': 'dependent_on_resource_framework',
      'type': 'executable',
      'sources': [ 'empty.c' ],
      'dependencies': [
        'resource_framework',
      ],
    },

    { # No actions, but still have resources.
      'target_name': 'mac_resource_bundle_no_actions',
      'product_extension': 'bundle',
      'type': 'executable',
      'mac_bundle': 1,
      'mac_bundle_resources': [
        'empty.txt',
      ],
    },
    {
      'target_name': 'bundle_dependent_on_resource_bundle_no_actions',
      'type': 'executable',
      'mac_bundle': 1,
      'sources': [ 'empty.c' ],
      'dependencies': [
        'mac_resource_bundle_no_actions',
      ],
      'mac_bundle_resources': [
        '<(PRODUCT_DIR)/mac_resource_bundle_no_actions.bundle',
      ],
    },
  ],
}