OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build_overrides/v8.gni") | 5 import("//build_overrides/v8.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 component("gin") { | 8 component("gin") { |
9 sources = [ | 9 sources = [ |
10 "arguments.cc", | 10 "arguments.cc", |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 "shell/gin_main.cc", | 128 "shell/gin_main.cc", |
129 ] | 129 ] |
130 | 130 |
131 deps = [ | 131 deps = [ |
132 ":gin", | 132 ":gin", |
133 "//base", | 133 "//base", |
134 "//base:i18n", | 134 "//base:i18n", |
135 "//build/config/sanitizers:deps", | 135 "//build/config/sanitizers:deps", |
136 "//v8", | 136 "//v8", |
137 ] | 137 ] |
| 138 |
| 139 configs += [ "//v8:external_startup_data" ] |
138 } | 140 } |
139 | 141 |
140 source_set("gin_test") { | 142 source_set("gin_test") { |
141 testonly = true | 143 testonly = true |
142 sources = [ | 144 sources = [ |
143 "test/file.cc", | 145 "test/file.cc", |
144 "test/file.h", | 146 "test/file.h", |
145 "test/file_runner.cc", | 147 "test/file_runner.cc", |
146 "test/file_runner.h", | 148 "test/file_runner.h", |
147 "test/gc.cc", | 149 "test/gc.cc", |
148 "test/gc.h", | 150 "test/gc.h", |
149 "test/gtest.cc", | 151 "test/gtest.cc", |
150 "test/gtest.h", | 152 "test/gtest.h", |
151 "test/v8_test.cc", | 153 "test/v8_test.cc", |
152 "test/v8_test.h", | 154 "test/v8_test.h", |
153 ] | 155 ] |
154 | 156 |
155 public_deps = [ | 157 public_deps = [ |
156 ":gin", | 158 ":gin", |
157 "//testing/gtest", | 159 "//testing/gtest", |
158 ] | 160 ] |
159 deps = [ | 161 deps = [ |
160 "//v8", | 162 "//v8", |
161 ] | 163 ] |
| 164 |
| 165 configs += [ "//v8:external_startup_data" ] |
162 } | 166 } |
163 | 167 |
164 test("gin_unittests") { | 168 test("gin_unittests") { |
165 sources = [ | 169 sources = [ |
166 "converter_unittest.cc", | 170 "converter_unittest.cc", |
167 "interceptor_unittest.cc", | 171 "interceptor_unittest.cc", |
168 "modules/module_registry_unittest.cc", | 172 "modules/module_registry_unittest.cc", |
169 "modules/timer_unittest.cc", | 173 "modules/timer_unittest.cc", |
170 "per_context_data_unittest.cc", | 174 "per_context_data_unittest.cc", |
171 "shell/gin_shell_unittest.cc", | 175 "shell/gin_shell_unittest.cc", |
172 "shell_runner_unittest.cc", | 176 "shell_runner_unittest.cc", |
173 "test/run_all_unittests.cc", | 177 "test/run_all_unittests.cc", |
174 "test/run_js_tests.cc", | 178 "test/run_js_tests.cc", |
175 "v8_isolate_memory_dump_provider_unittest.cc", | 179 "v8_isolate_memory_dump_provider_unittest.cc", |
176 "wrappable_unittest.cc", | 180 "wrappable_unittest.cc", |
177 ] | 181 ] |
178 | 182 |
179 deps = [ | 183 deps = [ |
| 184 ":gin_shell", |
180 ":gin_test", | 185 ":gin_test", |
181 "//base/test:test_support", | 186 "//base/test:test_support", |
182 "//v8", | 187 "//v8", |
183 ] | 188 ] |
| 189 |
| 190 configs += [ "//v8:external_startup_data" ] |
| 191 |
| 192 data = [ |
| 193 "modules/module_registry_unittests.js", |
| 194 "shell/hello_world.js", |
| 195 "test/expect.js", |
| 196 "test/file_unittests.js", |
| 197 "test/gtest_unittests.js", |
| 198 "../OWNERS", |
| 199 ] |
| 200 |
| 201 data_deps = [ |
| 202 ":gin_shell", |
| 203 ] |
184 } | 204 } |
| 205 |
| 206 # TODO(GYP): Delete this after we've converted everything to GN. |
| 207 # The _run targets exist only for compatibility w/ GYP. |
| 208 group("gin_unittests_run") { |
| 209 testonly = true |
| 210 deps = [ |
| 211 ":gin_unittests", |
| 212 ] |
| 213 } |
OLD | NEW |