Index: third_party/mesa/BUILD.gn |
diff --git a/third_party/mesa/BUILD.gn b/third_party/mesa/BUILD.gn |
index 5ea0f305de7b4d2ae9cb585789fe3ffe0d3a4eac..73be8e665038686ab14cc3a31b43834cec4023ab 100644 |
--- a/third_party/mesa/BUILD.gn |
+++ b/third_party/mesa/BUILD.gn |
@@ -717,8 +717,8 @@ if (!is_android) { # TODO(GYP) enable for Android. |
} |
deps = [ |
- ":mesa_headers", |
":mesa", |
+ ":mesa_headers", |
":mesa_libglslcommon", |
"//build/config/sanitizers:deps", |
] |
@@ -736,4 +736,28 @@ if (!is_android) { # TODO(GYP) enable for Android. |
group("osmesa") { |
} |
} # !is_android |
+ |
# TODO(GYP) Android osmesa_in_lib_dir target. |
+ |
+if (is_linux) { |
+ config("wayland_drm_protocol_config") { |
+ include_dirs = [ "$generated_src_dir/egl/wayland/wayland-drm" ] |
+ } |
+ |
+ source_set("wayland_drm_protocol") { |
+ sources = [ |
+ "$generated_src_dir/egl/wayland/wayland-drm/wayland-drm-client-protocol.h", |
+ "$generated_src_dir/egl/wayland/wayland-drm/wayland-drm-protocol.c", |
+ "$generated_src_dir/egl/wayland/wayland-drm/wayland-drm-server-protocol.h", |
+ ] |
+ |
+ deps = [ |
+ "//third_party/wayland:wayland_util", |
+ ] |
+ |
+ configs -= [ "//build/config/compiler:chromium_code" ] |
+ configs += [ "//build/config/compiler:no_chromium_code" ] |
+ |
+ public_configs = [ ":wayland_drm_protocol_config" ] |
+ } |
+} |