summaryrefslogtreecommitdiff
path: root/chromium/components/viz/service/main/BUILD.gn
blob: 6e0b1a9b8b3f3568c4a6b638e9e14da1c06c3fb7 (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
# Copyright 2016 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.

import("//build/config/ui.gni")
import("//testing/test.gni")

source_set("main") {
  output_name = "viz_main_impl"

  defines = []

  sources = [
    "viz_compositor_thread_runner.h",
    "viz_compositor_thread_runner_impl.cc",
    "viz_compositor_thread_runner_impl.h",
    "viz_main_impl.cc",
    "viz_main_impl.h",
  ]

  deps = [
    "//cc",
    "//components/discardable_memory/client",
    "//components/discardable_memory/public/mojom",
    "//components/ui_devtools",
    "//components/ui_devtools/viz",
    "//components/viz/service",
    "//gpu/ipc:gl_in_process_context",
    "//gpu/ipc/common",
    "//gpu/ipc/service",
    "//ipc",
    "//mojo/public/cpp/system",
    "//services/metrics/public/cpp:metrics_cpp",
    "//services/metrics/public/mojom",
    "//services/service_manager/public/cpp",
    "//services/tracing/public/cpp",
    "//services/viz/privileged/mojom",
    "//ui/gfx:memory_buffer",
    "//ui/gl/init",
  ]

  public_deps = [ "//services/network/public/mojom" ]

  if (use_ozone) {
    deps += [ "//ui/ozone:ozone" ]
  }

  if (is_chromeos) {
    deps += [ "//media/gpu" ]
  }

  if (is_chromecast) {
    deps += [ "//chromecast/media/service/mojom" ]
  }
}