summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/rebuild/test.gyp
blob: 15b4e4ef2f5b955199b4c2e3fd1c00deea724d3a (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
# Copyright (c) 2011 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': 'test_app',
      'product_name': 'Test App',
      'type': 'executable',
      'mac_bundle': 1,
      'sources': [
        'main.c',
      ],
      'xcode_settings': {
        'INFOPLIST_FILE': 'TestApp-Info.plist',
      },
    },
    {
      'target_name': 'test_app_postbuilds',
      'product_name': 'Test App 2',
      'type': 'executable',
      'mac_bundle': 1,
      'sources': [
        'main.c',
      ],
      'xcode_settings': {
        'INFOPLIST_FILE': 'TestApp-Info.plist',
      },
      'postbuilds': [
        {
          'postbuild_name': 'Postbuild that touches the app binary',
          'action': [
            './delay-touch.sh', '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}',
          ],
        },
      ],
    },
    {
      'target_name': 'test_framework_postbuilds',
      'product_name': 'Test Framework',
      'type': 'shared_library',
      'mac_bundle': 1,
      'sources': [
        'empty.c',
      ],
      'postbuilds': [
        {
          'postbuild_name': 'Postbuild that touches the framework binary',
          'action': [
            './delay-touch.sh', '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}',
          ],
        },
      ],
    },
  ],
}