Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: ui/gfx/BUILD.gn

Issue 2711933002: Rename ClientNativePixmapFactoryGbm to ClientNativePixmapFactoryDmabuf amd move to ui/gfx (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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") {
« no previous file with comments | « no previous file | ui/gfx/linux/client_native_pixmap_dmabuf.h » ('j') | ui/gfx/linux/client_native_pixmap_dmabuf.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698