summaryrefslogtreecommitdiff
path: root/chromium/ui/ozone/platform/scenic/BUILD.gn
blob: 9cc209840a7fe28c55a5bbb2acec4ae08b373818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

assert(is_fuchsia)

import("//gpu/vulkan/features.gni")

visibility = [ "//ui/ozone/*" ]

source_set("scenic") {
  sources = [
    "client_native_pixmap_factory_scenic.cc",
    "client_native_pixmap_factory_scenic.h",
    "overlay_manager_scenic.cc",
    "overlay_manager_scenic.h",
    "ozone_platform_scenic.cc",
    "ozone_platform_scenic.h",
    "scenic_gpu_host.cc",
    "scenic_gpu_host.h",
    "scenic_gpu_service.cc",
    "scenic_gpu_service.h",
    "scenic_overlay_view.cc",
    "scenic_overlay_view.h",
    "scenic_screen.cc",
    "scenic_screen.h",
    "scenic_surface.cc",
    "scenic_surface.h",
    "scenic_surface_factory.cc",
    "scenic_surface_factory.h",
    "scenic_window.cc",
    "scenic_window.h",
    "scenic_window_canvas.cc",
    "scenic_window_canvas.h",
    "scenic_window_manager.cc",
    "scenic_window_manager.h",
    "sysmem_buffer_collection.cc",
    "sysmem_buffer_collection.h",
    "sysmem_buffer_manager.cc",
    "sysmem_buffer_manager.h",
    "sysmem_native_pixmap.cc",
    "sysmem_native_pixmap.h",
  ]

  defines = [
    "OZONE_IMPLEMENTATION",
    "VK_USE_PLATFORM_FUCHSIA",
  ]

  deps = [
    "//base",
    "//mojo/public/cpp/system",
    "//services/service_manager/public/cpp",
    "//skia",
    "//third_party/angle/src/common/fuchsia_egl",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.images",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.mem",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.sysmem",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.gfx",
    "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.scenic",
    "//third_party/fuchsia-sdk/sdk/pkg/scenic_cpp",
    "//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
    "//ui/base",
    "//ui/base/cursor",
    "//ui/base/cursor:cursor_base",
    "//ui/base/ime/fuchsia",
    "//ui/display/fake",
    "//ui/events:dom_keycode_converter",
    "//ui/events/ozone/layout",
    "//ui/gfx/geometry",
    "//ui/ozone:ozone_base",
    "//ui/ozone/common",
    "//ui/ozone/public/mojom",
    "//ui/platform_window",
  ]

  data_deps = []
  if (enable_vulkan) {
    sources += [
      "vulkan_implementation_scenic.cc",
      "vulkan_implementation_scenic.h",
    ]
    defines += [ "VK_USE_PLATFORM_MAGMA_KHR" ]
    deps += [ "//gpu/ipc/common:vulkan_ycbcr_info" ]
    data_deps += [
      "//third_party/angle:libEGL",
      "//third_party/angle:libGLESv2",
    ]
  }
}