blob: dc8794ca02311cd178cfd7ef4036220e5fa60622 [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# 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("//gpu/vulkan/features.gni")
assert(enable_vulkan)
component("init") {
output_name = "vulkan_init"
sources = [
"vulkan_factory.cc",
"vulkan_factory.h",
]
defines = [ "IS_VULKAN_INIT_IMPL" ]
public_deps = [
"//base",
"//gpu/vulkan",
]
deps = []
if (use_x11) {
deps += [ "//gpu/vulkan/x" ]
}
if (is_android) {
deps += [ "//gpu/vulkan/android" ]
}
if (use_ozone) {
deps += [
"//ui/base:features",
"//ui/ozone",
]
}
if (is_win) {
deps += [ "//gpu/vulkan/win32" ]
}
}
component("skia") {
output_name = "vulkan_init_skia"
sources = [
"gr_vk_memory_allocator_impl.cc",
"gr_vk_memory_allocator_impl.h",
]
defines = [ "IS_VULKAN_INIT_IMPL" ]
public_deps = [
"//base",
"//gpu/vulkan",
"//skia",
]
deps = [ "//third_party/vulkan_memory_allocator" ]
}