1# Copyright 2018 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/ui.gni") 6import("//gpu/vulkan/features.gni") 7 8assert(enable_vulkan) 9 10component("init") { 11 output_name = "vulkan_init" 12 13 sources = [ 14 "vulkan_factory.cc", 15 "vulkan_factory.h", 16 ] 17 18 defines = [ "IS_VULKAN_INIT_IMPL" ] 19 20 public_deps = [ 21 "//base", 22 "//gpu/vulkan", 23 ] 24 25 deps = [] 26 if (use_x11) { 27 deps += [ "//gpu/vulkan/x" ] 28 } 29 if (is_android) { 30 deps += [ "//gpu/vulkan/android" ] 31 } 32 if (use_ozone) { 33 deps += [ 34 "//ui/base:features", 35 "//ui/ozone", 36 ] 37 } 38 if (is_win) { 39 deps += [ "//gpu/vulkan/win32" ] 40 } 41} 42 43component("skia") { 44 output_name = "vulkan_init_skia" 45 46 sources = [ 47 "gr_vk_memory_allocator_impl.cc", 48 "gr_vk_memory_allocator_impl.h", 49 ] 50 51 defines = [ "IS_VULKAN_INIT_IMPL" ] 52 53 public_deps = [ 54 "//base", 55 "//gpu/vulkan", 56 "//skia", 57 ] 58 59 deps = [ "//third_party/vulkan_memory_allocator" ] 60} 61