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") { |