aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--BUILD.gn17
1 files changed, 9 insertions, 8 deletions
diff --git a/BUILD.gn b/BUILD.gn
index d9f7d79bee..4e78a1c619 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -303,6 +303,8 @@ optional("gif") {
optional("gpu") {
enabled = skia_enable_gpu
+ public_defines = []
+
sources = skia_gpu_sources + [ "src/gpu/gl/GrGLDefaultInterface_native.cpp" ]
# These paths need to be absolute to match the ones produced by shared_sources.gni.
@@ -320,6 +322,13 @@ optional("gpu") {
} else {
sources += [ "src/gpu/gl/GrGLCreateNativeInterface_none.cpp" ]
}
+ libs = []
+
+ if (skia_use_vulkan) {
+ public_defines += [ "SK_VULKAN" ]
+ sources += skia_vk_sources
+ libs += [ "vulkan" ]
+ }
}
optional("jpeg") {
@@ -379,13 +388,6 @@ optional("typeface_freetype") {
]
}
-optional("vulkan") {
- enabled = skia_use_vulkan
- public_defines = [ "SK_VULKAN" ]
- libs = [ "vulkan" ]
- sources = skia_vk_sources
-}
-
optional("webp") {
enabled = skia_use_libwebp
public_defines = [ "SK_HAS_WEBP_LIBRARY" ]
@@ -438,7 +440,6 @@ component("skia") {
":sse42",
":ssse3",
":typeface_freetype",
- ":vulkan",
":webp",
":xml",
]