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/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//build/config/win/manifest.gni") | 8 import("//build/config/win/manifest.gni") |
9 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
11 if (is_android) { | 11 if (is_android) { |
12 import("//build/config/android/config.gni") | 12 import("//build/config/android/config.gni") |
13 } | 13 } |
14 | 14 |
15 declare_args() { | 15 declare_args() { |
16 content_shell_product_name = "Content Shell" | 16 content_shell_product_name = "Content Shell" |
17 | 17 |
18 # The "19" is so that sites that sniff for version think that this is | 18 # The "19" is so that sites that sniff for version think that this is |
19 # something reasonably current; the "77.34.5" is a hint that this isn't a | 19 # something reasonably current; the "77.34.5" is a hint that this isn't a |
20 # standard Chrome. | 20 # standard Chrome. |
21 content_shell_version = "19.77.34.5" | 21 content_shell_version = "19.77.34.5" |
22 | |
23 use_custom_freetype = is_linux && !is_chromecast | |
Dirk Pranke
2015/09/16 22:19:04
Does this really need to be in declare_args() ? If
slan
2015/09/17 15:04:07
Removed.
| |
22 } | 24 } |
23 | 25 |
24 static_library("content_shell_lib") { | 26 static_library("content_shell_lib") { |
25 testonly = true | 27 testonly = true |
26 sources = [ | 28 sources = [ |
27 "android/shell_jni_registrar.cc", | 29 "android/shell_jni_registrar.cc", |
28 "android/shell_jni_registrar.h", | 30 "android/shell_jni_registrar.h", |
29 "android/shell_manager.cc", | 31 "android/shell_manager.cc", |
30 "android/shell_manager.h", | 32 "android/shell_manager.h", |
31 "app/blink_test_platform_support.h", | 33 "app/blink_test_platform_support.h", |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
307 #deps -= [ 'copy_test_netscape_plugin' ] TODO(GYP) | 309 #deps -= [ 'copy_test_netscape_plugin' ] TODO(GYP) |
308 } | 310 } |
309 | 311 |
310 if (is_chromeos) { | 312 if (is_chromeos) { |
311 deps += [ | 313 deps += [ |
312 "//chromeos", | 314 "//chromeos", |
313 "//ui/wm:test_support", | 315 "//ui/wm:test_support", |
314 ] | 316 ] |
315 } | 317 } |
316 | 318 |
317 if (is_linux) { | 319 if (use_custom_freetype) { |
318 deps += [ "//third_party/freetype2" ] | 320 deps += [ "//third_party/freetype2" ] |
319 } | 321 } |
320 | 322 |
321 if (!enable_plugins) { | 323 if (!enable_plugins) { |
322 sources -= [ | 324 sources -= [ |
323 "browser/shell_plugin_service_filter.cc", | 325 "browser/shell_plugin_service_filter.cc", |
324 "browser/shell_plugin_service_filter.h", | 326 "browser/shell_plugin_service_filter.h", |
325 ] | 327 ] |
326 } | 328 } |
327 } | 329 } |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
458 deps = [ | 460 deps = [ |
459 "//base", | 461 "//base", |
460 "//build/config/sanitizers:deps", | 462 "//build/config/sanitizers:deps", |
461 "//components/crash/tools:crash_service", | 463 "//components/crash/tools:crash_service", |
462 ] | 464 ] |
463 | 465 |
464 configs -= [ "//build/config/win:console" ] | 466 configs -= [ "//build/config/win:console" ] |
465 configs += [ "//build/config/win:windowed" ] | 467 configs += [ "//build/config/win:windowed" ] |
466 } | 468 } |
467 } | 469 } |
OLD | NEW |