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
98
99
100
101
102
103
104
105
106
107
108
|
# 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': 'dep_framework',
'product_name': 'Dependency Bundle',
'type': 'shared_library',
'mac_bundle': 1,
'sources': [ 'empty.c', ],
},
{
'target_name': 'test_framework',
'product_name': 'Test Framework',
'type': 'shared_library',
'mac_bundle': 1,
'dependencies': [ 'dep_framework', ],
'sources': [
'TestFramework/ObjCVector.h',
'TestFramework/ObjCVectorInternal.h',
'TestFramework/ObjCVector.mm',
],
'mac_bundle_resources': [
'TestFramework/English.lproj/InfoPlist.strings',
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
],
},
'xcode_settings': {
'INFOPLIST_FILE': 'TestFramework/Info.plist',
'GCC_DYNAMIC_NO_PIC': 'NO',
},
'copies': [
# Test copying to a file that has envvars in its dest path.
# Needs to be in a mac_bundle target, else CONTENTS_FOLDER_PATH isn't
# set.
{
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
'files': [
'empty.c',
],
},
],
},
{
'target_name': 'copy_target',
'type': 'none',
'dependencies': [ 'test_framework', 'dep_framework', ],
'copies': [
# Test copying directories with spaces in src and dest paths.
{
'destination': '<(PRODUCT_DIR)/Test Framework.framework/foo',
'files': [
'<(PRODUCT_DIR)/Dependency Bundle.framework',
],
},
],
'actions': [
{
'action_name': 'aektschn',
'inputs': [],
'outputs': ['<(PRODUCT_DIR)/touched_file'],
'action': ['touch', '${BUILT_PRODUCTS_DIR}/action_file'],
},
],
},
{
'target_name': 'copy_embedded',
'type': 'none',
'dependencies': [ 'test_framework' ],
'copies': [
# Test copying framework to FRAMEWORK directory.
{
'destination': '$(BUILT_FRAMEWORKS_DIR)/Embedded',
'files': [
'<(PRODUCT_DIR)/Test Framework.framework',
],
},
],
},
{
'target_name': 'copy_target_code_sign',
'type': 'none',
'dependencies': [ 'test_framework', 'dep_framework', ],
'copies': [
# Test copying directories with spaces in src and dest paths.
{
'destination': '<(PRODUCT_DIR)/Test Framework.framework/foo',
'files': [
'<(PRODUCT_DIR)/Dependency Bundle.framework',
],
'xcode_code_sign': 1,
},
],
'actions': [
{
'action_name': 'aektschn',
'inputs': [],
'outputs': ['<(PRODUCT_DIR)/touched_file'],
'action': ['touch', '${BUILT_PRODUCTS_DIR}/action_file'],
},
],
},
],
}
|