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

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

Issue 2339933002: Disentangle gyp and gn files (Closed)
Patch Set: updates Created 4 years, 3 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 | « test/cctest/test-api.cc ('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.
6
7 import("../../gni/v8.gni") 5 import("../../gni/v8.gni")
8 6
9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("unittests.gyp") ],
11 "scope",
12 [ "unittests.gyp" ])
13
14 v8_executable("unittests") { 7 v8_executable("unittests") {
15 testonly = true 8 testonly = true
16 9
17 sources = gypi_values.unittests_sources 10 sources = [
11 "base/atomic-utils-unittest.cc",
12 "base/bits-unittest.cc",
13 "base/cpu-unittest.cc",
14 "base/division-by-constant-unittest.cc",
15 "base/flags-unittest.cc",
16 "base/functional-unittest.cc",
17 "base/ieee754-unittest.cc",
18 "base/iterator-unittest.cc",
19 "base/logging-unittest.cc",
20 "base/platform/condition-variable-unittest.cc",
21 "base/platform/mutex-unittest.cc",
22 "base/platform/platform-unittest.cc",
23 "base/platform/semaphore-unittest.cc",
24 "base/platform/time-unittest.cc",
25 "base/sys-info-unittest.cc",
26 "base/utils/random-number-generator-unittest.cc",
27 "cancelable-tasks-unittest.cc",
28 "char-predicates-unittest.cc",
29 "compiler-dispatcher/compiler-dispatcher-job-unittest.cc",
30 "compiler/branch-elimination-unittest.cc",
31 "compiler/checkpoint-elimination-unittest.cc",
32 "compiler/common-operator-reducer-unittest.cc",
33 "compiler/common-operator-unittest.cc",
34 "compiler/compiler-test-utils.h",
35 "compiler/control-equivalence-unittest.cc",
36 "compiler/control-flow-optimizer-unittest.cc",
37 "compiler/dead-code-elimination-unittest.cc",
38 "compiler/diamond-unittest.cc",
39 "compiler/effect-control-linearizer-unittest.cc",
40 "compiler/escape-analysis-unittest.cc",
41 "compiler/graph-reducer-unittest.cc",
42 "compiler/graph-reducer-unittest.h",
43 "compiler/graph-trimmer-unittest.cc",
44 "compiler/graph-unittest.cc",
45 "compiler/graph-unittest.h",
46 "compiler/instruction-selector-unittest.cc",
47 "compiler/instruction-selector-unittest.h",
48 "compiler/instruction-sequence-unittest.cc",
49 "compiler/instruction-sequence-unittest.h",
50 "compiler/int64-lowering-unittest.cc",
51 "compiler/js-builtin-reducer-unittest.cc",
52 "compiler/js-create-lowering-unittest.cc",
53 "compiler/js-intrinsic-lowering-unittest.cc",
54 "compiler/js-operator-unittest.cc",
55 "compiler/js-typed-lowering-unittest.cc",
56 "compiler/linkage-tail-call-unittest.cc",
57 "compiler/live-range-unittest.cc",
58 "compiler/liveness-analyzer-unittest.cc",
59 "compiler/load-elimination-unittest.cc",
60 "compiler/loop-peeling-unittest.cc",
61 "compiler/machine-operator-reducer-unittest.cc",
62 "compiler/machine-operator-unittest.cc",
63 "compiler/move-optimizer-unittest.cc",
64 "compiler/node-cache-unittest.cc",
65 "compiler/node-matchers-unittest.cc",
66 "compiler/node-properties-unittest.cc",
67 "compiler/node-test-utils.cc",
68 "compiler/node-test-utils.h",
69 "compiler/node-unittest.cc",
70 "compiler/opcodes-unittest.cc",
71 "compiler/register-allocator-unittest.cc",
72 "compiler/schedule-unittest.cc",
73 "compiler/scheduler-rpo-unittest.cc",
74 "compiler/scheduler-unittest.cc",
75 "compiler/simplified-operator-reducer-unittest.cc",
76 "compiler/simplified-operator-unittest.cc",
77 "compiler/state-values-utils-unittest.cc",
78 "compiler/tail-call-optimization-unittest.cc",
79 "compiler/typed-optimization-unittest.cc",
80 "compiler/typer-unittest.cc",
81 "compiler/value-numbering-reducer-unittest.cc",
82 "compiler/zone-pool-unittest.cc",
83 "counters-unittest.cc",
84 "eh-frame-iterator-unittest.cc",
85 "eh-frame-writer-unittest.cc",
86 "heap/bitmap-unittest.cc",
87 "heap/gc-idle-time-handler-unittest.cc",
88 "heap/gc-tracer-unittest.cc",
89 "heap/heap-unittest.cc",
90 "heap/marking-unittest.cc",
91 "heap/memory-reducer-unittest.cc",
92 "heap/scavenge-job-unittest.cc",
93 "heap/slot-set-unittest.cc",
94 "interpreter/bytecode-array-builder-unittest.cc",
95 "interpreter/bytecode-array-iterator-unittest.cc",
96 "interpreter/bytecode-array-writer-unittest.cc",
97 "interpreter/bytecode-dead-code-optimizer-unittest.cc",
98 "interpreter/bytecode-decoder-unittest.cc",
99 "interpreter/bytecode-peephole-optimizer-unittest.cc",
100 "interpreter/bytecode-pipeline-unittest.cc",
101 "interpreter/bytecode-register-allocator-unittest.cc",
102 "interpreter/bytecode-register-optimizer-unittest.cc",
103 "interpreter/bytecodes-unittest.cc",
104 "interpreter/constant-array-builder-unittest.cc",
105 "interpreter/interpreter-assembler-unittest.cc",
106 "interpreter/interpreter-assembler-unittest.h",
107 "libplatform/default-platform-unittest.cc",
108 "libplatform/task-queue-unittest.cc",
109 "libplatform/worker-thread-unittest.cc",
110 "locked-queue-unittest.cc",
111 "register-configuration-unittest.cc",
112 "run-all-unittests.cc",
113 "source-position-table-unittest.cc",
114 "test-utils.cc",
115 "test-utils.h",
116 "value-serializer-unittest.cc",
117 "wasm/asm-types-unittest.cc",
118 "wasm/ast-decoder-unittest.cc",
119 "wasm/control-transfer-unittest.cc",
120 "wasm/decoder-unittest.cc",
121 "wasm/encoder-unittest.cc",
122 "wasm/leb-helper-unittest.cc",
123 "wasm/loop-assignment-analysis-unittest.cc",
124 "wasm/module-decoder-unittest.cc",
125 "wasm/switch-logic-unittest.cc",
126 "wasm/wasm-macro-gen-unittest.cc",
127 ]
18 128
19 if (v8_current_cpu == "arm") { 129 if (v8_current_cpu == "arm") {
20 sources += gypi_values.unittests_sources_arm 130 sources += [ "compiler/arm/instruction-selector-arm-unittest.cc" ]
21 } else if (v8_current_cpu == "arm64") { 131 } else if (v8_current_cpu == "arm64") {
22 sources += gypi_values.unittests_sources_arm64 132 sources += [ "compiler/arm64/instruction-selector-arm64-unittest.cc" ]
23 } else if (v8_current_cpu == "x86") { 133 } else if (v8_current_cpu == "x86") {
24 sources += gypi_values.unittests_sources_ia32 134 sources += [ "compiler/ia32/instruction-selector-ia32-unittest.cc" ]
25 } else if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel") { 135 } else if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel") {
26 sources += gypi_values.unittests_sources_mips 136 sources += [ "compiler/mips/instruction-selector-mips-unittest.cc" ]
27 } else if (v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") { 137 } else if (v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
28 sources += gypi_values.unittests_sources_mips64 138 sources += [ "compiler/mips64/instruction-selector-mips64-unittest.cc" ]
29 } else if (v8_current_cpu == "x64") { 139 } else if (v8_current_cpu == "x64") {
30 sources += gypi_values.unittests_sources_x64 140 sources += [ "compiler/x64/instruction-selector-x64-unittest.cc" ]
31 } else if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") { 141 } else if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
32 sources += gypi_values.unittests_sources_ppc 142 sources += [ "compiler/ppc/instruction-selector-ppc-unittest.cc" ]
33 } else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") { 143 } else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
34 sources += gypi_values.unittests_sources_s390 144 sources += [ "compiler/s390/instruction-selector-s390-unittest.cc" ]
35 } 145 }
36 146
37 configs = [ 147 configs = [
38 "../..:external_config", 148 "../..:external_config",
39 "../..:internal_config_base", 149 "../..:internal_config_base",
40 ] 150 ]
41 151
42 # TODO(machenbach): Translate from gyp. 152 # TODO(machenbach): Translate from gyp.
43 #['OS=="aix"', { 153 #['OS=="aix"', {
44 # 'ldflags': [ '-Wl,-bbigtoc' ], 154 # 'ldflags': [ '-Wl,-bbigtoc' ],
(...skipping 23 matching lines...) Expand all
68 178
69 # Suppress warnings about importing locally defined symbols. 179 # Suppress warnings about importing locally defined symbols.
70 if (is_component_build) { 180 if (is_component_build) {
71 ldflags = [ 181 ldflags = [
72 "/ignore:4049", 182 "/ignore:4049",
73 "/ignore:4217", 183 "/ignore:4217",
74 ] 184 ]
75 } 185 }
76 } 186 }
77 } 187 }
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698