| 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/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 | 8 |
| 9 gypi_values = exec_script( | 9 gypi_values = exec_script( |
| 10 "//build/gypi_to_gn.py", | 10 "//build/gypi_to_gn.py", |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ".", "//chrome") | 157 ".", "//chrome") |
| 158 deps += [ "//components/policy" ] | 158 deps += [ "//components/policy" ] |
| 159 } | 159 } |
| 160 if (enable_plugins) { | 160 if (enable_plugins) { |
| 161 sources += rebase_path(gypi_values.chrome_browser_ui_plugin_sources, | 161 sources += rebase_path(gypi_values.chrome_browser_ui_plugin_sources, |
| 162 ".", "//chrome") | 162 ".", "//chrome") |
| 163 deps += [ "//ppapi:ppapi_ipc" ] | 163 deps += [ "//ppapi:ppapi_ipc" ] |
| 164 } | 164 } |
| 165 if (safe_browsing_mode == 1) { | 165 if (safe_browsing_mode == 1) { |
| 166 defines += [ "FULL_SAFE_BROWSING" ] | 166 defines += [ "FULL_SAFE_BROWSING" ] |
| 167 defines += [ "SAFE_BROWSING_CSD" ] |
| 168 defines += [ "SAFE_BROWSING_DATABASE" ] |
| 169 defines += [ "SAFE_BROWSING_SERVICE" ] |
| 167 deps += [ | 170 deps += [ |
| 168 "//chrome/browser/safe_browsing:chunk_proto", | 171 "//chrome/browser/safe_browsing:chunk_proto", |
| 169 "//chrome/common/safe_browsing:proto", | 172 "//chrome/common/safe_browsing:proto", |
| 170 "//chrome/browser/safe_browsing:report_proto", | 173 "//chrome/browser/safe_browsing:report_proto", |
| 171 ] | 174 ] |
| 175 } else if (safe_browsing_mode == 2) { |
| 176 defines += [ "MOBILE_SAFE_BROWSING" ] |
| 177 defines += [ "SAFE_BROWSING_SERVICE" ] |
| 172 } | 178 } |
| 173 if (is_chromeos) { | 179 if (is_chromeos) { |
| 174 sources += rebase_path(gypi_values.chrome_browser_ui_chromeos_sources, | 180 sources += rebase_path(gypi_values.chrome_browser_ui_chromeos_sources, |
| 175 ".", "//chrome") | 181 ".", "//chrome") |
| 176 deps += [ | 182 deps += [ |
| 177 #"browser_chromeos", TODO(GYP) | 183 #"browser_chromeos", TODO(GYP) |
| 178 ] | 184 ] |
| 179 } else { | 185 } else { |
| 180 sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources, | 186 sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources, |
| 181 ".", "//chrome") | 187 ".", "//chrome") |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 } | 418 } |
| 413 if (enable_service_discovery) { | 419 if (enable_service_discovery) { |
| 414 sources += rebase_path( | 420 sources += rebase_path( |
| 415 gypi_values.chrome_browser_ui_service_discovery_sources, | 421 gypi_values.chrome_browser_ui_service_discovery_sources, |
| 416 ".", "//chrome") | 422 ".", "//chrome") |
| 417 } | 423 } |
| 418 if (enable_spellcheck) { | 424 if (enable_spellcheck) { |
| 419 deps += [ "//third_party/hunspell" ] | 425 deps += [ "//third_party/hunspell" ] |
| 420 } | 426 } |
| 421 } | 427 } |
| OLD | NEW |