summaryrefslogtreecommitdiff
path: root/chromium/ui/ozone/platform/wayland/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/ozone/platform/wayland/BUILD.gn')
-rw-r--r--chromium/ui/ozone/platform/wayland/BUILD.gn40
1 files changed, 33 insertions, 7 deletions
diff --git a/chromium/ui/ozone/platform/wayland/BUILD.gn b/chromium/ui/ozone/platform/wayland/BUILD.gn
index 37e7ffb5d83..cb2257c898b 100644
--- a/chromium/ui/ozone/platform/wayland/BUILD.gn
+++ b/chromium/ui/ozone/platform/wayland/BUILD.gn
@@ -4,6 +4,7 @@
visibility = [ "//ui/ozone/*" ]
+import("//build/config/linux/gtk/gtk.gni")
import("//build/config/linux/pkg_config.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
import("//ui/ozone/platform/wayland/wayland.gni")
@@ -22,6 +23,8 @@ source_set("wayland") {
"common/wayland_util.h",
"gpu/drm_render_node_path_finder.cc",
"gpu/drm_render_node_path_finder.h",
+ "gpu/gl_surface_egl_readback_wayland.cc",
+ "gpu/gl_surface_egl_readback_wayland.h",
"gpu/gl_surface_wayland.cc",
"gpu/gl_surface_wayland.h",
"gpu/wayland_buffer_manager_gpu.cc",
@@ -45,6 +48,8 @@ source_set("wayland") {
"host/internal/wayland_data_offer_base.h",
"host/internal/wayland_data_source_base.cc",
"host/internal/wayland_data_source_base.h",
+ "host/shell_object_factory.cc",
+ "host/shell_object_factory.h",
"host/shell_popup_wrapper.cc",
"host/shell_popup_wrapper.h",
"host/shell_surface_wrapper.cc",
@@ -83,16 +88,23 @@ source_set("wayland") {
"host/wayland_output_manager.h",
"host/wayland_pointer.cc",
"host/wayland_pointer.h",
+ "host/wayland_popup.cc",
+ "host/wayland_popup.h",
"host/wayland_screen.cc",
"host/wayland_screen.h",
"host/wayland_shm.cc",
"host/wayland_shm.h",
"host/wayland_shm_buffer.cc",
"host/wayland_shm_buffer.h",
+ "host/wayland_subsurface.cc",
+ "host/wayland_subsurface.h",
+ "host/wayland_surface.cc",
+ "host/wayland_surface.h",
"host/wayland_touch.cc",
"host/wayland_touch.h",
"host/wayland_window.cc",
"host/wayland_window.h",
+ "host/wayland_window_factory.cc",
"host/wayland_window_manager.cc",
"host/wayland_window_manager.h",
"host/wayland_window_observer.cc",
@@ -141,9 +153,9 @@ source_set("wayland") {
"//ui/gfx",
"//ui/gfx:memory_buffer",
"//ui/gfx/geometry",
+ "//ui/gfx/linux:drm",
"//ui/ozone:ozone_base",
"//ui/ozone/common",
- "//ui/ozone/common/linux:drm",
"//ui/ozone/public/mojom/wayland:wayland_mojom",
"//ui/platform_window",
"//ui/platform_window/platform_window_handler",
@@ -153,6 +165,17 @@ source_set("wayland") {
deps += [ "//ui/base/ime/linux" ]
}
+ if (use_gtk) {
+ sources += [
+ "host/gtk_ui_delegate_wayland.cc",
+ "host/gtk_ui_delegate_wayland.h",
+ ]
+ deps += [
+ "//build/config/linux/gtk",
+ "//ui/gtk:gtk_ui_delegate",
+ ]
+ }
+
defines = [ "OZONE_IMPLEMENTATION" ]
if (use_wayland_gbm) {
@@ -169,10 +192,14 @@ source_set("wayland") {
deps += [
"//third_party/minigbm",
"//ui/gfx:memory_buffer",
- "//ui/ozone/common/linux:gbm",
+ "//ui/gfx/linux:gbm",
]
}
+ if (use_bundled_weston) {
+ data_deps = [ "//third_party/weston" ]
+ }
+
configs += [
":wayland-egl",
"//third_party/khronos:khronos_headers",
@@ -292,10 +319,11 @@ source_set("wayland_unittests") {
"//ui/base:buildflags",
"//ui/base/ime/linux",
"//ui/events/ozone/layout",
+ "//ui/gfx/linux:drm",
+ "//ui/gfx/linux:gbm",
+ "//ui/gfx/linux:test_support",
"//ui/ozone:platform",
"//ui/ozone:test_support",
- "//ui/ozone/common/linux:drm",
- "//ui/ozone/common/linux:gbm",
"//ui/platform_window/platform_window_handler",
]
@@ -312,9 +340,7 @@ source_set("wayland_unittests") {
fuzzer_test("wayland_buffer_fuzzer") {
defines = [ "WL_HIDE_DEPRECATED" ]
- sources = [
- "fuzzer/wayland_buffer_fuzzer.cc",
- ]
+ sources = [ "fuzzer/wayland_buffer_fuzzer.cc" ]
deps = [
":test_support",
":wayland",