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/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 import("//tools/grit/repack.gni") |
8 | 9 |
9 # Collection of all components. You wouldn't link to this, but this is rather | 10 # Collection of all components. You wouldn't link to this, but this is rather |
10 # to reference the files so they can be compiled by the build system. | 11 # to reference the files so they can be compiled by the build system. |
11 group("all_components") { | 12 group("all_components") { |
12 testonly = true # You shouldn't actually link to this. | 13 testonly = true # You shouldn't actually link to this. |
13 visibility = [ "//:*" ] # Only for the root targets to bring in. | 14 visibility = [ "//:*" ] # Only for the root targets to bring in. |
14 | 15 |
15 deps = [ | 16 deps = [ |
16 "//components/auto_login_parser", | 17 "//components/auto_login_parser", |
17 "//components/autofill/content/browser", | 18 "//components/autofill/content/browser", |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 "//components/variations:unit_tests", | 258 "//components/variations:unit_tests", |
258 "//components/web_resource:unit_tests", | 259 "//components/web_resource:unit_tests", |
259 "//components/webdata/common:unit_tests", | 260 "//components/webdata/common:unit_tests", |
260 | 261 |
261 # These are the deps required by the code in this target. | 262 # These are the deps required by the code in this target. |
262 "//base", | 263 "//base", |
263 "//base/test:test_support", | 264 "//base/test:test_support", |
264 "//content/test:test_support", | 265 "//content/test:test_support", |
265 "//ui/base", | 266 "//ui/base", |
266 ] | 267 ] |
| 268 data_deps = [ ":components_tests_pak" ] |
267 | 269 |
268 if (is_android) { | 270 if (is_android) { |
269 deps += [ "//components/data_reduction_proxy/content/browser:unit_tests" ] | 271 deps += [ "//components/data_reduction_proxy/content/browser:unit_tests" ] |
270 } | 272 } |
271 | 273 |
272 # TODO(GYP) need this target. | 274 # TODO(GYP) need this target. |
273 #'breakpad/app/crash_keys_win_unittest.cc', | 275 #'breakpad/app/crash_keys_win_unittest.cc', |
274 | 276 |
275 # Precache tests need these defines. | 277 # Precache tests need these defines. |
276 #configs += [ "//components/precache/core:precache_config" ] | 278 #configs += [ "//components/precache/core:precache_config" ] |
277 | 279 |
278 if (toolkit_views) { | 280 if (toolkit_views) { |
279 # TODO(GYP) enable this as above. | 281 # TODO(GYP) enable this as above. |
280 #deps += [ "//components/constrained_window:unit_tests" ] | 282 #deps += [ "//components/constrained_window:unit_tests" ] |
281 } | 283 } |
282 if (is_win) { | 284 if (is_win) { |
283 deps += [ "//components/browser_watcher:unit_tests" ] | 285 deps += [ "//components/browser_watcher:unit_tests" ] |
284 } | 286 } |
285 } | 287 } |
| 288 |
| 289 repack("components_tests_pak") { |
| 290 sources = [ |
| 291 "$root_gen_dir/components/components_resources.pak", |
| 292 "$root_gen_dir/components/strings/components_strings_en-US.pak", |
| 293 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
| 294 "$root_gen_dir/ui/resources/webui_resources.pak", |
| 295 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
| 296 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
| 297 ] |
| 298 |
| 299 output = "$root_out_dir/components_tests_resources.pak" |
| 300 |
| 301 deps = [ |
| 302 "//components/resources", |
| 303 "//components/strings", |
| 304 "//ui/resources", |
| 305 "//ui/strings", |
| 306 ] |
| 307 } |
286 } | 308 } |
OLD | NEW |