OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['OS!="ios" or "<(GENERATOR)"=="ninja"', { | 7 ['OS!="ios" or "<(GENERATOR)"=="ninja"', { |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'iossim', | 10 'target_name': 'iossim', |
11 'toolsets': ['host'], | 11 'toolsets': ['host'], |
12 'type': 'executable', | 12 'type': 'executable', |
13 'variables': { | 13 'variables': { |
14 'developer_dir': '<!(xcode-select -print-path)', | 14 'developer_dir': '<!(xcode-select -print-path)', |
15 'iphone_sim_path': '<(developer_dir)/Platforms/iPhoneSimulator.platf
orm/Developer/Library/PrivateFrameworks', | 15 # TODO(lliabraa): Once all builders are on Xcode 6 this variable can |
16 'other_frameworks_path': '<(developer_dir)/../OtherFrameworks' | 16 # be removed and the actions gated by this variable can be run by |
| 17 # default (crbug.com/385030). |
| 18 'xcode_version': '<!(xcodebuild -version | grep Xcode | awk \'{print
$2}\')', |
17 }, | 19 }, |
| 20 'conditions': [ |
| 21 ['xcode_version=="6.0"', { |
| 22 'variables': { |
| 23 'iphone_sim_path': '<(developer_dir)/../SharedFrameworks', |
| 24 }, |
| 25 'defines': [ |
| 26 'IOSSIM_USE_XCODE_6', |
| 27 ], |
| 28 'actions': [ |
| 29 { |
| 30 'action_name': 'generate_dvt_foundation_header', |
| 31 'inputs': [ |
| 32 '<(iphone_sim_path)/DVTFoundation.framework/Versions/Current
/DVTFoundation', |
| 33 '<(PRODUCT_DIR)/class-dump', |
| 34 ], |
| 35 'outputs': [ |
| 36 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h' |
| 37 ], |
| 38 'action': [ |
| 39 # Actions don't provide a way to redirect stdout, so a custo
m |
| 40 # script is invoked that will execute the first argument and |
| 41 # write the output to the file specified as the second argum
ent. |
| 42 # -I sorts classes, categories, and protocols by inheritance
. |
| 43 # -C <regex> only displays classes matching regular expressi
on. |
| 44 './redirect-stdout.sh', |
| 45 '<(PRODUCT_DIR)/class-dump -CDVTStackBacktrace|DVTInvalidati
on|DVTMixIn <(iphone_sim_path)/DVTFoundation.framework', |
| 46 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h', |
| 47 ], |
| 48 'message': 'Generating DVTFoundation.h', |
| 49 }, |
| 50 { |
| 51 'action_name': 'generate_dvt_core_simulator', |
| 52 'inputs': [ |
| 53 '<(developer_dir)/Library/PrivateFrameworks/CoreSimulator.fr
amework/Versions/Current/CoreSimulator', |
| 54 '<(PRODUCT_DIR)/class-dump', |
| 55 ], |
| 56 'outputs': [ |
| 57 '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h' |
| 58 ], |
| 59 'action': [ |
| 60 # Actions don't provide a way to redirect stdout, so a custo
m |
| 61 # script is invoked that will execute the first argument and |
| 62 # write the output to the file specified as the second argum
ent. |
| 63 # -I sorts classes, categories, and protocols by inheritance
. |
| 64 # -C <regex> only displays classes matching regular expressi
on. |
| 65 './redirect-stdout.sh', |
| 66 '<(PRODUCT_DIR)/class-dump -CSim <(developer_dir)/Library/Pr
ivateFrameworks/CoreSimulator.framework', |
| 67 '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h', |
| 68 ], |
| 69 'message': 'Generating CoreSimulator.h', |
| 70 }, |
| 71 ], # actions |
| 72 }, { # else: xcode_version!="6" |
| 73 'variables': { |
| 74 'iphone_sim_path': '<(developer_dir)/Platforms/iPhoneSimulator.p
latform/Developer/Library/PrivateFrameworks', |
| 75 }, |
| 76 }], # xcode_version |
| 77 ], # conditions |
18 'dependencies': [ | 78 'dependencies': [ |
19 'third_party/class-dump/class-dump.gyp:class-dump#host', | 79 'third_party/class-dump/class-dump.gyp:class-dump#host', |
20 ], | 80 ], |
21 'include_dirs': [ | 81 'include_dirs': [ |
22 '<(INTERMEDIATE_DIR)/iossim', | 82 '<(INTERMEDIATE_DIR)/iossim', |
23 ], | 83 ], |
24 'sources': [ | 84 'sources': [ |
25 'iossim.mm', | 85 'iossim.mm', |
26 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', | 86 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', |
27 ], | 87 ], |
(...skipping 13 matching lines...) Expand all Loading... |
41 'action': [ | 101 'action': [ |
42 # Actions don't provide a way to redirect stdout, so a custom | 102 # Actions don't provide a way to redirect stdout, so a custom |
43 # script is invoked that will execute the first argument and | 103 # script is invoked that will execute the first argument and |
44 # write the output to the file specified as the second argument. | 104 # write the output to the file specified as the second argument. |
45 # -I sorts classes, categories, and protocols by inheritance. | 105 # -I sorts classes, categories, and protocols by inheritance. |
46 # -C <regex> only displays classes matching regular expression. | 106 # -C <regex> only displays classes matching regular expression. |
47 './redirect-stdout.sh', | 107 './redirect-stdout.sh', |
48 '<(PRODUCT_DIR)/class-dump -I -CiPhoneSimulator <(iphone_sim_pat
h)/DVTiPhoneSimulatorRemoteClient.framework', | 108 '<(PRODUCT_DIR)/class-dump -I -CiPhoneSimulator <(iphone_sim_pat
h)/DVTiPhoneSimulatorRemoteClient.framework', |
49 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h', | 109 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h', |
50 ], | 110 ], |
51 'message': 'Generating header', | 111 'message': 'Generating DVTiPhoneSimulatorRemoteClient.h', |
52 }, | 112 }, |
53 ], | 113 ], # actions |
54 'xcode_settings': { | 114 'xcode_settings': { |
55 'ARCHS': ['x86_64'], | 115 'ARCHS': ['x86_64'], |
56 'WARNING_CFLAGS': [ | 116 'WARNING_CFLAGS': [ |
57 '-Wno-objc-property-no-attribute', | 117 '-Wno-objc-property-no-attribute', |
58 ], | 118 ], |
59 }, | 119 }, |
60 }, | 120 }, |
61 ], | 121 ], |
62 }, { # else, OS=="ios" and "<(GENERATOR)"!="ninja" | 122 }, { # else, OS=="ios" and "<(GENERATOR)"!="ninja" |
63 'variables': { | 123 'variables': { |
(...skipping 22 matching lines...) Expand all Loading... |
86 'iossim', | 146 'iossim', |
87 ], | 147 ], |
88 'message': 'Generating the iossim executable', | 148 'message': 'Generating the iossim executable', |
89 }, | 149 }, |
90 ], | 150 ], |
91 }, | 151 }, |
92 ], | 152 ], |
93 }], | 153 }], |
94 ], | 154 ], |
95 } | 155 } |
OLD | NEW |