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("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
11 } | 11 } |
12 | 12 |
13 declare_args() { | 13 declare_args() { |
14 content_shell_product_name = "Content Shell" | 14 content_shell_product_name = "Content Shell" |
15 | 15 |
16 # The "19" is so that sites that sniff for version think that this is | 16 # The "19" is so that sites that sniff for version think that this is |
17 # something reasonably current; the "77.34.5" is a hint that this isn't a | 17 # something reasonably current; the "77.34.5" is a hint that this isn't a |
18 # standard Chrome. | 18 # standard Chrome. |
19 content_shell_version = "19.77.34.5" | 19 content_shell_version = "19.77.34.5" |
20 } | 20 } |
21 | 21 |
22 static_library("content_shell_lib") { | 22 static_library("content_shell_lib") { |
| 23 testonly = true |
23 sources = [ | 24 sources = [ |
24 "android/shell_jni_registrar.cc", | 25 "android/shell_jni_registrar.cc", |
25 "android/shell_jni_registrar.h", | 26 "android/shell_jni_registrar.h", |
26 "android/shell_manager.cc", | 27 "android/shell_manager.cc", |
27 "android/shell_manager.h", | 28 "android/shell_manager.h", |
28 "app/paths_mac.h", | 29 "app/paths_mac.h", |
29 "app/paths_mac.mm", | 30 "app/paths_mac.mm", |
30 "app/shell_breakpad_client.cc", | 31 "app/shell_breakpad_client.cc", |
31 "app/shell_breakpad_client.h", | 32 "app/shell_breakpad_client.h", |
32 "app/shell_main_delegate.cc", | 33 "app/shell_main_delegate.cc", |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 if (is_android) { | 422 if (is_android) { |
422 output = "$root_out_dir/content_shell/assets/content_shell.pak" | 423 output = "$root_out_dir/content_shell/assets/content_shell.pak" |
423 } else { | 424 } else { |
424 sources += [ "$root_gen_dir/webkit/devtools_resources.pak" ] | 425 sources += [ "$root_gen_dir/webkit/devtools_resources.pak" ] |
425 deps += [ "//content/browser/devtools:resources" ] | 426 deps += [ "//content/browser/devtools:resources" ] |
426 output = "$root_out_dir/content_shell.pak" | 427 output = "$root_out_dir/content_shell.pak" |
427 } | 428 } |
428 } | 429 } |
429 | 430 |
430 executable("content_shell") { | 431 executable("content_shell") { |
| 432 testonly = true |
431 # TODO(GYP) mac resource bundle stuff for this target. | 433 # TODO(GYP) mac resource bundle stuff for this target. |
432 # TODO(GYP) Windows content shell settings: | 434 # TODO(GYP) Windows content shell settings: |
433 # - Manifest. | 435 # - Manifest. |
434 # - RC file. | 436 # - RC file. |
435 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', | 437 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
436 sources = [ | 438 sources = [ |
437 "../app/startup_helper_win.cc", | 439 "../app/startup_helper_win.cc", |
438 "app/shell_main.cc", | 440 "app/shell_main.cc", |
439 ] | 441 ] |
440 | 442 |
(...skipping 17 matching lines...) Expand all Loading... |
458 } | 460 } |
459 | 461 |
460 if (!is_android || !is_android_webview_build) { | 462 if (!is_android || !is_android_webview_build) { |
461 # Some tests rely on this tool. It might be nicer if these tests relied on | 463 # Some tests rely on this tool. It might be nicer if these tests relied on |
462 # image diff rather than having content shell depend on it. | 464 # image diff rather than having content shell depend on it. |
463 datadeps = [ | 465 datadeps = [ |
464 "//tools/imagediff($host_toolchain)", | 466 "//tools/imagediff($host_toolchain)", |
465 ] | 467 ] |
466 } | 468 } |
467 } | 469 } |
OLD | NEW |