summaryrefslogtreecommitdiff
path: root/chromium/gpu/vulkan/x/BUILD.gn
blob: f6eddd8eef2c2f80ac3be31c6a7535f313c7afd4 (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
# 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)
assert(use_x11 || use_ozone)

component("x") {
  output_name = "vulkan_x11"

  sources = [
    "vulkan_implementation_x11.cc",
    "vulkan_implementation_x11.h",
    "vulkan_surface_x11.cc",
    "vulkan_surface_x11.h",
  ]

  defines = [ "IS_VULKAN_X11_IMPL" ]

  deps = [
    "//ui/base/x",
    "//ui/events/platform/x11",
    "//ui/gfx",
    "//ui/gfx/x",
  ]

  public_deps = [
    "//base",
    "//gpu/vulkan",
  ]

  if (enable_swiftshader_vulkan) {
    # Vulkan Swiftshader can only be built on Linux.
    # TODO(samans): Support more platforms. https://crbug.com/963988
    data_deps = [ "//third_party/swiftshader/src/Vulkan:swiftshader_libvulkan" ]
  }
}