From efb763c6c578c06538a86b9a6383b8679db56d31 Mon Sep 17 00:00:00 2001 From: Vlad Ivanov Date: Thu, 26 Jan 2017 22:48:06 +0300 Subject: [PATCH] third_party: vulkan: loader: fix Linux build --- third_party/vulkan/loader/premake5.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/third_party/vulkan/loader/premake5.lua b/third_party/vulkan/loader/premake5.lua index f38c9923e..07875f5e2 100644 --- a/third_party/vulkan/loader/premake5.lua +++ b/third_party/vulkan/loader/premake5.lua @@ -2,7 +2,7 @@ group("third_party") project("vulkan-loader") uuid("07d77359-1618-43e6-8a4a-0ee9ddc5fa6a") kind("StaticLib") - language("C++") + language("C") defines({ "_LIB", @@ -23,3 +23,10 @@ project("vulkan-loader") defines({ "VK_USE_PLATFORM_WIN32_KHR", }) + filter("platforms:not Windows") + removefiles("dirent_on_windows.c") + filter("platforms:Linux") + defines({ + [[SYSCONFDIR="\"/etc\""]], + [[DATADIR="\"/usr/share\""]], + })