Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: BUILD.gn

Issue 2336343002: GN: Android Vulkan support (Closed)
Patch Set: simpler Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gn/BUILDCONFIG.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 7b506e4388e2c78ad463870dcc4a76c870954203..5d34c7fd95db0991985964fc237acee9a068f722 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -16,6 +16,7 @@ declare_args() {
skia_use_libpng = true
skia_use_libwebp = !is_fuchsia
skia_use_sfntly = !is_fuchsia
+ skia_use_vulkan = false
skia_use_zlib = true
}
@@ -205,6 +206,7 @@ template("optional") {
[
"public_defines",
"deps",
+ "libs",
"sources",
"sources_when_disabled",
])
@@ -339,6 +341,13 @@ 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" ]
@@ -390,6 +399,7 @@ component("skia") {
":sse42",
":ssse3",
":typeface_freetype",
+ ":vulkan",
":webp",
":xml",
]
@@ -601,6 +611,10 @@ if (skia_enable_tools) {
} else if (is_mac) {
sources += [ "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp" ]
}
+
+ if (skia_use_vulkan) {
+ sources += [ "tools/gpu/vk/VkTestContext.cpp" ]
+ }
}
test_lib("flags") {
« no previous file with comments | « no previous file | gn/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698