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

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

Issue 2166683003: Componentize spellcheck [1]: create component and move switches there. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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("//build/gypi_to_gn.py", 8 gypi_values = exec_script("//build/gypi_to_gn.py",
9 [ rebase_path("../chrome_renderer.gypi") ], 9 [ rebase_path("../chrome_renderer.gypi") ],
10 "scope", 10 "scope",
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 if (enable_extensions && enable_webrtc) { 148 if (enable_extensions && enable_webrtc) {
149 sources += 149 sources +=
150 rebase_path(gypi_values.chrome_renderer_webrtc_extensions_sources, 150 rebase_path(gypi_values.chrome_renderer_webrtc_extensions_sources,
151 ".", 151 ".",
152 "..") 152 "..")
153 } 153 }
154 if (enable_spellcheck) { 154 if (enable_spellcheck) {
155 sources += 155 sources +=
156 rebase_path(gypi_values.chrome_renderer_spellchecker_sources, ".", "..") 156 rebase_path(gypi_values.chrome_renderer_spellchecker_sources, ".", "..")
157 deps += [ "//components/spellcheck/common:common" ]
158
157 if (!is_android) { 159 if (!is_android) {
158 deps += [ "//third_party/hunspell" ] 160 deps += [ "//third_party/hunspell" ]
159 } 161 }
160 } 162 }
161 if (!use_browser_spellchecker) { 163 if (!use_browser_spellchecker) {
162 sources -= [ 164 sources -= [
163 "spellchecker/platform_spelling_engine.cc", 165 "spellchecker/platform_spelling_engine.cc",
164 "spellchecker/platform_spelling_engine.h", 166 "spellchecker/platform_spelling_engine.h",
165 ] 167 ]
166 } 168 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 ] 220 ]
219 } 221 }
220 222
221 if (is_android) { 223 if (is_android) {
222 sources -= [ 224 sources -= [
223 "safe_browsing/mock_feature_extractor_clock.cc", 225 "safe_browsing/mock_feature_extractor_clock.cc",
224 "safe_browsing/mock_feature_extractor_clock.h", 226 "safe_browsing/mock_feature_extractor_clock.h",
225 ] 227 ]
226 } 228 }
227 } 229 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698