summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/ios/copies-with-xcode-envvars/copies-with-xcode-envvars.gyp
blob: 217dbb047980fbfac77c6d238abdb3a884e04b95 (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
97
# Copyright (c) 2016 Mark Callow. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# For testing use of the UI settings & environment variables
# available in Xcode's PBXCopyFilesBuildPhase.
{
  'targets': [
  {
    'target_name': 'copies-with-xcode-envvars',
    'type': 'executable',
    'mac_bundle': 1,
    'xcode_settings': {
      'SDKROOT': 'iphoneos',
      'TARGETED_DEVICE_FAMILY': '1,2',
      'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
      'CODE_SIGNING_REQUIRED': 'NO',
      'INFOPLIST_FILE': 'Info.plist',
      # This is where the test framework looks for results. Without
      # this line the result will be in build/Default-iphoneos.
      'CONFIGURATION_BUILD_DIR':'build/Default',
    },
    'sources': [ 'empty.c' ],
    'conditions': [
      ['OS == "ios" or OS == "mac"', {
        'copies': [{
          'destination': '$(BUILT_PRODUCTS_DIR)',
          'files': [
            'file0',
          ],
        }, {
          'destination': '$(BUILT_PRODUCTS_DIR)/$(WRAPPER_NAME)',
          'files': [
            'file1',
          ],
        }, {
          'destination': '<(PRODUCT_DIR)/$(EXECUTABLE_FOLDER_PATH)',
          'files': [
            'file2',
          ],
        }, {
          'destination': '<(PRODUCT_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)',
          'files': [
            'file3',
          ],
        }, {
          'destination': '<(PRODUCT_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/testimages',
          'files': [
            'file4',
          ],
        }, {
          'destination': '$(BUILT_PRODUCTS_DIR)/$(JAVA_FOLDER_PATH)',
          'files': [
            'file5',
          ],
        }, {
          'destination': '<(PRODUCT_DIR)/$(FRAMEWORKS_FOLDER_PATH)',
            'files': [
              'file6',
          ],
        }, {
          # NOTE: This is not an Xcode macro name but
          # xcodeproj_file.py recognizes it and sends
          # the output to the same place as
          # $(FRAMEWORKS_FOLDER_PATH). xcode_emulation.py
          # sets its value to an absolute path.
          'destination': '$(BUILT_FRAMEWORKS_DIR)',
          'files': [
            'file7',
          ],
        }, {
          'destination': '<(PRODUCT_DIR)/$(SHARED_FRAMEWORKS_FOLDER_PATH)',
          'files': [
            'file8',
          ],
        }, {
          'destination': '<(PRODUCT_DIR)/$(SHARED_SUPPORT_FOLDER_PATH)',
          'files': [
            'file9',
          ],
        }, {
          'destination': '<(PRODUCT_DIR)/$(PLUGINS_FOLDER_PATH)',
          'files': [
            'file10',
          ],
        }, {
          'destination': '<(PRODUCT_DIR)/$(XPCSERVICES_FOLDER_PATH)',
          'files': [
            'file11',
          ],
        }], # copies
      }], # OS == "ios" or OS == "mac"
    ], # conditions
  }], # targets
}

# vim:ai:ts=4:sts=4:sw=2:expandtab:textwidth=70