Index: testing/iossim/iossim.gyp |
diff --git a/testing/iossim/iossim.gyp b/testing/iossim/iossim.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2c97db08d16ca26a9cc516113bd7e7d1456c66d6 |
--- /dev/null |
+++ b/testing/iossim/iossim.gyp |
@@ -0,0 +1,53 @@ |
+{ |
stuartmorgan
2012/07/20 07:45:44
Add a license block.
lliabraa
2012/07/26 19:14:11
Done.
|
+ 'variables': { |
+ 'iphone_sim_path': '$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks', |
+ 'other_frameworks_path': '$(DEVELOPER_DIR)/../OtherFrameworks' |
+ }, |
+ 'targets': [ |
+ { |
+ 'target_name': 'iossim', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ '<(DEPTH)/testing/iossim/third_party/class-dump/class-dump.gyp:class-dump', |
+ ], |
+ 'include_dirs': [ |
+ '<(INTERMEDIATE_DIR)/iossim', |
+ ], |
+ 'sources': [ |
+ 'iossim.mm', |
+ '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', |
+ ], |
+ 'libraries': [ |
+ '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
+ '<(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework', |
+ ], |
+ 'mac_framework_dirs': [ |
+ '<(iphone_sim_path)', |
+ ], |
+ 'xcode_settings': { |
+ 'LD_RUNPATH_SEARCH_PATHS': '<(iphone_sim_path) <(other_frameworks_path)', |
+ }, |
+ 'actions': [ |
+ { |
+ 'action_name': 'generate_iphone_sim_header', |
+ 'inputs': [ |
+ '<(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework/Versions/Current/iPhoneSimulatorRemoteClient', |
+ '$(BUILD_DIR)/$(CONFIGURATION)/class-dump', |
+ ], |
+ 'outputs': [ |
+ '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h' |
+ ], |
+ 'action': [ |
+ # Actions don't provide a way to redirect stdout, so a custom |
+ # script is invoked that will execute the first argument and write |
+ # the output to the file specified as the second argument. |
+ '<(DEPTH)/testing/iossim/RedirectStdout.sh', |
+ '$(BUILD_DIR)/$(CONFIGURATION)/class-dump -CiPhoneSimulator <(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework', |
+ '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', |
+ ], |
+ 'message': 'Generating header', |
+ }, |
+ ], |
+ }, |
+ ], |
+} |