Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: chrome/renderer/BUILD.gn

Issue 578483002: Cleanup: Only build extensions renderer code when extensions are enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
7 7
8 gypi_values = exec_script( 8 gypi_values = exec_script(
9 "//build/gypi_to_gn.py", 9 "//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_renderer.gypi") ], 10 [ rebase_path("../chrome_renderer.gypi") ],
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 "//components/startup_metric_utils", 44 "//components/startup_metric_utils",
45 "//components/translate/content/renderer", 45 "//components/translate/content/renderer",
46 "//components/translate/core/common", 46 "//components/translate/core/common",
47 "//components/translate/core/language_detection", 47 "//components/translate/core/language_detection",
48 "//components/visitedlink/renderer", 48 "//components/visitedlink/renderer",
49 "//components/web_cache/renderer", 49 "//components/web_cache/renderer",
50 "//content/app/resources", 50 "//content/app/resources",
51 "//content/app/strings", 51 "//content/app/strings",
52 "//content/public/renderer", 52 "//content/public/renderer",
53 "//extensions:extensions_resources", 53 "//extensions:extensions_resources",
54 "//extensions/renderer",
55 "//media/cast:net", 54 "//media/cast:net",
56 "//media/cast:sender", 55 "//media/cast:sender",
57 "//media/cast/logging/proto", 56 "//media/cast/logging/proto",
58 "//net", 57 "//net",
59 "//skia", 58 "//skia",
60 "//storage/common", 59 "//storage/common",
61 "//third_party/WebKit/public:blink", 60 "//third_party/WebKit/public:blink",
62 "//third_party/WebKit/public:resources", 61 "//third_party/WebKit/public:resources",
63 "//third_party/icu", 62 "//third_party/icu",
64 "//third_party/npapi", 63 "//third_party/npapi",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 if (safe_browsing_mode == 2) { 100 if (safe_browsing_mode == 2) {
102 sources += rebase_path( 101 sources += rebase_path(
103 gypi_values.chrome_renderer_basic_safe_browsing_sources, 102 gypi_values.chrome_renderer_basic_safe_browsing_sources,
104 ".", "..") 103 ".", "..")
105 defines += [ "MOBILE_SAFE_BROWSING" ] 104 defines += [ "MOBILE_SAFE_BROWSING" ]
106 } 105 }
107 106
108 if (enable_extensions) { 107 if (enable_extensions) {
109 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources, 108 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources,
110 ".", "..") 109 ".", "..")
110 deps += [ "//extensions/renderer" ]
111 } 111 }
112 if (enable_webrtc) { 112 if (enable_webrtc) {
113 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources, 113 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources,
114 ".", "..") 114 ".", "..")
115 } 115 }
116 if (enable_extensions && enable_webrtc) { 116 if (enable_extensions && enable_webrtc) {
117 sources += rebase_path( 117 sources += rebase_path(
118 gypi_values.chrome_renderer_webrtc_extensions_sources, ".", "..") 118 gypi_values.chrome_renderer_webrtc_extensions_sources, ".", "..")
119 } 119 }
120 if (enable_spellcheck) { 120 if (enable_spellcheck) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 ] 191 ]
192 } 192 }
193 193
194 if (enable_webrtc) { 194 if (enable_webrtc) {
195 sources += [ 195 sources += [
196 "media/mock_webrtc_logging_message_filter.cc", 196 "media/mock_webrtc_logging_message_filter.cc",
197 "media/mock_webrtc_logging_message_filter.h", 197 "media/mock_webrtc_logging_message_filter.h",
198 ] 198 ]
199 } 199 }
200 } 200 }
OLDNEW
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698