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