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

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

Issue 2116913002: Land v8-side changes to switch to v8_current_cpu in the GN build. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove incorrect assert Created 4 years, 5 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
« snapshot_toolchain.gni ('K') | « test/cctest/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # The sources are kept automatically in sync with unittests.gyp. 5 # The sources are kept automatically in sync with unittests.gyp.
6 6
7 import("../../gni/v8.gni") 7 import("../../gni/v8.gni")
8 8
9 gypi_values = exec_script("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("unittests.gyp") ], 10 [ rebase_path("unittests.gyp") ],
11 "scope", 11 "scope",
12 [ "unittests.gyp" ]) 12 [ "unittests.gyp" ])
13 13
14 v8_executable("unittests") { 14 v8_executable("unittests") {
15 testonly = true 15 testonly = true
16 16
17 sources = gypi_values.unittests_sources 17 sources = gypi_values.unittests_sources
18 18
19 if (v8_target_cpu == "arm") { 19 if (v8_current_cpu == "arm") {
20 sources += gypi_values.unittests_sources_arm 20 sources += gypi_values.unittests_sources_arm
21 } else if (v8_target_cpu == "arm64") { 21 } else if (v8_current_cpu == "arm64") {
22 sources += gypi_values.unittests_sources_arm64 22 sources += gypi_values.unittests_sources_arm64
23 } else if (v8_target_cpu == "x86") { 23 } else if (v8_current_cpu == "x86") {
24 sources += gypi_values.unittests_sources_ia32 24 sources += gypi_values.unittests_sources_ia32
25 } else if (v8_target_cpu == "mips" || v8_target_cpu == "mipsel") { 25 } else if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel") {
26 sources += gypi_values.unittests_sources_mips 26 sources += gypi_values.unittests_sources_mips
27 } else if (v8_target_cpu == "mips64" || v8_target_cpu == "mips64el") { 27 } else if (v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
28 sources += gypi_values.unittests_sources_mips64 28 sources += gypi_values.unittests_sources_mips64
29 } else if (v8_target_cpu == "x64") { 29 } else if (v8_current_cpu == "x64") {
30 sources += gypi_values.unittests_sources_x64 30 sources += gypi_values.unittests_sources_x64
31 } else if (v8_target_cpu == "ppc" || v8_target_cpu == "ppc64") { 31 } else if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
32 sources += gypi_values.unittests_sources_ppc 32 sources += gypi_values.unittests_sources_ppc
33 } else if (v8_target_cpu == "s390" || v8_target_cpu == "s390x") { 33 } else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
34 sources += gypi_values.unittests_sources_s390 34 sources += gypi_values.unittests_sources_s390
35 } 35 }
36 36
37 configs = [ 37 configs = [
38 "../..:external_config", 38 "../..:external_config",
39 "../..:internal_config_base", 39 "../..:internal_config_base",
40 ] 40 ]
41 41
42 # TODO(machenbach): Translate from gyp. 42 # TODO(machenbach): Translate from gyp.
43 #['OS=="aix"', { 43 #['OS=="aix"', {
(...skipping 24 matching lines...) Expand all
68 68
69 # Suppress warnings about importing locally defined symbols. 69 # Suppress warnings about importing locally defined symbols.
70 if (is_component_build) { 70 if (is_component_build) {
71 ldflags = [ 71 ldflags = [
72 "/ignore:4049", 72 "/ignore:4049",
73 "/ignore:4217", 73 "/ignore:4217",
74 ] 74 ]
75 } 75 }
76 } 76 }
77 } 77 }
OLDNEW
« snapshot_toolchain.gni ('K') | « test/cctest/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698