| 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 'variables': { | 6 'variables': { |
| 7 'mac_deployment_target': '10.9', | 7 'mac_deployment_target': '10.9', |
| 8 'mac_sdk_min': '10.9', | 8 'mac_sdk_min': '10.9', |
| 9 }, | 9 }, |
| 10 'conditions': [ | 10 'conditions': [ |
| 11 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', { | 11 ['OS!="ios" or "<(GENERATOR)"!="xcode" or "<(GENERATOR_FLAVOR)"=="ninja"', { |
| 12 'targets': [ | 12 'targets': [ |
| 13 { | 13 { |
| 14 'target_name': 'iossim', | 14 'target_name': 'iossim', |
| 15 'toolsets': ['host'], | 15 'toolsets': ['host'], |
| 16 'type': 'executable', | 16 'type': 'executable', |
| 17 'variables': { | 17 'variables': { |
| 18 'developer_dir': '<!(xcode-select -print-path)', | 18 'developer_dir': '<!(xcode-select -print-path)', |
| 19 # TODO(lliabraa): Once all builders are on Xcode 6 this variable can | 19 'iphone_sim_path': '<(developer_dir)/../SharedFrameworks', |
| 20 # be removed and the actions gated by this variable can be run by | |
| 21 # default (crbug.com/385030). | |
| 22 'xcode_version': '<!(xcodebuild -version | grep Xcode | awk \'{print
$2}\')', | |
| 23 }, | 20 }, |
| 24 'conditions': [ | |
| 25 ['xcode_version>="6.0"', { | |
| 26 'variables': { | |
| 27 'iphone_sim_path': '<(developer_dir)/../SharedFrameworks', | |
| 28 }, | |
| 29 'defines': [ | |
| 30 'IOSSIM_USE_XCODE_6', | |
| 31 ], | |
| 32 'actions': [ | |
| 33 { | |
| 34 'action_name': 'generate_dvt_foundation_header', | |
| 35 'inputs': [ | |
| 36 '<(iphone_sim_path)/DVTFoundation.framework/Versions/Current
/DVTFoundation', | |
| 37 '<(PRODUCT_DIR)/class-dump', | |
| 38 ], | |
| 39 'outputs': [ | |
| 40 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h' | |
| 41 ], | |
| 42 'action': [ | |
| 43 # Actions don't provide a way to redirect stdout, so a custo
m | |
| 44 # script is invoked that will execute the first argument and | |
| 45 # write the output to the file specified as the second argum
ent. | |
| 46 # -I sorts classes, categories, and protocols by inheritance
. | |
| 47 # -C <regex> only displays classes matching regular expressi
on. | |
| 48 './redirect-stdout.sh', | |
| 49 '<(PRODUCT_DIR)/class-dump -CDVTStackBacktrace|DVTInvalidati
on|DVTMixIn <(iphone_sim_path)/DVTFoundation.framework', | |
| 50 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h', | |
| 51 ], | |
| 52 'message': 'Generating DVTFoundation.h', | |
| 53 }, | |
| 54 { | |
| 55 'action_name': 'generate_dvt_core_simulator', | |
| 56 'inputs': [ | |
| 57 '<(developer_dir)/Library/PrivateFrameworks/CoreSimulator.fr
amework/Versions/Current/CoreSimulator', | |
| 58 '<(PRODUCT_DIR)/class-dump', | |
| 59 ], | |
| 60 'outputs': [ | |
| 61 '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h' | |
| 62 ], | |
| 63 'action': [ | |
| 64 # Actions don't provide a way to redirect stdout, so a custo
m | |
| 65 # script is invoked that will execute the first argument and | |
| 66 # write the output to the file specified as the second argum
ent. | |
| 67 # -I sorts classes, categories, and protocols by inheritance
. | |
| 68 # -C <regex> only displays classes matching regular expressi
on. | |
| 69 './redirect-stdout.sh', | |
| 70 '<(PRODUCT_DIR)/class-dump -CSim <(developer_dir)/Library/Pr
ivateFrameworks/CoreSimulator.framework', | |
| 71 '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h', | |
| 72 ], | |
| 73 'message': 'Generating CoreSimulator.h', | |
| 74 }, | |
| 75 ], # actions | |
| 76 }, { # else: xcode_version<"6.0" | |
| 77 'variables': { | |
| 78 'iphone_sim_path': '<(developer_dir)/Platforms/iPhoneSimulator.p
latform/Developer/Library/PrivateFrameworks', | |
| 79 }, | |
| 80 }], # xcode_version | |
| 81 ], # conditions | |
| 82 'dependencies': [ | 21 'dependencies': [ |
| 83 '<(DEPTH)/third_party/class-dump/class-dump.gyp:class-dump#host', | 22 '<(DEPTH)/third_party/class-dump/class-dump.gyp:class-dump#host', |
| 84 ], | 23 ], |
| 85 'include_dirs': [ | 24 'include_dirs': [ |
| 86 '<(INTERMEDIATE_DIR)/iossim', | 25 '<(INTERMEDIATE_DIR)/iossim', |
| 87 ], | 26 ], |
| 88 'sources': [ | 27 'sources': [ |
| 89 'iossim.mm', | 28 'iossim.mm', |
| 90 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', | 29 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', |
| 91 ], | 30 ], |
| 92 'libraries': [ | 31 'libraries': [ |
| 93 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 32 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 94 ], | 33 ], |
| 95 'actions': [ | 34 'actions': [ |
| 96 { | 35 { |
| 36 'action_name': 'generate_dvt_foundation_header', |
| 37 'inputs': [ |
| 38 '<(iphone_sim_path)/DVTFoundation.framework/Versions/Current/DVT
Foundation', |
| 39 '<(PRODUCT_DIR)/class-dump', |
| 40 ], |
| 41 'outputs': [ |
| 42 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h' |
| 43 ], |
| 44 'action': [ |
| 45 # Actions don't provide a way to redirect stdout, so a custom |
| 46 # script is invoked that will execute the first argument and |
| 47 # write the output to the file specified as the second argument. |
| 48 # -I sorts classes, categories, and protocols by inheritance. |
| 49 # -C <regex> only displays classes matching regular expression. |
| 50 './redirect-stdout.sh', |
| 51 '<(PRODUCT_DIR)/class-dump -CDVTStackBacktrace|DVTInvalidation|D
VTMixIn <(iphone_sim_path)/DVTFoundation.framework', |
| 52 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h', |
| 53 ], |
| 54 'message': 'Generating DVTFoundation.h', |
| 55 }, |
| 56 { |
| 57 'action_name': 'generate_dvt_core_simulator', |
| 58 'inputs': [ |
| 59 '<(developer_dir)/Library/PrivateFrameworks/CoreSimulator.framew
ork/Versions/Current/CoreSimulator', |
| 60 '<(PRODUCT_DIR)/class-dump', |
| 61 ], |
| 62 'outputs': [ |
| 63 '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h' |
| 64 ], |
| 65 'action': [ |
| 66 # Actions don't provide a way to redirect stdout, so a custom |
| 67 # script is invoked that will execute the first argument and |
| 68 # write the output to the file specified as the second argument. |
| 69 # -I sorts classes, categories, and protocols by inheritance. |
| 70 # -C <regex> only displays classes matching regular expression. |
| 71 './redirect-stdout.sh', |
| 72 '<(PRODUCT_DIR)/class-dump -CSim <(developer_dir)/Library/Privat
eFrameworks/CoreSimulator.framework', |
| 73 '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h', |
| 74 ], |
| 75 'message': 'Generating CoreSimulator.h', |
| 76 }, |
| 77 { |
| 97 'action_name': 'generate_dvt_iphone_sim_header', | 78 'action_name': 'generate_dvt_iphone_sim_header', |
| 98 'inputs': [ | 79 'inputs': [ |
| 99 '<(iphone_sim_path)/DVTiPhoneSimulatorRemoteClient.framework/Ver
sions/Current/DVTiPhoneSimulatorRemoteClient', | 80 '<(iphone_sim_path)/DVTiPhoneSimulatorRemoteClient.framework/Ver
sions/Current/DVTiPhoneSimulatorRemoteClient', |
| 100 '<(PRODUCT_DIR)/class-dump', | 81 '<(PRODUCT_DIR)/class-dump', |
| 101 ], | 82 ], |
| 102 'outputs': [ | 83 'outputs': [ |
| 103 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h' | 84 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h' |
| 104 ], | 85 ], |
| 105 'action': [ | 86 'action': [ |
| 106 # Actions don't provide a way to redirect stdout, so a custom | 87 # Actions don't provide a way to redirect stdout, so a custom |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 'iossim', | 129 'iossim', |
| 149 ], | 130 ], |
| 150 'message': 'Generating the iossim executable', | 131 'message': 'Generating the iossim executable', |
| 151 }, | 132 }, |
| 152 ], | 133 ], |
| 153 }, | 134 }, |
| 154 ], | 135 ], |
| 155 }], | 136 }], |
| 156 ], | 137 ], |
| 157 } | 138 } |
| OLD | NEW |