forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBUILD.gn
60 lines (48 loc) · 1.04 KB
/
BUILD.gn
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
# 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)
component("init") {
output_name = "vulkan_init"
sources = [
"vulkan_factory.cc",
"vulkan_factory.h",
]
defines = [ "IS_VULKAN_INIT_IMPL" ]
public_deps = [
"//base",
"//gpu/vulkan",
]
deps = []
if (use_x11) {
deps += [ "//gpu/vulkan/x" ]
}
if (is_android) {
deps += [ "//gpu/vulkan/android" ]
}
if (use_ozone) {
deps += [
"//ui/base:features",
"//ui/ozone",
]
}
if (is_win) {
deps += [ "//gpu/vulkan/win32" ]
}
}
component("skia") {
output_name = "vulkan_init_skia"
sources = [
"gr_vk_memory_allocator_impl.cc",
"gr_vk_memory_allocator_impl.h",
]
defines = [ "IS_VULKAN_INIT_IMPL" ]
public_deps = [
"//base",
"//gpu/vulkan",
"//skia",
]
deps = [ "//third_party/vulkan_memory_allocator" ]
}