summaryrefslogtreecommitdiff
path: root/chromium/gpu/vulkan/demo/BUILD.gn
blob: ae8cf7618b63c3edb98995cf17188a48ec695622 (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
# 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.

import("//build/config/ui.gni")
import("//gpu/vulkan/features.gni")

assert(enable_vulkan)

# TODO(cblume): These tests should run on each platform -- crbug.com/858614

group("demo") {
  if (use_x11) {
    deps = [ ":vulkan_demo" ]
  }
}

if (use_x11) {
  executable("vulkan_demo") {
    sources = [
      "main.cc",
      "vulkan_demo.cc",
      "vulkan_demo.h",
    ]

    deps = [
      "//base",
      "//components/tracing:startup_tracing",
      "//components/viz/common",
      "//gpu/vulkan/init",
      "//skia",
      "//ui/display/types",
      "//ui/events",
      "//ui/events/platform",
      "//ui/events/platform/x11",
      "//ui/gfx:native_widget_types",
      "//ui/gfx/geometry",
      "//ui/platform_window:platform_window",
      "//ui/platform_window/x11",
    ]

    deps += [ "//ui/gfx/x" ]
  }
}