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 'conditions': [ | 6 'conditions': [ |
7 ['OS!="ios" or "<(GENERATOR)"=="ninja"', { | 7 ['OS!="ios" or "<(GENERATOR)"=="ninja"', { |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'iossim', | 10 'target_name': 'iossim', |
(...skipping 12 matching lines...) Expand all Loading... |
23 ], | 23 ], |
24 'sources': [ | 24 'sources': [ |
25 'iossim.mm', | 25 'iossim.mm', |
26 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', | 26 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', |
27 ], | 27 ], |
28 'libraries': [ | 28 'libraries': [ |
29 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 29 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
30 ], | 30 ], |
31 'actions': [ | 31 'actions': [ |
32 { | 32 { |
33 'action_name': 'generate_iphone_sim_header', | 33 'action_name': 'generate_dvt_iphone_sim_header', |
34 'inputs': [ | 34 'inputs': [ |
35 '<(iphone_sim_path)/iPhoneSimulatorRemoteClient.framework/Versio
ns/Current/iPhoneSimulatorRemoteClient', | 35 '<(iphone_sim_path)/DVTiPhoneSimulatorRemoteClient.framework/Ver
sions/Current/DVTiPhoneSimulatorRemoteClient', |
36 '<(PRODUCT_DIR)/class-dump', | 36 '<(PRODUCT_DIR)/class-dump', |
37 ], | 37 ], |
38 'outputs': [ | 38 'outputs': [ |
39 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h' | 39 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h' |
40 ], | 40 ], |
41 'action': [ | 41 'action': [ |
42 # Actions don't provide a way to redirect stdout, so a custom | 42 # Actions don't provide a way to redirect stdout, so a custom |
43 # script is invoked that will execute the first argument and wri
te | 43 # script is invoked that will execute the first argument and |
44 # the output to the file specified as the second argument. | 44 # write the output to the file specified as the second argument. |
| 45 # -I sorts classes, categories, and protocols by inheritance. |
| 46 # -C <regex> only displays classes matching regular expression. |
45 './redirect-stdout.sh', | 47 './redirect-stdout.sh', |
46 '<(PRODUCT_DIR)/class-dump -CiPhoneSimulator <(iphone_sim_path)/
iPhoneSimulatorRemoteClient.framework', | 48 '<(PRODUCT_DIR)/class-dump -I -CiPhoneSimulator <(iphone_sim_pat
h)/DVTiPhoneSimulatorRemoteClient.framework', |
47 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', | 49 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h', |
48 ], | 50 ], |
49 'message': 'Generating header', | 51 'message': 'Generating header', |
50 }, | 52 }, |
51 ], | 53 ], |
52 'xcode_settings': { | 54 'xcode_settings': { |
| 55 'ARCHS': ['x86_64'], |
53 'WARNING_CFLAGS': [ | 56 'WARNING_CFLAGS': [ |
54 '-Wno-objc-property-no-attribute', | 57 '-Wno-objc-property-no-attribute', |
55 ], | 58 ], |
56 }, | 59 }, |
57 }, | 60 }, |
58 ], | 61 ], |
59 }, { # else, OS=="ios" and "<(GENERATOR)"!="ninja" | 62 }, { # else, OS=="ios" and "<(GENERATOR)"!="ninja" |
60 'variables': { | 63 'variables': { |
61 'ninja_output_dir': 'ninja-iossim', | 64 'ninja_output_dir': 'ninja-iossim', |
62 'ninja_product_dir': | 65 'ninja_product_dir': |
(...skipping 20 matching lines...) Expand all Loading... |
83 'iossim', | 86 'iossim', |
84 ], | 87 ], |
85 'message': 'Generating the iossim executable', | 88 'message': 'Generating the iossim executable', |
86 }, | 89 }, |
87 ], | 90 ], |
88 }, | 91 }, |
89 ], | 92 ], |
90 }], | 93 }], |
91 ], | 94 ], |
92 } | 95 } |
OLD | NEW |