forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
65 lines (60 loc) · 1.47 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
61
62
63
64
65
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
config("vulkan_config") {
if (is_fuchsia) {
include_dirs =
[ "//third_party/vulkan_loader_and_validation_layers/include" ]
} else {
include_dirs = [ "//third_party/vulkan/src" ]
}
}
source_set("vulkan") {
sources = [
"vulkan_application.cc",
"vulkan_application.h",
"vulkan_backbuffer.cc",
"vulkan_backbuffer.h",
"vulkan_command_buffer.cc",
"vulkan_command_buffer.h",
"vulkan_debug_report.cc",
"vulkan_debug_report.h",
"vulkan_device.cc",
"vulkan_device.h",
"vulkan_handle.cc",
"vulkan_handle.h",
"vulkan_image.cc",
"vulkan_image.h",
"vulkan_interface.cc",
"vulkan_interface.h",
"vulkan_native_surface.cc",
"vulkan_native_surface.h",
"vulkan_proc_table.cc",
"vulkan_proc_table.h",
"vulkan_surface.cc",
"vulkan_surface.h",
"vulkan_swapchain.h",
"vulkan_utilities.cc",
"vulkan_utilities.h",
"vulkan_window.cc",
"vulkan_window.h",
]
if (is_android) {
sources += [
"vulkan_native_surface_android.cc",
"vulkan_native_surface_android.h",
"vulkan_swapchain.cc",
]
}
if (is_fuchsia) {
sources += [ "vulkan_swapchain_stub.cc" ]
}
deps = [
"$flutter_root/fml",
"//third_party/skia",
]
public_configs = [
":vulkan_config",
"$flutter_root:config",
]
}