summaryrefslogtreecommitdiff
path: root/chromium/services/ui/gpu/BUILD.gn
blob: 629c619cf13cc0a81425b6c52068685782c65d84 (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
# 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("//services/catalog/public/tools/catalog.gni")
import("//services/service_manager/public/service_manifest.gni")
import("//testing/test.gni")

source_set("gpu") {
  output_name = "mus_gpu"

  sources = [
    "gpu_main.cc",
    "gpu_main.h",
    "gpu_service.cc",
    "gpu_service.h",
  ]

  defines = [ "NOTIMPLEMENTED_POLICY=5" ]

  deps = [
    "//cc",
    "//components/viz/frame_sinks",
    "//gpu/ipc:command_buffer",
    "//gpu/ipc/common",
    "//gpu/ipc/service",
    "//ipc",
    "//media/gpu/ipc/service",
    "//mojo/public/cpp/system",
    "//services/service_manager/public/cpp",
    "//services/ui/common:server_gpu",
    "//services/ui/gpu/interfaces",
    "//services/ui/public/interfaces",
    "//services/ui/surfaces",
    "//ui/gfx:memory_buffer",
    "//ui/gl/init",
  ]

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

if (use_aura) {
  source_set("tests") {
    testonly = true

    sources = [
      "gpu_service_unittest.cc",
    ]

    deps = [
      ":gpu",
      "//base",
      "//gpu",
      "//ipc",
      "//services/ui/gpu/interfaces",
      "//testing/gtest",
      "//ui/gfx:memory_buffer",
      "//ui/gfx/geometry",
    ]

    data_deps = [
      "//services/ui",
    ]
  }

  service_manifest("unittest_manifest") {
    name = "mus_gpu_unittests"
    source = "test_manifest.json"
  }

  catalog("tests_catalog") {
    testonly = true
    embedded_services = [ ":unittest_manifest" ]
  }
}