Index: third_party/wayland-protocols/BUILD.gn |
diff --git a/third_party/wayland-protocols/BUILD.gn b/third_party/wayland-protocols/BUILD.gn |
index cfbf3eb74cbbc99ef8a7b7aadfc00416f72a2624..e7660e60a9909c317e5c4db5565dc94bcf3a0f85 100644 |
--- a/third_party/wayland-protocols/BUILD.gn |
+++ b/third_party/wayland-protocols/BUILD.gn |
@@ -148,3 +148,24 @@ source_set("remote_shell_protocol") { |
public_configs = [ ":remote_shell_protocol_config" ] |
} |
+ |
+config("gamepads_protocol_config") { |
+ include_dirs = [ "include/protocol" ] |
+} |
+ |
+source_set("gamepads_protocol") { |
+ sources = [ |
+ "include/protocol/gamepads-unstable-v1-client-protocol.h", |
+ "include/protocol/gamepads-unstable-v1-server-protocol.h", |
+ "protocol/gamepads-protocol.c", |
+ ] |
+ |
+ deps = [ |
+ "//third_party/wayland:wayland_util", |
+ ] |
+ |
+ configs -= [ "//build/config/compiler:chromium_code" ] |
+ configs += [ "//build/config/compiler:no_chromium_code" ] |
+ |
+ public_configs = [ ":gamepads_protocol_config" ] |
+} |