diff --git a/build_overrides/vulkan_common.gni b/build_overrides/vulkan_common.gni new file mode 100644 index 00000000000000..ad1fb8e38c08f8 --- /dev/null +++ b/build_overrides/vulkan_common.gni @@ -0,0 +1,10 @@ +# Copyright 2019 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("//third_party/angle/gni/angle.gni") + +vulkan_headers_dir = "//third_party/angle/third_party/vulkan-headers/src" + +vulkan_data_subdir = angle_data_dir +vulkan_gen_subdir = "angle/vulkan" diff --git a/build_overrides/vulkan_loader.gni b/build_overrides/vulkan_loader.gni new file mode 100644 index 00000000000000..d0c7c5231bd2e2 --- /dev/null +++ b/build_overrides/vulkan_loader.gni @@ -0,0 +1,11 @@ +# Copyright 2019 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_overrides/vulkan_common.gni") + +vulkan_loader_extra_defines = [ + "ANGLE_VK_DATA_DIR=\"$angle_data_dir\"", + "ANGLE_VK_ICD_JSON=\"$angle_data_dir/VkICD_mock_icd.json\"", +] +vulkan_loader_shared = angle_shared_libvulkan diff --git a/build_overrides/vulkan_tools.gni b/build_overrides/vulkan_tools.gni new file mode 100644 index 00000000000000..73ae8c557c83c5 --- /dev/null +++ b/build_overrides/vulkan_tools.gni @@ -0,0 +1,5 @@ +# Copyright 2019 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_overrides/vulkan_common.gni") diff --git a/build_overrides/vulkan_validation_layers.gni b/build_overrides/vulkan_validation_layers.gni new file mode 100644 index 00000000000000..b893ce134f416f --- /dev/null +++ b/build_overrides/vulkan_validation_layers.gni @@ -0,0 +1,8 @@ +# Copyright 2019 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_overrides/vulkan_common.gni") + +vvl_spirv_tools_dir = "//third_party/SPIRV-Tools/src" +vvl_glslang_dir = "//third_party/glslang/src"