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

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

Issue 2198143002: Componentize spellcheck [3]: move renderer/ files to component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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_tests_unit.gypi ('k') | chrome/renderer/DEPS » ('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("//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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 sources += 145 sources +=
146 rebase_path(gypi_values.chrome_renderer_webrtc_sources, ".", "..") 146 rebase_path(gypi_values.chrome_renderer_webrtc_sources, ".", "..")
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 deps += [ "//components/spellcheck/renderer:renderer" ]
156 rebase_path(gypi_values.chrome_renderer_spellchecker_sources, ".", "..")
157 deps += [ "//components/spellcheck/common:common" ]
158
159 if (!is_android) {
160 deps += [ "//third_party/hunspell" ]
161 }
162 }
163 if (!use_browser_spellchecker) {
164 sources -= [
165 "spellchecker/platform_spelling_engine.cc",
166 "spellchecker/platform_spelling_engine.h",
167 ]
168 } 156 }
169 if (enable_basic_printing || enable_print_preview) { 157 if (enable_basic_printing || enable_print_preview) {
170 deps += [ "//printing" ] 158 deps += [ "//printing" ]
171 sources += 159 sources +=
172 rebase_path(gypi_values.chrome_renderer_printing_sources, ".", "..") 160 rebase_path(gypi_values.chrome_renderer_printing_sources, ".", "..")
173 if (enable_print_preview) { 161 if (enable_print_preview) {
174 sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources, 162 sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources,
175 ".", 163 ".",
176 "..") 164 "..")
177 } 165 }
178 } 166 }
179 167
180 if (is_win) { 168 if (is_win) {
181 deps += [ "//third_party/wtl" ] 169 deps += [ "//third_party/wtl" ]
182 } 170 }
183 if (is_android) {
184 sources -= [
185 "spellchecker/hunspell_engine.cc",
186 "spellchecker/hunspell_engine.h",
187 ]
188 }
189 171
190 if (is_chromeos) { 172 if (is_chromeos) {
191 deps += [ "//chrome/renderer/leak_detector:leak_detector" ] 173 deps += [ "//chrome/renderer/leak_detector:leak_detector" ]
192 } 174 }
193 } 175 }
194 176
195 # In GYP this is part of test_support_common. 177 # In GYP this is part of test_support_common.
196 static_library("test_support") { 178 static_library("test_support") {
197 testonly = true 179 testonly = true
198 visibility = [ "//chrome/test:test_support" ] 180 visibility = [ "//chrome/test:test_support" ]
(...skipping 25 matching lines...) Expand all
224 ] 206 ]
225 } 207 }
226 208
227 if (is_android) { 209 if (is_android) {
228 sources -= [ 210 sources -= [
229 "safe_browsing/mock_feature_extractor_clock.cc", 211 "safe_browsing/mock_feature_extractor_clock.cc",
230 "safe_browsing/mock_feature_extractor_clock.h", 212 "safe_browsing/mock_feature_extractor_clock.h",
231 ] 213 ]
232 } 214 }
233 } 215 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698