summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/xctest/test.gyp
blob: ac25656b3561d3f3206bbd5494425bc7fb5837c1 (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
# Copyright (c) 2013 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': 'classes',
      'type': 'static_library',
      'sources': [
        'MyClass.h',
        'MyClass.m',
      ],
      'link_settings': {
        'libraries': [
          '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
        ],
      },
    },
    {
      'target_name': 'tests',
      'type': 'loadable_module',
      'mac_xctest_bundle': 1,
      'sources': [
        'TestCase.m',
      ],
      'dependencies': [
        'classes',
      ],
      'mac_bundle_resources': [
        'resource.txt',
      ],
      'xcode_settings': {
        'WRAPPER_EXTENSION': 'xctest',
        'FRAMEWORK_SEARCH_PATHS': [
          '$(inherited)',
          '$(DEVELOPER_FRAMEWORKS_DIR)',
        ],
        'OTHER_LDFLAGS': [
          '$(inherited)',
          '-ObjC',
        ],
      },
    },
  ],
}