Index: content/common/BUILD.gn |
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn |
index 25627f1d1cc6b2652f9a9981cf34228e34236f4e..d9b77616f1fb4725db870a35274d3cc7eef9a160 100644 |
--- a/content/common/BUILD.gn |
+++ b/content/common/BUILD.gn |
@@ -4,6 +4,7 @@ |
import("//build/config/features.gni") |
import("//build/config/ui.gni") |
+import("//build/config/linux/pkg_config.gni") |
import("//content/common/common.gni") |
import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
@@ -254,6 +255,18 @@ source_set("common") { |
deps += [ "//ppapi/proxy:ipc_sources" ] |
} |
+ if (ozone_platform_gbm) { |
+ defines += [ "USE_OZONE_GBM" ] |
+ sources += [ |
+ "gpu/client/gpu_memory_buffer_impl_ozone_gbm.cc", |
+ "gpu/client/gpu_memory_buffer_impl_ozone_gbm.h", |
+ ] |
+ pkg_config("libdrm") { |
+ packages = [ "libdrm" ] |
+ } |
+ public_configs = [ ":libdrm" ] |
+ } |
+ |
if (is_ios) { |
sources -= [ "user_agent.cc" ] |
assert(false, "Need to add lots of conditions here") |