buildflags.gni 721 B

12345678910111213141516171819202122
  1. # Copyright 2019 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/chromecast_build.gni")
  5. if (is_android) {
  6. import("//build/config/android/config.gni")
  7. }
  8. declare_args() {
  9. # Variable safe_browsing is used to control the build time configuration for
  10. # safe browsing feature. Safe browsing can be compiled in 3 different levels:
  11. # 0 disables it, 1 enables it fully, and 2 enables mobile protection via an
  12. # external API.
  13. if (is_ios || is_castos || is_cast_android) {
  14. safe_browsing_mode = 0
  15. } else if (is_android) {
  16. safe_browsing_mode = 2
  17. } else {
  18. safe_browsing_mode = 1
  19. }
  20. }