mirror of https://github.com/auygun/kaliber.git
Move VMA_STATIC_VULKAN_FUNCTIONS to vma/BUILD.gn
This commit is contained in:
parent
3f13440acb
commit
8c66e7aa7a
|
@ -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 = []
|
||||||
}
|
}
|
||||||
|
|
|
@ -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" ]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue