Index: content/common/BUILD.gn |
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn |
index 25bb75168a4d04ce1e1bdac578287a3f01f2498d..4a7a917153f2c9279b54945dfa5a91fb3cdfc9d1 100644 |
--- a/content/common/BUILD.gn |
+++ b/content/common/BUILD.gn |
@@ -238,6 +238,18 @@ source_set("common") { |
libs += [ "android" ] |
} |
+ if (ozone_platform_gbm == 1 && |
+ (current_cpu == "x86" || current_cpu == "x64")) { |
+ defines += [ "USE_OZONE_GBM_INTEL" ] |
+ sources += [ |
+ "gpu/client/gpu_memory_buffer_impl_ozone_gbm_intel.cc", |
+ "gpu/client/gpu_memory_buffer_impl_ozone_gbm_intel.h", |
+ ] |
+ pkg_config("libdrm_intel") { |
+ packages = [ "libdrm_intel" ] |
+ } |
+ } |
+ |
if (is_ios) { |
sources -= [ "user_agent.cc" ] |
assert(false, "Need to add lots of conditions here") |