Make it work with gcc/Clang on windows
This commit is contained in:
88
premake5.lua
88
premake5.lua
@@ -1,44 +1,62 @@
|
||||
workspace "LearnVulkan"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
cppdialect "C++17"
|
||||
targetdir "%{prj.location}/bin/%{cfg.buildcfg}"
|
||||
configurations { "Debug", "Release" }
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
cppdialect "C++17"
|
||||
architecture "x64"
|
||||
targetdir "%{prj.location}/bin/%{cfg.buildcfg}"
|
||||
|
||||
include("Hello_vulkan/premake5.lua")
|
||||
include("Hello_triangle/premake5.lua")
|
||||
configurations { "Debug", "Release" }
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines { "DEBUG" }
|
||||
symbols "On"
|
||||
filter "configurations:Release"
|
||||
defines { "NDEBUG" }
|
||||
optimize "On"
|
||||
filter "configurations:Debug"
|
||||
defines { "DEBUG" }
|
||||
symbols "On"
|
||||
|
||||
filter "system:windows"
|
||||
libdirs{
|
||||
"libs/GLFW",
|
||||
"C:/VulkanSDK/1.3.243.0/Lib"
|
||||
}
|
||||
includedirs {
|
||||
"C:/VulkanSDK/1.3.243.0/Include",
|
||||
"libs/"
|
||||
}
|
||||
links {"glfw3", "vulkan-1"}
|
||||
architecture "x64"
|
||||
filter "configurations:Release"
|
||||
defines { "NDEBUG" }
|
||||
optimize "On"
|
||||
|
||||
filter "system:windows"
|
||||
-- buildoptions {
|
||||
-- "/MD"
|
||||
-- }
|
||||
linkoptions {
|
||||
-- "/NODEFAULTLIB:library"
|
||||
"-nodefaultlibs"
|
||||
}
|
||||
libdirs {
|
||||
"C:/VulkanSDK/1.4.304.1/Lib",
|
||||
"libs/GLFW",
|
||||
}
|
||||
includedirs {
|
||||
"C:/VulkanSDK/1.4.304.1/Include",
|
||||
"libs"
|
||||
}
|
||||
|
||||
links {
|
||||
"msvcrt",
|
||||
"user32",
|
||||
"kernel32",
|
||||
"libcmt",
|
||||
"gdi32",
|
||||
"glu32",
|
||||
"shell32",
|
||||
"opengl32",
|
||||
"glfw3",
|
||||
"vulkan-1"
|
||||
|
||||
filter "system:linux"
|
||||
links {
|
||||
"glfw3",
|
||||
"vulkan",
|
||||
"dl",
|
||||
"pthread",
|
||||
"X11",
|
||||
"Xxf86vm",
|
||||
"Xrandr",
|
||||
"Xi"
|
||||
}
|
||||
}
|
||||
|
||||
filter "system:linux"
|
||||
links {
|
||||
"glfw3",
|
||||
"vulkan",
|
||||
"dl",
|
||||
"pthread",
|
||||
"X11",
|
||||
"Xxf86vm",
|
||||
"Xrandr",
|
||||
"Xi"
|
||||
}
|
||||
|
||||
include("HelloVulkan/premake5.lua")
|
||||
include("HelloTriangle/premake5.lua")
|
||||
|
||||
Reference in New Issue
Block a user