| 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 'mac_deployment_target': '10.9', | |
| 8 'mac_sdk_min': '10.9', | |
| 9 'class_dump_bin': '<(PRODUCT_DIR)/class-dump', | |
| 10 'class_dump_py': '<(DEPTH)/third_party/class-dump/class-dump.py', | |
| 11 }, | |
| 12 'targets': [ | |
| 13 { | |
| 14 # GN version //testing/iossim(//build/toolchain/mac:clang_x64) | |
| 15 'target_name': 'iossim', | |
| 16 'toolsets': ['host'], | |
| 17 'type': 'executable', | |
| 18 'variables': { | |
| 19 'developer_dir': '<!(xcode-select -print-path)', | |
| 20 'iphone_sim_path': '<(developer_dir)/../SharedFrameworks', | |
| 21 }, | |
| 22 'dependencies': [ | |
| 23 '<(DEPTH)/third_party/class-dump/class-dump.gyp:class-dump#host', | |
| 24 ], | |
| 25 'include_dirs': [ | |
| 26 '<(INTERMEDIATE_DIR)/iossim', | |
| 27 ], | |
| 28 'sources': [ | |
| 29 'iossim.mm', | |
| 30 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', | |
| 31 ], | |
| 32 'libraries': [ | |
| 33 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
| 34 ], | |
| 35 'actions': [ | |
| 36 { | |
| 37 'action_name': 'generate_dvt_core_simulator', | |
| 38 'inputs': [ | |
| 39 '<(class_dump_bin)', | |
| 40 '<(class_dump_py)', | |
| 41 '<(developer_dir)/Library/PrivateFrameworks/CoreSimulator.framework/
Versions/Current/CoreSimulator', | |
| 42 ], | |
| 43 'outputs': [ | |
| 44 '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h' | |
| 45 ], | |
| 46 'action': [ | |
| 47 'python', | |
| 48 '<(class_dump_py)', | |
| 49 '-t', '<(class_dump_bin)', | |
| 50 '-o', '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h', | |
| 51 '--', | |
| 52 '-CSim', | |
| 53 '<(developer_dir)/Library/PrivateFrameworks/CoreSimulator.framework'
, | |
| 54 ], | |
| 55 'message': 'Generating CoreSimulator.h', | |
| 56 }, | |
| 57 { | |
| 58 'action_name': 'generate_dvt_foundation_header', | |
| 59 'inputs': [ | |
| 60 '<(class_dump_bin)', | |
| 61 '<(class_dump_py)', | |
| 62 '<(iphone_sim_path)/DVTFoundation.framework/Versions/Current/DVTFoun
dation', | |
| 63 ], | |
| 64 'outputs': [ | |
| 65 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h' | |
| 66 ], | |
| 67 'action': [ | |
| 68 'python', | |
| 69 '<(class_dump_py)', | |
| 70 '-t', '<(class_dump_bin)', | |
| 71 '-o', '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h', | |
| 72 '--', | |
| 73 '-CDVTStackBacktrace|DVTInvalidation|DVTMixIn', | |
| 74 '<(iphone_sim_path)/DVTFoundation.framework', | |
| 75 ], | |
| 76 'message': 'Generating DVTFoundation.h', | |
| 77 }, | |
| 78 { | |
| 79 'action_name': 'generate_dvt_iphone_sim_header', | |
| 80 'inputs': [ | |
| 81 '<(class_dump_bin)', | |
| 82 '<(class_dump_py)', | |
| 83 '<(iphone_sim_path)/DVTiPhoneSimulatorRemoteClient.framework/Version
s/Current/DVTiPhoneSimulatorRemoteClient', | |
| 84 ], | |
| 85 'outputs': [ | |
| 86 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h' | |
| 87 ], | |
| 88 'action': [ | |
| 89 'python', | |
| 90 '<(class_dump_py)', | |
| 91 '-t', '<(class_dump_bin)', | |
| 92 '-o', '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h', | |
| 93 '--', | |
| 94 '-I', | |
| 95 '-CiPhoneSimulator', | |
| 96 '<(iphone_sim_path)/DVTiPhoneSimulatorRemoteClient.framework', | |
| 97 ], | |
| 98 'message': 'Generating DVTiPhoneSimulatorRemoteClient.h', | |
| 99 }, | |
| 100 ], # actions | |
| 101 'xcode_settings': { | |
| 102 'ARCHS': ['x86_64'], | |
| 103 }, | |
| 104 }, | |
| 105 ], | |
| 106 } | |
| OLD | NEW |