| Index: ui/ozone/gl/BUILD.gn
|
| diff --git a/ui/ozone/gl/BUILD.gn b/ui/ozone/gl/BUILD.gn
|
| index a918481895a62ecc97b7dee8a911facf56bb8911..a0c0e8e82f7e59bbfc5db6b50dbea479846c95a8 100644
|
| --- a/ui/ozone/gl/BUILD.gn
|
| +++ b/ui/ozone/gl/BUILD.gn
|
| @@ -2,6 +2,15 @@
|
| # 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("//testing/test.gni")
|
| +
|
| +if (target_os == "chromeos") {
|
| + pkg_config("libdrm") {
|
| + packages = [ "libdrm" ]
|
| + }
|
| +}
|
| +
|
| component("gl") {
|
| sources = [
|
| "gl_image_ozone_native_pixmap.cc",
|
| @@ -17,3 +26,30 @@ component("gl") {
|
| "//ui/ozone:ozone_base",
|
| ]
|
| }
|
| +
|
| +test("ozone_gl_unittests") {
|
| + sources = [
|
| + "gl_image_ozone_native_pixmap_unittest.cc",
|
| + ]
|
| +
|
| + if (target_os == "chromeos" && target_cpu != "arm") {
|
| + sources += [ "gl_image_ozone_native_pixmap_drm_unittest.cc" ]
|
| + }
|
| +
|
| + deps = [
|
| + "//base/test:test_support",
|
| + "//testing/gtest",
|
| + "//ui/gfx",
|
| + "//ui/gl:run_all_unittests",
|
| + "//ui/gl:test_support",
|
| + "//ui/ozone",
|
| + ]
|
| +
|
| + if (target_os == "chromeos") {
|
| + configs += [ ":libdrm" ]
|
| + }
|
| +
|
| + data_deps = [
|
| + "//third_party/mesa:osmesa",
|
| + ]
|
| +}
|
|
|