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

Unified Diff: ui/gfx/BUILD.gn

Issue 2711933002: Rename ClientNativePixmapFactoryGbm to ClientNativePixmapFactoryDmabuf amd move to ui/gfx (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « no previous file | ui/gfx/linux/client_native_pixmap_dmabuf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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") {
« no previous file with comments | « no previous file | ui/gfx/linux/client_native_pixmap_dmabuf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698