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") {
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 = []
}

View File

@ -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" ]
}
}