| Index: ui/gfx/BUILD.gn
|
| diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
|
| index 1e31c6af66fc53354a6d5f806f5a29815e4d0c8f..1293f85ee5511258bcb2e61704b8d6e17180fce3 100644
|
| --- a/ui/gfx/BUILD.gn
|
| +++ b/ui/gfx/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")
|
| import("//testing/libfuzzer/fuzzer_test.gni")
|
| @@ -11,6 +12,12 @@ if (is_android) {
|
| import("//build/config/android/rules.gni")
|
| }
|
|
|
| +if (is_linux) {
|
| + pkg_config("libdrm") {
|
| + packages = [ "libdrm" ]
|
| + }
|
| +}
|
| +
|
| # Several targets want to include this header file, and some of them are
|
| # child dependencies of "gfx". Therefore, we separate it out here so multiple
|
| # targets can all have a dependency for header checking purposes without
|
| @@ -557,6 +564,21 @@ source_set("memory_buffer_sources") {
|
| "//base",
|
| "//ui/gfx/geometry",
|
| ]
|
| +
|
| + if (is_linux) {
|
| + sources += [
|
| + "linux/client_native_pixmap_dmabuf.cc",
|
| + "linux/client_native_pixmap_dmabuf.h",
|
| + "linux/client_native_pixmap_factory_dmabuf.cc",
|
| + "linux/client_native_pixmap_factory_dmabuf.h",
|
| + ]
|
| +
|
| + if (use_sysroot || use_ozone) {
|
| + deps += [ "//third_party/libdrm" ]
|
| + } else {
|
| + configs += [ ":libdrm" ]
|
| + }
|
| + }
|
| }
|
|
|
| static_library("test_support") {
|
|
|