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

Side by Side Diff: tools/gyp/configurations.gypi

Issue 105223002: Simplifies standalone VM Android build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'common_gcc_warning_flags': [ 7 'common_gcc_warning_flags': [
8 '-Wall', 8 '-Wall',
9 '-Wextra', # Also known as -W. 9 '-Wextra', # Also known as -W.
10 '-Wno-unused-parameter', 10 '-Wno-unused-parameter',
11 ], 11 ],
12 12
13 # Default value. This may be overridden in a containing project gyp. 13 # Default value. This may be overridden in a containing project gyp.
14 'target_arch%': 'ia32', 14 'target_arch%': 'ia32',
15 15
16 'conditions': [ 16 'conditions': [
17 ['"<(target_arch)"=="ia32"', { 'dart_target_arch': 'IA32', }], 17 ['"<(target_arch)"=="ia32"', { 'dart_target_arch': 'IA32', }],
18 ['"<(target_arch)"=="x64"', { 'dart_target_arch': 'X64', }], 18 ['"<(target_arch)"=="x64"', { 'dart_target_arch': 'X64', }],
19 ['"<(target_arch)"=="arm"', { 'dart_target_arch': 'ARM', }], 19 ['"<(target_arch)"=="arm"', { 'dart_target_arch': 'ARM', }],
20 ['"<(target_arch)"=="simarm"', { 'dart_target_arch': 'SIMARM', }], 20 ['"<(target_arch)"=="simarm"', { 'dart_target_arch': 'SIMARM', }],
21 ['"<(target_arch)"=="mips"', { 'dart_target_arch': 'MIPS', }], 21 ['"<(target_arch)"=="mips"', { 'dart_target_arch': 'MIPS', }],
22 ['"<(target_arch)"=="simmips"', { 'dart_target_arch': 'SIMMIPS', }], 22 ['"<(target_arch)"=="simmips"', { 'dart_target_arch': 'SIMMIPS', }],
23 ], 23 [ 'OS=="linux"', { 'dart_target_os': 'Linux', } ],
24 [ 'OS=="mac"', { 'dart_target_os': 'Macos', } ],
25 [ 'OS=="win"', { 'dart_target_os': 'Win', } ],
26 [ 'OS=="android"', { 'chrome_target_os': 'Android',},
Ivan Posva 2013/12/20 06:53:47 Why are you setting chrome_target_os here, while a
zra 2013/12/20 16:09:48 Added clarifying comment. The 'line below' is the
27 { 'chrome_target_os': '',}],
28 ],
24 }, 29 },
25 'conditions': [ 30 'includes': [
26 [ 'OS=="android"', { 'includes': [ 'configurations_android.gypi', ], } ], 31 'configurations_android.gypi',
27 [ 'OS=="linux"', { 'includes': [ 'configurations_make.gypi', ], } ], 32 'configurations_make.gypi',
28 [ 'OS=="mac"', { 'includes': [ 'configurations_xcode.gypi', ], } ], 33 'configurations_xcode.gypi',
29 [ 'OS=="win"', { 'includes': [ 'configurations_msvs.gypi', ], } ], 34 'configurations_msvs.gypi',
30 ], 35 ],
31 'target_defaults': { 36 'target_defaults': {
32 'default_configuration': 'DebugIA32', 37 'default_configuration': 'DebugIA32',
33 'configurations': { 38 'configurations': {
34 'Dart_Base': { 39 'Dart_Base': {
35 'abstract': 1, 40 'abstract': 1,
36 }, 41 },
37 42
38 'Dart_ia32_Base': { 43 'Dart_ia32_Base': {
39 'abstract': 1, 44 'abstract': 1,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 'abstract': 1, 80 'abstract': 1,
76 }, 81 },
77 82
78 'Dart_Release': { 83 'Dart_Release': {
79 'abstract': 1, 84 'abstract': 1,
80 'defines': [ 85 'defines': [
81 'NDEBUG', 86 'NDEBUG',
82 ], 87 ],
83 }, 88 },
84 89
90
91 # Configurations
85 'DebugIA32': { 92 'DebugIA32': {
86 'inherit_from': ['Dart_Base', 'Dart_ia32_Base', 'Dart_Debug'], 93 'inherit_from': [
94 'Dart_Base', 'Dart_ia32_Base', 'Dart_Debug',
95 'Dart_<(dart_target_os)_Base',
96 'Dart_<(dart_target_os)_ia32_Base',
97 'Dart_<(dart_target_os)_Debug',],
87 }, 98 },
88 99
89 'ReleaseIA32': { 100 'ReleaseIA32': {
90 'inherit_from': ['Dart_Base', 'Dart_ia32_Base', 'Dart_Release'], 101 'inherit_from': [
102 'Dart_Base', 'Dart_ia32_Base', 'Dart_Release',
103 'Dart_<(dart_target_os)_Base',
104 'Dart_<(dart_target_os)_ia32_Base',
105 'Dart_<(dart_target_os)_Release',],
91 }, 106 },
92 107
93 'DebugX64': { 108 'DebugX64': {
94 'inherit_from': ['Dart_Base', 'Dart_x64_Base', 'Dart_Debug'], 109 'inherit_from': [
110 'Dart_Base', 'Dart_x64_Base', 'Dart_Debug',
111 'Dart_<(dart_target_os)_Base',
112 'Dart_<(dart_target_os)_x64_Base',
113 'Dart_<(dart_target_os)_Debug',],
95 }, 114 },
96 115
97 'ReleaseX64': { 116 'ReleaseX64': {
98 'inherit_from': ['Dart_Base', 'Dart_x64_Base', 'Dart_Release'], 117 'inherit_from': [
118 'Dart_Base', 'Dart_x64_Base', 'Dart_Release',
119 'Dart_<(dart_target_os)_Base',
120 'Dart_<(dart_target_os)_x64_Base',
121 'Dart_<(dart_target_os)_Release',],
99 }, 122 },
100 123
101 'DebugSIMARM': { 124 'DebugSIMARM': {
102 'inherit_from': ['Dart_Base', 'Dart_simarm_Base', 'Dart_Debug'], 125 'inherit_from': [
126 'Dart_Base', 'Dart_simarm_Base', 'Dart_Debug',
127 'Dart_<(dart_target_os)_Base',
128 'Dart_<(dart_target_os)_simarm_Base',
129 'Dart_<(dart_target_os)_Debug',],
103 'defines': [ 130 'defines': [
104 'DEBUG', 131 'DEBUG',
105 ], 132 ],
106 }, 133 },
107 134
108 'ReleaseSIMARM': { 135 'ReleaseSIMARM': {
109 'inherit_from': ['Dart_Base', 'Dart_simarm_Base', 'Dart_Release'], 136 'inherit_from': [
110 }, 137 'Dart_Base', 'Dart_simarm_Base', 'Dart_Release',
111 138 'Dart_<(dart_target_os)_Base',
112 'DebugARM': { 139 'Dart_<(dart_target_os)_simarm_Base',
113 'inherit_from': ['Dart_Base', 'Dart_arm_Base', 'Dart_Debug'], 140 'Dart_<(dart_target_os)_Release',],
114 },
115
116 'ReleaseARM': {
117 'inherit_from': ['Dart_Base', 'Dart_arm_Base', 'Dart_Release'],
118 }, 141 },
119 142
120 'DebugSIMMIPS': { 143 'DebugSIMMIPS': {
121 'inherit_from': ['Dart_Base', 'Dart_simmips_Base', 'Dart_Debug'], 144 'inherit_from': [
145 'Dart_Base', 'Dart_simmips_Base', 'Dart_Debug',
146 'Dart_<(dart_target_os)_Base',
147 'Dart_<(dart_target_os)_simmips_Base',
148 'Dart_<(dart_target_os)_Debug',],
122 'defines': [ 149 'defines': [
123 'DEBUG', 150 'DEBUG',
124 ], 151 ],
125 }, 152 },
126 153
127 'ReleaseSIMMIPS': { 154 'ReleaseSIMMIPS': {
128 'inherit_from': ['Dart_Base', 'Dart_simmips_Base', 'Dart_Release'], 155 'inherit_from': [
156 'Dart_Base', 'Dart_simmips_Base', 'Dart_Release',
157 'Dart_<(dart_target_os)_Base',
158 'Dart_<(dart_target_os)_simmips_Base',
159 'Dart_<(dart_target_os)_Release',],
160 },
161
162
163 # ARM and MIPS hardware configurations are only for Linux and Android.
164 'DebugARM': {
165 'inherit_from': [
166 'Dart_Base', 'Dart_arm_Base', 'Dart_Debug',
167 'Dart_Linux_Base',
168 'Dart_Linux_arm_Base',
169 'Dart_Linux_Debug',],
170 },
171
172 'ReleaseARM': {
173 'inherit_from': [
174 'Dart_Base', 'Dart_arm_Base', 'Dart_Release',
175 'Dart_Linux_Base',
176 'Dart_Linux_arm_Base',
177 'Dart_Linux_Release',],
129 }, 178 },
130 179
131 'DebugMIPS': { 180 'DebugMIPS': {
132 'inherit_from': ['Dart_Base', 'Dart_mips_Base', 'Dart_Debug'], 181 'inherit_from': [
182 'Dart_Base', 'Dart_mips_Base', 'Dart_Debug',
183 'Dart_Linux_Base',
184 'Dart_Linux_mips_Base',
185 'Dart_Linux_Debug',],
133 }, 186 },
134 187
135 'ReleaseMIPS': { 188 'ReleaseMIPS': {
136 'inherit_from': ['Dart_Base', 'Dart_mips_Base', 'Dart_Release'], 189 'inherit_from': [
190 'Dart_Base', 'Dart_mips_Base', 'Dart_Release',
191 'Dart_Linux_Base',
192 'Dart_Linux_mips_Base',
193 'Dart_Linux_Release',],
194 },
195
196 # Android configurations. The configuration names explicitly include
197 # 'Android' because we are cross-building from Linux, and cannot inspect
198 # the gyp builtin 'OS' variable to figure out that we are building for
199 # Android; since we have not re-run gyp, it will still be 'linux'.
200 'DebugAndroidIA32': {
201 'inherit_from': [
202 'Dart_Base', 'Dart_ia32_Base', 'Dart_Debug',
203 'Dart_Android_Base',
204 'Dart_Android_ia32_Base',
205 'Dart_Android_Debug',],
206 },
207
208 'ReleaseAndroidIA32': {
209 'inherit_from': [
210 'Dart_Base', 'Dart_ia32_Base', 'Dart_Release',
211 'Dart_Android_Base',
212 'Dart_Android_ia32_Base',
213 'Dart_Android_Release',],
214 },
215
216 'DebugAndroidARM': {
217 'inherit_from': [
218 'Dart_Base', 'Dart_arm_Base', 'Dart_Debug',
219 'Dart_Android_Base',
220 'Dart_Android_arm_Base',
221 'Dart_Android_Debug',],
222 },
223
224 'ReleaseAndroidARM': {
225 'inherit_from': [
226 'Dart_Base', 'Dart_arm_Base', 'Dart_Release',
227 'Dart_Android_Base',
228 'Dart_Android_arm_Base',
229 'Dart_Android_Release',],
137 }, 230 },
138 231
139 # These targets assume that target_arch is passed in explicitly 232 # These targets assume that target_arch is passed in explicitly
140 # by the containing project (e.g., chromium). 233 # by the containing project (e.g., chromium).
141 'Debug': { 234 'Debug': {
142 'inherit_from': ['Debug<(dart_target_arch)'] 235 'inherit_from': ['Debug<(chrome_target_os)<(dart_target_arch)']
143 }, 236 },
144 237
145 'Release': { 238 'Release': {
146 'inherit_from': ['Release<(dart_target_arch)'] 239 'inherit_from': ['Release<(chrome_target_os)<(dart_target_arch)']
147 }, 240 },
148 }, 241 },
149 }, 242 },
150 } 243 }
OLDNEW
« tools/build.py ('K') | « tools/build.py ('k') | tools/gyp/configurations_android.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698