diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-17 13:40:47 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-10-04 10:17:31 +0200 |
commit | 7ade185c6a6c24d940c902270521209707f56617 (patch) | |
tree | 7be4a05ae0a92aa3995e00de0a8a16e7fe2bc77d /chromium/ui | |
parent | 89708e2bb88e1778595ace32aaac8e3d06459ea2 (diff) | |
download | qtwebengine-chromium-7ade185c6a6c24d940c902270521209707f56617.tar.gz |
Do not build swiftshader when it is disabled
Change-Id: Id51f271047aa03d5480e93835c90a7b0b91bd516
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ui')
-rw-r--r-- | chromium/ui/gl/BUILD.gn | 6 | ||||
-rw-r--r-- | chromium/ui/gl/features.gni | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/chromium/ui/gl/BUILD.gn b/chromium/ui/gl/BUILD.gn index 933a9eb1d0c..1c002f7482e 100644 --- a/chromium/ui/gl/BUILD.gn +++ b/chromium/ui/gl/BUILD.gn @@ -18,8 +18,6 @@ declare_args() { enable_gpu_service_logging = false } -use_glx = use_x11 || ozone_platform_x11 - if (is_android) { import("//build/config/android/config.gni") import("//build/config/android/rules.gni") @@ -348,8 +346,10 @@ component("gl") { data_deps += [ "//third_party/angle:libEGL", "//third_party/angle:libGLESv2", - "//third_party/swiftshader", ] + if (enable_swiftshader) { + data_deps += [ "//third_party/swiftshader" ] + } } if (is_mac) { sources += [ diff --git a/chromium/ui/gl/features.gni b/chromium/ui/gl/features.gni index 9c949825fa4..5fdce595180 100644 --- a/chromium/ui/gl/features.gni +++ b/chromium/ui/gl/features.gni @@ -2,6 +2,10 @@ # 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") + import("//build/config/chromecast_build.gni") import("//build/config/chromeos/ui_mode.gni") import("//build/config/chromeos/ui_mode.gni") @@ -32,3 +36,5 @@ declare_args() { target_cpu == "arm" || target_cpu == "arm64" || target_cpu == "mipsel" || target_cpu == "mips64el") } + +use_glx = use_x11 || ozone_platform_x11 |