Chromium Code Reviews| Index: ui/gfx/BUILD.gn |
| diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn |
| index 59a5b8b39bc5c602f7952a2406eb4baad9f38cb0..27a3d01751fc2606c99198018378d31d2d50ef74 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" ] |
|
spang
2017/03/15 15:40:32
+phajdan
Is linking this unconditionally into the
|
| + } |
| +} |
| + |
| # 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 |
| @@ -555,6 +562,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" ] |
|
spang
2017/03/15 15:40:32
I think this conditional should be removed and jus
Julien Isorce
2017/03/21 17:59:54
Done, thx.
|
| + } else { |
| + configs += [ ":libdrm" ] |
| + } |
| + } |
| } |
| static_library("test_support") { |