diff --git a/src/third_party/vma/BUILD.gn b/src/third_party/vma/BUILD.gn index b73e3eb..4fad35d 100644 --- a/src/third_party/vma/BUILD.gn +++ b/src/third_party/vma/BUILD.gn @@ -1,10 +1,13 @@ source_set("vma") { configs -= [ "//build:warnings" ] + defines = [ "VMA_STATIC_VULKAN_FUNCTIONS=1" ] + cflags = [ "-Wno-nullability-completeness" ] + sources = [ "vk_mem_alloc.cpp", "vk_mem_alloc.h", ] - deps = [ "//src/third_party/vulkan" ] + deps = [] } diff --git a/src/third_party/vulkan/BUILD.gn b/src/third_party/vulkan/BUILD.gn index 7c0ae0e..b9e21da 100644 --- a/src/third_party/vulkan/BUILD.gn +++ b/src/third_party/vulkan/BUILD.gn @@ -1,15 +1,12 @@ config("vulkan_public") { include_dirs = [ "include" ] - defines = [ "VMA_STATIC_VULKAN_FUNCTIONS=1" ] - cflags = [] if (target_os == "linux") { - defines += [ "VK_USE_PLATFORM_XLIB_KHR" ] + defines = [ "VK_USE_PLATFORM_XLIB_KHR" ] } else if (target_os == "win") { - defines += [ "VK_USE_PLATFORM_WIN32_KHR" ] + defines = [ "VK_USE_PLATFORM_WIN32_KHR" ] } else if (target_os == "android") { - defines += [ "VK_USE_PLATFORM_ANDROID_KHR" ] - cflags += [ "-Wno-nullability-completeness" ] + defines = [ "VK_USE_PLATFORM_ANDROID_KHR" ] } }