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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/util/process_version.gni") | 6 import("//build/util/process_version.gni") |
7 import("//chrome/common/features.gni") | 7 import("//chrome/common/features.gni") |
8 import("//chrome/process_version_rc_template.gni") # For branding_file_path. | 8 import("//chrome/process_version_rc_template.gni") # For branding_file_path. |
9 import("//mojo/public/tools/bindings/mojom.gni") | 9 import("//mojo/public/tools/bindings/mojom.gni") |
10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
11 | 11 |
12 grit("resources") { | 12 grit("resources") { |
13 source = "common_resources.grd" | 13 source = "common_resources.grd" |
14 use_qualified_include = true | 14 use_qualified_include = true |
15 output_dir = "$root_gen_dir/chrome" | 15 output_dir = "$root_gen_dir/chrome" |
16 output_name = "common_resources" | 16 output_name = "common_resources" |
17 outputs = [ | 17 outputs = [ |
18 "grit/common_resources.h", | 18 "grit/common_resources.h", |
19 "common_resources.pak", | 19 "common_resources.pak", |
20 ] | 20 ] |
21 } | 21 } |
22 | 22 |
23 buildflag_header("features") { | 23 buildflag_header("features") { |
24 header = "features.h" | 24 header = "features.h" |
25 flags = [ | 25 flags = [ |
26 "ANDROID_JAVA_UI=$android_java_ui", | 26 "ANDROID_JAVA_UI=$android_java_ui", |
27 "ENABLE_BACKGROUND=$enable_background", | 27 "ENABLE_BACKGROUND=$enable_background", |
28 "ENABLE_BASIC_PRINT_DIALOG=$enable_basic_print_dialog", | 28 "ENABLE_BASIC_PRINT_DIALOG=$enable_basic_print_dialog", |
| 29 "ENABLE_CAPTIVE_PORTAL_DETECTION=$enable_captive_portal_detection", |
29 "ENABLE_GOOGLE_NOW=$enable_google_now", | 30 "ENABLE_GOOGLE_NOW=$enable_google_now", |
| 31 "ENABLE_HANGOUT_SERVICES_EXTENSION=$enable_hangout_services_extension", |
30 "ENABLE_ONE_CLICK_SIGNIN=$enable_one_click_signin", | 32 "ENABLE_ONE_CLICK_SIGNIN=$enable_one_click_signin", |
31 "ENABLE_PACKAGE_MASH_SERVICES=$enable_package_mash_services", | 33 "ENABLE_PACKAGE_MASH_SERVICES=$enable_package_mash_services", |
| 34 "ENABLE_PLUGIN_INSTALLATION=$enable_plugin_installation", |
32 "ENABLE_SERVICE_DISCOVERY=$enable_service_discovery", | 35 "ENABLE_SERVICE_DISCOVERY=$enable_service_discovery", |
33 "ENABLE_XPC_NOTIFICATIONS=$enable_xpc_notifications", | 36 "ENABLE_XPC_NOTIFICATIONS=$enable_xpc_notifications", |
34 "PGO_BUILD=$pgo_build", | 37 "PGO_BUILD=$pgo_build", |
35 "USE_VULCANIZE=$use_vulcanize", | 38 "USE_VULCANIZE=$use_vulcanize", |
36 ] | 39 ] |
37 } | 40 } |
38 | 41 |
39 # Use a static library here because many test binaries depend on this but don't | 42 # Use a static library here because many test binaries depend on this but don't |
40 # require many files from it. This makes linking more efficient. | 43 # require many files from it. This makes linking more efficient. |
41 static_library("common") { | 44 static_library("common") { |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 "chrome_switches.h", | 564 "chrome_switches.h", |
562 "env_vars.cc", | 565 "env_vars.cc", |
563 "env_vars.h", | 566 "env_vars.h", |
564 "pref_font_script_names-inl.h", | 567 "pref_font_script_names-inl.h", |
565 "pref_font_webkit_names.h", | 568 "pref_font_webkit_names.h", |
566 "pref_names.cc", | 569 "pref_names.cc", |
567 "pref_names.h", | 570 "pref_names.h", |
568 ] | 571 ] |
569 | 572 |
570 public_deps = [ | 573 public_deps = [ |
| 574 ":features", |
571 "//content/public/common:result_codes", | 575 "//content/public/common:result_codes", |
572 ] | 576 ] |
573 deps = [ | 577 deps = [ |
574 ":features", | |
575 ":version_header", | 578 ":version_header", |
576 "//base", | 579 "//base", |
577 "//base/third_party/dynamic_annotations", | 580 "//base/third_party/dynamic_annotations", |
578 "//components/bookmarks/common", | 581 "//components/bookmarks/common", |
579 "//components/nacl/common:switches", | 582 "//components/nacl/common:switches", |
580 "//media:cdm_paths", # Needed by chrome_paths.cc. | 583 "//media:cdm_paths", # Needed by chrome_paths.cc. |
581 "//third_party/widevine/cdm:version_h", | 584 "//third_party/widevine/cdm:version_h", |
582 ] | 585 ] |
583 | 586 |
584 if (is_android) { | 587 if (is_android) { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 "shell_handler_win.mojom", | 671 "shell_handler_win.mojom", |
669 ] | 672 ] |
670 | 673 |
671 public_deps = [ | 674 public_deps = [ |
672 "//skia/public/interfaces", | 675 "//skia/public/interfaces", |
673 "//url/mojo:url_mojom_gurl", | 676 "//url/mojo:url_mojom_gurl", |
674 ] | 677 ] |
675 | 678 |
676 use_new_wrapper_types = false | 679 use_new_wrapper_types = false |
677 } | 680 } |
OLD | NEW |