blob: 8a4692612b62bebb1636009174051f417a2d0905 [file] [log] [blame]
Jamie Madilldac952e2020-05-05 12:17:44 -04001# Copyright 2020 The ANGLE Project Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4#
5# Custom GN integration for VulkanMemoryAllocator.
6
7config("vulkan_memory_allocator_config") {
8 include_dirs = [ "src" ]
9 if (is_clang) {
10 cflags_cc = [
11 "-Wno-implicit-fallthrough",
12 "-Wno-nullability-completeness",
13 "-Wno-unused-private-field",
14 "-Wno-unused-variable",
15 ]
16 }
17 if (is_win && !is_clang) {
18 cflags_cc = [
19 "/wd4189", # local variable is initialized but not referenced
20 ]
21 }
22}
23
24source_set("vulkan_memory_allocator") {
25 sources = [
26 "src/vk_mem_alloc.h",
27 ]
28 public_configs = [ ":vulkan_memory_allocator_config" ]
29}