forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.gn
More file actions
121 lines (116 loc) · 3.02 KB
/
BUILD.gn
File metadata and controls
121 lines (116 loc) · 3.02 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# 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.
import("//flutter/vulkan/config.gni")
import("../../../tools/impeller.gni")
impeller_component("vulkan_unittests") {
testonly = true
sources = [
"blit_command_vk_unittests.cc",
"command_encoder_vk_unittests.cc",
"context_vk_unittests.cc",
"pass_bindings_cache_unittests.cc",
"resource_manager_vk_unittests.cc",
"test/mock_vulkan.cc",
"test/mock_vulkan.h",
"test/mock_vulkan_unittests.cc",
]
deps = [
":vulkan",
"//flutter/testing:testing_lib",
]
}
impeller_component("vulkan") {
sources = [
"allocator_vk.cc",
"allocator_vk.h",
"android_hardware_buffer_texture_source_vk.cc",
"android_hardware_buffer_texture_source_vk.h",
"barrier_vk.cc",
"barrier_vk.h",
"blit_command_vk.cc",
"blit_command_vk.h",
"blit_pass_vk.cc",
"blit_pass_vk.h",
"capabilities_vk.cc",
"capabilities_vk.h",
"command_buffer_vk.cc",
"command_buffer_vk.h",
"command_encoder_vk.cc",
"command_encoder_vk.h",
"command_pool_vk.cc",
"command_pool_vk.h",
"compute_pass_vk.cc",
"compute_pass_vk.h",
"compute_pipeline_vk.cc",
"compute_pipeline_vk.h",
"context_vk.cc",
"context_vk.h",
"debug_report_vk.cc",
"debug_report_vk.h",
"descriptor_pool_vk.cc",
"descriptor_pool_vk.h",
"device_buffer_vk.cc",
"device_buffer_vk.h",
"fence_waiter_vk.cc",
"fence_waiter_vk.h",
"formats_vk.cc",
"formats_vk.h",
"limits_vk.h",
"pass_bindings_cache.cc",
"pass_bindings_cache.h",
"pipeline_cache_vk.cc",
"pipeline_cache_vk.h",
"pipeline_library_vk.cc",
"pipeline_library_vk.h",
"pipeline_vk.cc",
"pipeline_vk.h",
"queue_vk.cc",
"queue_vk.h",
"render_pass_vk.cc",
"render_pass_vk.h",
"resource_manager_vk.cc",
"resource_manager_vk.h",
"sampler_library_vk.cc",
"sampler_library_vk.h",
"sampler_vk.cc",
"sampler_vk.h",
"shader_function_vk.cc",
"shader_function_vk.h",
"shader_library_vk.cc",
"shader_library_vk.h",
"shared_object_vk.cc",
"shared_object_vk.h",
"surface_context_vk.cc",
"surface_context_vk.h",
"surface_vk.cc",
"surface_vk.h",
"swapchain_image_vk.cc",
"swapchain_image_vk.h",
"swapchain_impl_vk.cc",
"swapchain_impl_vk.h",
"swapchain_vk.cc",
"swapchain_vk.h",
"texture_source_vk.cc",
"texture_source_vk.h",
"texture_vk.cc",
"texture_vk.h",
"vertex_descriptor_vk.cc",
"vertex_descriptor_vk.h",
"vk.h",
"vma.cc",
"vma.h",
]
public_deps = [
"../../:renderer",
"../../../blobcat:blobcat_lib",
"//flutter/flutter_vma",
"//flutter/fml",
"//flutter/vulkan/procs",
"//third_party/vulkan-deps/vulkan-headers/src:vulkan_headers",
"//third_party/vulkan_memory_allocator",
]
if (enable_vulkan_validation_layers) {
defines = [ "IMPELLER_ENABLE_VULKAN_VALIDATION_LAYERS" ]
}
}