| 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("//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 Loading... |
| 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/renderer" ] |
| 157 if (!is_android) { | 158 if (!is_android) { |
| 158 deps += [ "//third_party/hunspell" ] | 159 deps += [ "//third_party/hunspell" ] |
| 159 } | 160 } |
| 160 } | 161 } |
| 161 if (!use_browser_spellchecker) { | 162 if (!use_browser_spellchecker) { |
| 162 sources -= [ | 163 sources -= [ |
| 163 "spellchecker/platform_spelling_engine.cc", | 164 "spellchecker/platform_spelling_engine.cc", |
| 164 "spellchecker/platform_spelling_engine.h", | 165 "spellchecker/platform_spelling_engine.h", |
| 165 ] | 166 ] |
| 166 } | 167 } |
| 167 if (enable_basic_printing || enable_print_preview) { | 168 if (enable_basic_printing || enable_print_preview) { |
| 168 deps += [ "//printing" ] | 169 deps += [ "//printing" ] |
| 169 sources += | 170 sources += |
| 170 rebase_path(gypi_values.chrome_renderer_printing_sources, ".", "..") | 171 rebase_path(gypi_values.chrome_renderer_printing_sources, ".", "..") |
| 171 if (enable_print_preview) { | 172 if (enable_print_preview) { |
| 172 sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources, | 173 sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources, |
| 173 ".", | 174 ".", |
| 174 "..") | 175 "..") |
| 175 } | 176 } |
| 176 } | 177 } |
| 177 | 178 |
| 178 if (is_win) { | 179 if (is_win) { |
| 179 deps += [ "//third_party/wtl" ] | 180 deps += [ "//third_party/wtl" ] |
| 180 } | 181 } |
| 181 if (is_android) { | 182 # if (is_android) { |
| 182 sources -= [ | 183 # sources -= [ |
| 183 "spellchecker/hunspell_engine.cc", | 184 # "spellchecker/hunspell_engine.cc", |
| 184 "spellchecker/hunspell_engine.h", | 185 # "spellchecker/hunspell_engine.h", |
| 185 ] | 186 # ] |
| 186 } | 187 # } |
| 187 } | 188 } |
| 188 | 189 |
| 189 # In GYP this is part of test_support_common. | 190 # In GYP this is part of test_support_common. |
| 190 static_library("test_support") { | 191 static_library("test_support") { |
| 191 testonly = true | 192 testonly = true |
| 192 visibility = [ "//chrome/test:test_support" ] | 193 visibility = [ "//chrome/test:test_support" ] |
| 193 | 194 |
| 194 sources = [ | 195 sources = [ |
| 195 "chrome_mock_render_thread.cc", | 196 "chrome_mock_render_thread.cc", |
| 196 "chrome_mock_render_thread.h", | 197 "chrome_mock_render_thread.h", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 218 ] | 219 ] |
| 219 } | 220 } |
| 220 | 221 |
| 221 if (is_android) { | 222 if (is_android) { |
| 222 sources -= [ | 223 sources -= [ |
| 223 "safe_browsing/mock_feature_extractor_clock.cc", | 224 "safe_browsing/mock_feature_extractor_clock.cc", |
| 224 "safe_browsing/mock_feature_extractor_clock.h", | 225 "safe_browsing/mock_feature_extractor_clock.h", |
| 225 ] | 226 ] |
| 226 } | 227 } |
| 227 } | 228 } |
| OLD | NEW |