Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: testing/iossim/iossim.gyp

Issue 336773002: Get iossim to compile with Xcode 6. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | testing/iossim/iossim.mm » ('j') | testing/iossim/iossim.mm » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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',
11 'toolsets': ['host'], 11 'toolsets': ['host'],
12 'type': 'executable', 12 'type': 'executable',
13 'variables': { 13 'variables': {
14 'developer_dir': '<!(xcode-select -print-path)', 14 'developer_dir': '<!(xcode-select -print-path)',
15 'iphone_sim_path': '<(developer_dir)/Platforms/iPhoneSimulator.platf orm/Developer/Library/PrivateFrameworks', 15 'xcode_version': '<!(xcodebuild -version | grep Xcode | awk \'{print $2}\')',
16 'other_frameworks_path': '<(developer_dir)/../OtherFrameworks'
17 }, 16 },
17 'conditions': [
18 ['xcode_version=="6.0"', {
19 'variables': {
20 'iphone_sim_path': '<(developer_dir)/../SharedFrameworks',
21 },
22 'defines': [
23 'XCODE_6',
justincohen 2014/06/13 14:08:39 Is this necessary? Would it be more correct to lo
lliabraa 2014/06/13 15:07:30 iossim is compiled for host so it uses the mac SDK
24 ],
25 'actions': [
26 {
27 'action_name': 'generate_dvt_foundation_header',
28 'inputs': [
29 '<(iphone_sim_path)/DVTFoundation.framework/Versions/Current /DVTFoundation',
30 '<(PRODUCT_DIR)/class-dump',
31 ],
32 'outputs': [
33 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h'
34 ],
35 'action': [
36 # Actions don't provide a way to redirect stdout, so a custo m
37 # script is invoked that will execute the first argument and
38 # write the output to the file specified as the second argum ent.
39 # -I sorts classes, categories, and protocols by inheritance .
40 # -C <regex> only displays classes matching regular expressi on.
41 './redirect-stdout.sh',
42 '<(PRODUCT_DIR)/class-dump -CDVTStackBacktrace|DVTInvalidati on|DVTMixIn <(iphone_sim_path)/DVTFoundation.framework',
43 '<(INTERMEDIATE_DIR)/iossim/DVTFoundation.h',
44 ],
45 'message': 'Generating DVTFoundation.h',
46 },
47 {
48 'action_name': 'generate_dvt_core_simulator',
49 'inputs': [
50 '<(developer_dir)/Library/PrivateFrameworks/CoreSimulator.fr amework/Versions/Current/CoreSimulator',
51 '<(PRODUCT_DIR)/class-dump',
52 ],
53 'outputs': [
54 '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h'
55 ],
56 'action': [
57 # Actions don't provide a way to redirect stdout, so a custo m
58 # script is invoked that will execute the first argument and
59 # write the output to the file specified as the second argum ent.
60 # -I sorts classes, categories, and protocols by inheritance .
61 # -C <regex> only displays classes matching regular expressi on.
62 './redirect-stdout.sh',
63 '<(PRODUCT_DIR)/class-dump -CSim <(developer_dir)/Library/Pr ivateFrameworks/CoreSimulator.framework',
64 '<(INTERMEDIATE_DIR)/iossim/CoreSimulator.h',
65 ],
66 'message': 'Generating CoreSimulator.h',
67 },
68 ], # actions
69 }, { # else: xcode_version!="6"
70 'variables': {
71 'iphone_sim_path': '<(developer_dir)/Platforms/iPhoneSimulator.p latform/Developer/Library/PrivateFrameworks',
72 },
73 }], # xcode_version
74 ], # conditions
18 'dependencies': [ 75 'dependencies': [
19 'third_party/class-dump/class-dump.gyp:class-dump#host', 76 'third_party/class-dump/class-dump.gyp:class-dump#host',
20 ], 77 ],
21 'include_dirs': [ 78 'include_dirs': [
22 '<(INTERMEDIATE_DIR)/iossim', 79 '<(INTERMEDIATE_DIR)/iossim',
23 ], 80 ],
24 'sources': [ 81 'sources': [
25 'iossim.mm', 82 'iossim.mm',
26 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h', 83 '<(INTERMEDIATE_DIR)/iossim/iPhoneSimulatorRemoteClient.h',
27 ], 84 ],
(...skipping 13 matching lines...) Expand all
41 'action': [ 98 'action': [
42 # Actions don't provide a way to redirect stdout, so a custom 99 # Actions don't provide a way to redirect stdout, so a custom
43 # script is invoked that will execute the first argument and 100 # script is invoked that will execute the first argument and
44 # write the output to the file specified as the second argument. 101 # write the output to the file specified as the second argument.
45 # -I sorts classes, categories, and protocols by inheritance. 102 # -I sorts classes, categories, and protocols by inheritance.
46 # -C <regex> only displays classes matching regular expression. 103 # -C <regex> only displays classes matching regular expression.
47 './redirect-stdout.sh', 104 './redirect-stdout.sh',
48 '<(PRODUCT_DIR)/class-dump -I -CiPhoneSimulator <(iphone_sim_pat h)/DVTiPhoneSimulatorRemoteClient.framework', 105 '<(PRODUCT_DIR)/class-dump -I -CiPhoneSimulator <(iphone_sim_pat h)/DVTiPhoneSimulatorRemoteClient.framework',
49 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h', 106 '<(INTERMEDIATE_DIR)/iossim/DVTiPhoneSimulatorRemoteClient.h',
50 ], 107 ],
51 'message': 'Generating header', 108 'message': 'Generating DVTiPhoneSimulatorRemoteClient.h',
52 }, 109 },
53 ], 110 ], # actions
54 'xcode_settings': { 111 'xcode_settings': {
55 'ARCHS': ['x86_64'], 112 'ARCHS': ['x86_64'],
56 'WARNING_CFLAGS': [ 113 'WARNING_CFLAGS': [
57 '-Wno-objc-property-no-attribute', 114 '-Wno-objc-property-no-attribute',
58 ], 115 ],
59 }, 116 },
60 }, 117 },
61 ], 118 ],
62 }, { # else, OS=="ios" and "<(GENERATOR)"!="ninja" 119 }, { # else, OS=="ios" and "<(GENERATOR)"!="ninja"
63 'variables': { 120 'variables': {
(...skipping 22 matching lines...) Expand all
86 'iossim', 143 'iossim',
87 ], 144 ],
88 'message': 'Generating the iossim executable', 145 'message': 'Generating the iossim executable',
89 }, 146 },
90 ], 147 ],
91 }, 148 },
92 ], 149 ],
93 }], 150 }],
94 ], 151 ],
95 } 152 }
OLDNEW
« no previous file with comments | « no previous file | testing/iossim/iossim.mm » ('j') | testing/iossim/iossim.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698