features.gni 682 B

123456789101112131415161718
  1. # Copyright 2017 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/ui.gni")
  5. # Features used by targets inside and outside of |gpu/vulkan|.
  6. # For details see declare_args() in build/config/BUILDCONFIG.gn.
  7. declare_args() {
  8. # Enable experimental vulkan backend.
  9. enable_vulkan =
  10. is_linux || is_chromeos || is_android || is_fuchsia || is_win || is_apple
  11. # Enable swiftshader vulkan. Disabling it can save build time, however
  12. # --use-vulkan=swiftshader and some tests which use swiftshader vulkan will
  13. # not work.
  14. enable_swiftshader_vulkan = true
  15. }