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

Side by Side Diff: test/cctest/BUILD.gn

Issue 2074003002: Update GN build to use v8_target_cpu instead of v8_target_arch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
OLDNEW
1 # Copyright 2016 The V8 project authors. All rights reserved. 1 # Copyright 2016 The V8 project 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 # Please keep this file in sync with cctest.gyp. 5 # Please keep this file in sync with cctest.gyp.
6 6
7 import("../../gni/v8.gni") 7 import("../../gni/v8.gni")
8 8
9 v8_executable("cctest") { 9 v8_executable("cctest") {
10 testonly = true 10 testonly = true
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 "wasm/test-run-wasm-module.cc", 166 "wasm/test-run-wasm-module.cc",
167 "wasm/test-run-wasm-relocation.cc", 167 "wasm/test-run-wasm-relocation.cc",
168 "wasm/test-run-wasm.cc", 168 "wasm/test-run-wasm.cc",
169 "wasm/test-signatures.h", 169 "wasm/test-signatures.h",
170 "wasm/test-wasm-function-name-table.cc", 170 "wasm/test-wasm-function-name-table.cc",
171 "wasm/test-wasm-stack.cc", 171 "wasm/test-wasm-stack.cc",
172 "wasm/test-wasm-trap-position.cc", 172 "wasm/test-wasm-trap-position.cc",
173 "wasm/wasm-run-utils.h", 173 "wasm/wasm-run-utils.h",
174 ] 174 ]
175 175
176 if (v8_target_arch == "arm") { 176 if (v8_target_cpu == "arm") {
177 sources += [ 177 sources += [
178 "test-assembler-arm.cc", 178 "test-assembler-arm.cc",
179 "test-code-stubs-arm.cc", 179 "test-code-stubs-arm.cc",
180 "test-code-stubs.cc", 180 "test-code-stubs.cc",
181 "test-disasm-arm.cc", 181 "test-disasm-arm.cc",
182 "test-macro-assembler-arm.cc", 182 "test-macro-assembler-arm.cc",
183 "test-run-wasm-relocation-arm.cc", 183 "test-run-wasm-relocation-arm.cc",
184 ] 184 ]
185 } else if (v8_target_arch == "arm64") { 185 } else if (v8_target_cpu == "arm64") {
186 sources += [ 186 sources += [
187 "test-assembler-arm64.cc", 187 "test-assembler-arm64.cc",
188 "test-code-stubs-arm64.cc", 188 "test-code-stubs-arm64.cc",
189 "test-code-stubs.cc", 189 "test-code-stubs.cc",
190 "test-disasm-arm64.cc", 190 "test-disasm-arm64.cc",
191 "test-fuzz-arm64.cc", 191 "test-fuzz-arm64.cc",
192 "test-javascript-arm64.cc", 192 "test-javascript-arm64.cc",
193 "test-js-arm64-variables.cc", 193 "test-js-arm64-variables.cc",
194 "test-run-wasm-relocation-arm64.cc", 194 "test-run-wasm-relocation-arm64.cc",
195 "test-utils-arm64.cc", 195 "test-utils-arm64.cc",
196 ] 196 ]
197 } else if (v8_target_arch == "x86") { 197 } else if (v8_target_cpu == "x86") {
198 sources += [ 198 sources += [
199 "test-assembler-ia32.cc", 199 "test-assembler-ia32.cc",
200 "test-code-stubs-ia32.cc", 200 "test-code-stubs-ia32.cc",
201 "test-code-stubs.cc", 201 "test-code-stubs.cc",
202 "test-disasm-ia32.cc", 202 "test-disasm-ia32.cc",
203 "test-log-stack-tracer.cc", 203 "test-log-stack-tracer.cc",
204 "test-macro-assembler-ia32.cc", 204 "test-macro-assembler-ia32.cc",
205 "test-run-wasm-relocation-ia32.cc", 205 "test-run-wasm-relocation-ia32.cc",
206 ] 206 ]
207 } else if (v8_target_arch == "mips") { 207 } else if (v8_target_cpu == "mips") {
208 sources += [ 208 sources += [
209 "test-assembler-mips.cc", 209 "test-assembler-mips.cc",
210 "test-code-stubs-mips.cc", 210 "test-code-stubs-mips.cc",
211 "test-code-stubs.cc", 211 "test-code-stubs.cc",
212 "test-disasm-mips.cc", 212 "test-disasm-mips.cc",
213 "test-macro-assembler-mips.cc", 213 "test-macro-assembler-mips.cc",
214 ] 214 ]
215 } else if (v8_target_arch == "mipsel") { 215 } else if (v8_target_cpu == "mipsel") {
216 sources += [ 216 sources += [
217 "test-assembler-mips.cc", 217 "test-assembler-mips.cc",
218 "test-code-stubs-mips.cc", 218 "test-code-stubs-mips.cc",
219 "test-code-stubs.cc", 219 "test-code-stubs.cc",
220 "test-disasm-mips.cc", 220 "test-disasm-mips.cc",
221 "test-macro-assembler-mips.cc", 221 "test-macro-assembler-mips.cc",
222 ] 222 ]
223 } else if (v8_target_arch == "mips64") { 223 } else if (v8_target_cpu == "mips64") {
224 sources += [ 224 sources += [
225 "test-assembler-mips64.cc", 225 "test-assembler-mips64.cc",
226 "test-code-stubs-mips64.cc", 226 "test-code-stubs-mips64.cc",
227 "test-code-stubs.cc", 227 "test-code-stubs.cc",
228 "test-disasm-mips64.cc", 228 "test-disasm-mips64.cc",
229 "test-macro-assembler-mips64.cc", 229 "test-macro-assembler-mips64.cc",
230 ] 230 ]
231 } else if (v8_target_arch == "mips64el") { 231 } else if (v8_target_cpu == "mips64el") {
232 sources += [ 232 sources += [
233 "test-assembler-mips64.cc", 233 "test-assembler-mips64.cc",
234 "test-code-stubs-mips64.cc", 234 "test-code-stubs-mips64.cc",
235 "test-code-stubs.cc", 235 "test-code-stubs.cc",
236 "test-disasm-mips64.cc", 236 "test-disasm-mips64.cc",
237 "test-macro-assembler-mips64.cc", 237 "test-macro-assembler-mips64.cc",
238 ] 238 ]
239 } else if (v8_target_arch == "x64") { 239 } else if (v8_target_cpu == "x64") {
240 sources += [ 240 sources += [
241 "test-assembler-x64.cc", 241 "test-assembler-x64.cc",
242 "test-code-stubs-x64.cc", 242 "test-code-stubs-x64.cc",
243 "test-code-stubs.cc", 243 "test-code-stubs.cc",
244 "test-disasm-x64.cc", 244 "test-disasm-x64.cc",
245 "test-log-stack-tracer.cc", 245 "test-log-stack-tracer.cc",
246 "test-macro-assembler-x64.cc", 246 "test-macro-assembler-x64.cc",
247 "test-run-wasm-relocation-x64.cc", 247 "test-run-wasm-relocation-x64.cc",
248 ] 248 ]
249 } else if (v8_target_arch == "x87") { 249 } else if (v8_target_cpu == "x87") {
250 sources += [ 250 sources += [
251 "test-assembler-x87.cc", 251 "test-assembler-x87.cc",
252 "test-code-stubs-x87.cc", 252 "test-code-stubs-x87.cc",
253 "test-code-stubs.cc", 253 "test-code-stubs.cc",
254 "test-disasm-x87.cc", 254 "test-disasm-x87.cc",
255 "test-log-stack-tracer.cc", 255 "test-log-stack-tracer.cc",
256 "test-macro-assembler-x87.cc", 256 "test-macro-assembler-x87.cc",
257 "test-run-wasm-relocation-x87.cc", 257 "test-run-wasm-relocation-x87.cc",
258 ] 258 ]
259 } else if (v8_target_arch == "ppc" || v8_target_arch == "ppc64") { 259 } else if (v8_target_cpu == "ppc" || v8_target_cpu == "ppc64") {
260 sources += [ 260 sources += [
261 "test-assembler-ppc.cc", 261 "test-assembler-ppc.cc",
262 "test-code-stubs.cc", 262 "test-code-stubs.cc",
263 "test-disasm-ppc.cc", 263 "test-disasm-ppc.cc",
264 ] 264 ]
265 } else if (v8_target_arch == "s390" || v8_target_arch == "s390x") { 265 } else if (v8_target_cpu == "s390" || v8_target_cpu == "s390x") {
266 sources += [ 266 sources += [
267 "test-assembler-s390.cc", 267 "test-assembler-s390.cc",
268 "test-code-stubs.cc", 268 "test-code-stubs.cc",
269 "test-disasm-s390.cc", 269 "test-disasm-s390.cc",
270 ] 270 ]
271 } 271 }
272 272
273 if (is_linux) { 273 if (is_linux) {
274 # TODO(machenbach): Translate 'or OS=="qnx"' from gyp. 274 # TODO(machenbach): Translate 'or OS=="qnx"' from gyp.
275 sources += [ "test-platform-linux.cc" ] 275 sources += [ "test-platform-linux.cc" ]
276 } else if (is_win) { 276 } else if (is_win) {
277 sources += [ "test-platform-win32.cc" ] 277 sources += [ "test-platform-win32.cc" ]
278 # TODO(machenbach): Translate from gyp. 278 # TODO(machenbach): Translate from gyp.
279 # "msvs_settings": { 279 # "msvs_settings": {
280 # "VCCLCompilerTool": { 280 # "VCCLCompilerTool": {
281 # # MSVS wants this for gay-{precision,shortest}.cc. 281 # # MSVS wants this for gay-{precision,shortest}.cc.
282 # "AdditionalOptions": ["/bigobj"], 282 # "AdditionalOptions": ["/bigobj"],
283 # }, 283 # },
284 # }, 284 # },
285 } 285 }
286 286
287 configs = [ 287 configs = [
288 "../..:external_config", 288 "../..:external_config",
289 "../..:internal_config_base", 289 "../..:internal_config_base",
290 ] 290 ]
291 291
292 # TODO(machenbach): Translate from gyp. 292 # TODO(machenbach): Translate from gyp.
293 #['v8_target_arch=="ppc" or v8_target_arch=="ppc64" \ 293 #['v8_target_cpu=="ppc" or v8_target_cpu=="ppc64" \
294 # or v8_target_arch=="arm" or v8_target_arch=="arm64" \ 294 # or v8_target_cpu=="arm" or v8_target_cpu=="arm64" \
295 # or v8_target_arch=="s390" or v8_target_arch=="s390x"', { 295 # or v8_target_cpu=="s390" or v8_target_cpu=="s390x"', {
296 # # disable fmadd/fmsub so that expected results match generated code in 296 # # disable fmadd/fmsub so that expected results match generated code in
297 # # RunFloat64MulAndFloat64Add1 and friends. 297 # # RunFloat64MulAndFloat64Add1 and friends.
298 # 'cflags': ['-ffp-contract=off'], 298 # 'cflags': ['-ffp-contract=off'],
299 #}], 299 #}],
300 300
301 # TODO(machenbach): Translate from gyp. 301 # TODO(machenbach): Translate from gyp.
302 #["OS=="aix"", { 302 #["OS=="aix"", {
303 # "ldflags": [ "-Wl,-bbigtoc" ], 303 # "ldflags": [ "-Wl,-bbigtoc" ],
304 #}], 304 #}],
305 305
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 "$target_gen_dir/resources.cc", 361 "$target_gen_dir/resources.cc",
362 ] 362 ]
363 363
364 args = [ 364 args = [
365 rebase_path("$target_gen_dir/resources.cc", root_build_dir), 365 rebase_path("$target_gen_dir/resources.cc", root_build_dir),
366 "TEST", 366 "TEST",
367 ] 367 ]
368 args += rebase_path(sources, root_build_dir) 368 args += rebase_path(sources, root_build_dir)
369 } 369 }
370 # TODO(machenbach): Migrate generate-bytecode-expectations. 370 # TODO(machenbach): Migrate generate-bytecode-expectations.
OLDNEW
« build_overrides/v8.gni ('K') | « gni/v8.gni ('k') | test/unittests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698