summaryrefslogtreecommitdiff
path: root/third_party/vulkan/loader/premake5.lua
blob: e653b278b2d2fc07a2e99e4f328c71cb5eed143f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
group("third_party")
project("vulkan-loader")
  uuid("07d77359-1618-43e6-8a4a-0ee9ddc5fa6a")
  kind("StaticLib")
  language("C")

  defines({
    "_LIB",
    "API_NAME=\"vulkan\"",
  })
  removedefines({
    "_UNICODE",
    "UNICODE",
  })
  includedirs({
    ".",
  })
  recursive_platform_files()

  -- Included elsewhere
  removefiles("vk_loader_extensions.c")

  filter("platforms:Windows")
    warnings("Off")  -- Too many warnings.
    characterset("MBCS")
    defines({
      "VK_USE_PLATFORM_WIN32_KHR",
    })
  filter("platforms:not Windows")
    removefiles("dirent_on_windows.c")
  filter("platforms:Linux")
    defines({
      "VK_USE_PLATFORM_XCB_KHR",
      [[SYSCONFDIR="\"/etc\""]],
      [[FALLBACK_CONFIG_DIRS="\"/etc/xdg\""]],
      [[DATADIR="\"/usr/share\""]],
      [[FALLBACK_DATA_DIRS="\"/usr/share:/usr/local/share\""]],
    })