Move VMA_STATIC_VULKAN_FUNCTIONS to vma/BUILD.gn

This commit is contained in:
Attila Uygun 2023-09-12 19:57:11 +02:00
parent 3f13440acb
commit 8c66e7aa7a
2 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,13 @@
source_set("vma") { source_set("vma") {
configs -= [ "//build:warnings" ] configs -= [ "//build:warnings" ]
defines = [ "VMA_STATIC_VULKAN_FUNCTIONS=1" ]
cflags = [ "-Wno-nullability-completeness" ]
sources = [ sources = [
"vk_mem_alloc.cpp", "vk_mem_alloc.cpp",
"vk_mem_alloc.h", "vk_mem_alloc.h",
] ]
deps = [ "//src/third_party/vulkan" ] deps = []
} }

View File

@ -1,15 +1,12 @@
config("vulkan_public") { config("vulkan_public") {
include_dirs = [ "include" ] include_dirs = [ "include" ]
defines = [ "VMA_STATIC_VULKAN_FUNCTIONS=1" ]
cflags = []
if (target_os == "linux") { if (target_os == "linux") {
defines += [ "VK_USE_PLATFORM_XLIB_KHR" ] defines = [ "VK_USE_PLATFORM_XLIB_KHR" ]
} else if (target_os == "win") { } else if (target_os == "win") {
defines += [ "VK_USE_PLATFORM_WIN32_KHR" ] defines = [ "VK_USE_PLATFORM_WIN32_KHR" ]
} else if (target_os == "android") { } else if (target_os == "android") {
defines += [ "VK_USE_PLATFORM_ANDROID_KHR" ] defines = [ "VK_USE_PLATFORM_ANDROID_KHR" ]
cflags += [ "-Wno-nullability-completeness" ]
} }
} }