summaryrefslogtreecommitdiff
path: root/chromium/ui/gl/features.gni
blob: dc7a02921a2596d53268c46e4753216a6546082c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/chrome_build.gni")
import("//build/config/ui.gni")
import("//ui/ozone/ozone.gni")

declare_args() {
  # Whether ANGLE should be linked statically
  # False by default, enabling currently supported only on Android
  use_static_angle = false

  # Should EGL support be compiled. Can be overriden to test during bring up
  # of EGL support on other platforms
  use_egl = is_win || is_android || is_linux || is_fuchsia
}

declare_args() {
  enable_swiftshader =
      (is_win || (is_linux && use_x11) || (is_mac && use_egl) ||
       (is_chromeos && ozone_platform_x11)) &&
      (target_cpu == "x86" || target_cpu == "x64")
}

use_glx = use_x11 || ozone_platform_x11