From 5b57d55c282bf55df643c93c4042405f4370ef90 Mon Sep 17 00:00:00 2001 From: Attila Uygun Date: Tue, 26 Sep 2023 22:32:44 +0200 Subject: [PATCH] Fix for build (Windows) --- src/third_party/vma/BUILD.gn | 7 +++++-- src/third_party/volk/BUILD.gn | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/third_party/vma/BUILD.gn b/src/third_party/vma/BUILD.gn index 4fad35d..f5396a0 100644 --- a/src/third_party/vma/BUILD.gn +++ b/src/third_party/vma/BUILD.gn @@ -2,12 +2,15 @@ source_set("vma") { configs -= [ "//build:warnings" ] defines = [ "VMA_STATIC_VULKAN_FUNCTIONS=1" ] - cflags = [ "-Wno-nullability-completeness" ] + + if (target_os != "win") { + cflags = [ "-Wno-nullability-completeness" ] + } sources = [ "vk_mem_alloc.cpp", "vk_mem_alloc.h", ] - deps = [] + deps = [ "//src/third_party/volk" ] } diff --git a/src/third_party/volk/BUILD.gn b/src/third_party/volk/BUILD.gn index 4dc906a..5293144 100644 --- a/src/third_party/volk/BUILD.gn +++ b/src/third_party/volk/BUILD.gn @@ -6,5 +6,5 @@ source_set("volk") { "volk.h", ] - deps = [ "//src/third_party/vulkan" ] + public_deps = [ "//src/third_party/vulkan" ] }