OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'iphone_sim_path': '$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Deve
loper/Library/PrivateFrameworks', |
| 8 'other_frameworks_path': '$(DEVELOPER_DIR)/../OtherFrameworks' |
| 9 }, |
| 10 'targets': [ |
| 11 { |
| 12 'target_name': 'iossim', |
| 13 'type': 'executable', |
| 14 'dependencies': [ |
| 15 '<(DEPTH)/testing/iossim/third_party/class-dump/class-dump.gyp:class-dum
p', |
| 16 ], |
| 17 'include_dirs': [ |
| 18 '<(INTERMEDIATE_DIR)/iossim', |
| 19 ], |
| 20 'sources': [ |
| 21 'iossim.mm', |
| 22 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', |
| 23 ], |
| 24 'libraries': [ |
| 25 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 26 '<(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework', |
| 27 ], |
| 28 'mac_framework_dirs': [ |
| 29 '<(iphone_sim_path)', |
| 30 ], |
| 31 'xcode_settings': { |
| 32 'LD_RUNPATH_SEARCH_PATHS': [ |
| 33 '<(iphone_sim_path)', |
| 34 '<(other_frameworks_path)', |
| 35 ] |
| 36 }, |
| 37 'actions': [ |
| 38 { |
| 39 'action_name': 'generate_iphone_sim_header', |
| 40 'inputs': [ |
| 41 '<(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework/Versions/C
urrent/iPhoneSimulatorRemoteClient', |
| 42 '$(BUILD_DIR)/$(CONFIGURATION)/class-dump', |
| 43 ], |
| 44 'outputs': [ |
| 45 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h' |
| 46 ], |
| 47 'action': [ |
| 48 # Actions don't provide a way to redirect stdout, so a custom |
| 49 # script is invoked that will execute the first argument and write |
| 50 # the output to the file specified as the second argument. |
| 51 '<(DEPTH)/testing/iossim/RedirectStdout.sh', |
| 52 '$(BUILD_DIR)/$(CONFIGURATION)/class-dump -CiPhoneSimulator <(iphone
_sim_path)/iPhoneSimulatorRemoteClient.framework', |
| 53 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', |
| 54 ], |
| 55 'message': 'Generating header', |
| 56 }, |
| 57 ], |
| 58 }, |
| 59 ], |
| 60 } |
OLD | NEW |