features.gni 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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
  3. # found in the LICENSE file.
  4. # =============================================
  5. # PLEASE DO NOT ADD MORE FLAGS TO THIS FILE
  6. # =============================================
  7. #
  8. # These flags are effectively global. Your feature flag should go near the
  9. # code it controls. Most of these items are here now because they control
  10. # legacy global #defines passed to the compiler (now replaced with generated
  11. # buildflag headers -- see //build/buildflag_header.gni).
  12. #
  13. # There is more advice on where to put build flags in the "Build flag" section
  14. # of //build/config/BUILDCONFIG.gn.
  15. import("//build/config/chrome_build.gni")
  16. import("//build/config/chromecast_build.gni")
  17. declare_args() {
  18. # Enables proprietary codecs and demuxers; e.g. H264, AAC, MP3, and MP4.
  19. # We always build Google Chrome and Chromecast with proprietary codecs.
  20. #
  21. # Note: this flag is used by WebRTC which is DEPSed into Chrome. Moving it
  22. # out of //build will require using the build_overrides directory.
  23. #
  24. # Do not add any other conditions to the following line.
  25. #
  26. # TODO(crbug.com/1314528): Remove chromecast-related conditions and force
  27. # builds to explicitly specify this.
  28. proprietary_codecs = is_chrome_branded || is_castos || is_cast_android
  29. # libudev usage. This currently only affects the content layer.
  30. use_udev = (is_linux && !is_castos) || is_chromeos
  31. use_dbus = is_linux || is_chromeos
  32. use_gio = is_linux && !is_castos
  33. }
  34. #
  35. # =============================================
  36. # PLEASE DO NOT ADD MORE FLAGS TO THIS FILE
  37. # =============================================
  38. #
  39. # See comment at the top.