Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 545c614

Browse files
tobineCommit Bot
authored andcommitted
Vulkan:Lazily link libvulkan
Move libvulkan to a data_dep as we no longer statically link it. Bug: angleproject:4225 Change-Id: I96458d4727d2d47d8c259ec51d91fd852067c059 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1972192 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>
1 parent d50151d commit 545c614

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/libANGLE/renderer/vulkan/BUILD.gn

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ group("angle_vulkan_entry_points") {
170170
"//third_party/fuchsia-sdk/sdk:vulkan",
171171
]
172172
} else if (!is_android) {
173-
public_deps += [ "$angle_root/third_party/vulkan-loader/src:libvulkan" ]
173+
data_deps = [
174+
"$angle_root/third_party/vulkan-loader/src:libvulkan",
175+
]
174176
}
175177
}
176178

@@ -219,8 +221,10 @@ angle_source_set("angle_vulkan_backend") {
219221
sources += angle_vulkan_internal_shaders
220222

221223
if (!is_android && !is_fuchsia) {
222-
deps += [ "$angle_root/third_party/vulkan-loader/src:libvulkan" ]
223-
data_deps += [ "$angle_root/third_party/vulkan-tools/src:VkICD_mock_icd" ]
224+
data_deps += [
225+
"$angle_root/third_party/vulkan-loader/src:libvulkan",
226+
"$angle_root/third_party/vulkan-tools/src:VkICD_mock_icd",
227+
]
224228
}
225229

226230
if (angle_enable_vulkan_validation_layers) {

0 commit comments

Comments
 (0)