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

Unified Diff: cc/BUILD.gn

Issue 1829163003: Added initial implementation of the Vulkan Context Provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vk_surface_patch
Patch Set: Block off vulkan_cc with enable_vulkan (not relevant in future patch) Created 4 years, 9 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 | cc/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/BUILD.gn
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index 5d5d1c69276b5755adc899bc8b0d0f7d998d6bbf..3aff6d22dd0712448d00aeba1f534521946c38a3 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/ui.gni")
import("//testing/test.gni")
component("cc") {
@@ -567,6 +568,28 @@ component("cc") {
configs -= [ "//build/config/compiler:default_optimization" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
+
+ if (enable_vulkan) {
+ deps += [ ":vulkan_cc" ]
+ }
+}
+
+if (enable_vulkan) {
+ source_set("vulkan_cc") {
+ include_dirs = [ "/usr/include" ]
+ sources = [
+ "output/vulkan_context_provider.h",
+ "output/vulkan_in_process_context_provider.cc",
+ "output/vulkan_in_process_context_provider.h",
+ ]
+
+ configs += [ "//build/config:precompiled_headers" ]
+ defines = [ "CC_IMPLEMENTATION=1" ]
+
+ deps = [
+ "//gpu/vulkan",
+ ]
+ }
}
source_set("test_support") {
« no previous file with comments | « no previous file | cc/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698