Index: media/BUILD.gn |
diff --git a/media/BUILD.gn b/media/BUILD.gn |
index 9914df259c6bdced2994f01bda9e9fbcda0a02bc..27ef3aaa4cfc5971d0ed1a95272fa90f815c8cf6 100644 |
--- a/media/BUILD.gn |
+++ b/media/BUILD.gn |
@@ -792,3 +792,34 @@ if (media_use_ffmpeg) { |
] |
} |
} |
+ |
+if (use_x11) { |
+ executable("player_x11") { |
+ sources = [ |
+ "tools/player_x11/data_source_logger.cc", |
+ "tools/player_x11/data_source_logger.h", |
+ "tools/player_x11/gl_video_renderer.cc", |
+ "tools/player_x11/gl_video_renderer.h", |
+ "tools/player_x11/player_x11.cc", |
+ "tools/player_x11/x11_video_renderer.cc", |
+ "tools/player_x11/x11_video_renderer.h", |
+ ] |
+ configs += [ |
+ ":media_config", |
+ "//build/config/linux:x11", |
+ "//build/config/linux:xext", |
+ |
+ # TODO(ajwong): Why does xext get a separate thing in //build/config/linux:BUILD.gn |
+ # "//build/config/linux:xrender", |
+ ] |
+ deps = [ |
+ ":media", |
+ ":shared_memory_support", |
+ "//base", |
+ "//tools/xdisplaycheck", |
+ "//ui/gl", |
+ "//ui/gfx", |
+ "//ui/gfx/geometry", |
+ ] |
+ } |
+} |