| Index: ui/gl/BUILD.gn
|
| diff --git a/ui/gl/BUILD.gn b/ui/gl/BUILD.gn
|
| index 159a5b75463ea017eb2616d5acf222b56f87e667..0ebc68167d9f54aaafb01b0bb9f74ffef7a22b9e 100644
|
| --- a/ui/gl/BUILD.gn
|
| +++ b/ui/gl/BUILD.gn
|
| @@ -2,6 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("//build/config/linux/pkg_config.gni")
|
| import("//build/config/ui.gni")
|
| import("//testing/test.gni")
|
|
|
| @@ -13,6 +14,12 @@ if (is_android) {
|
| import("//build/config/android/rules.gni")
|
| }
|
|
|
| +if (is_chromeos) {
|
| + pkg_config("libdrm") {
|
| + packages = [ "libdrm" ]
|
| + }
|
| +}
|
| +
|
| config("gl_config") {
|
| defines = []
|
| if (use_glx) {
|
| @@ -350,6 +357,9 @@ test("gl_unittests") {
|
|
|
| if (use_ozone) {
|
| sources += [ "gl_image_ozone_native_pixmap_unittest.cc" ]
|
| + if (is_chromeos && target_cpu != "arm") {
|
| + sources += [ "gl_image_ozone_native_pixmap_drm_unittest.cc" ]
|
| + }
|
| }
|
|
|
| if (is_mac) {
|
| @@ -376,6 +386,10 @@ test("gl_unittests") {
|
| "//ui/gl/init",
|
| ]
|
|
|
| + if (is_chromeos) {
|
| + configs += [ ":libdrm" ]
|
| + }
|
| +
|
| data_deps = [
|
| "//third_party/mesa:osmesa",
|
| ]
|
|
|