Added premake
This makes it easy to work on the project on both Linux🐧, Windows or even Mac🍏
This commit is contained in:
9
.gitignore
vendored
9
.gitignore
vendored
@@ -1 +1,8 @@
|
|||||||
.vscode
|
.vscode
|
||||||
|
.vs
|
||||||
|
bin/
|
||||||
|
libs/
|
||||||
|
obj/
|
||||||
|
**.vcxproj
|
||||||
|
**.sln
|
||||||
|
**.user
|
||||||
|
|||||||
7
Hello_triangle/premake5.lua
Normal file
7
Hello_triangle/premake5.lua
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
require("premake", ">=5.0-beta2")
|
||||||
|
|
||||||
|
project "HelloTriangle"
|
||||||
|
files{
|
||||||
|
"**.cpp",
|
||||||
|
"**.h"
|
||||||
|
}
|
||||||
8
Hello_vulkan/premake5.lua
Normal file
8
Hello_vulkan/premake5.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
require("premake", ">=5.0-beta2")
|
||||||
|
|
||||||
|
project "HelloVulkan"
|
||||||
|
files{
|
||||||
|
"**.cpp",
|
||||||
|
"**.h"
|
||||||
|
}
|
||||||
|
|
||||||
44
premake5.lua
Normal file
44
premake5.lua
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
workspace "LearnVulkan"
|
||||||
|
kind "ConsoleApp"
|
||||||
|
language "C++"
|
||||||
|
cppdialect "C++17"
|
||||||
|
targetdir "%{prj.location}/bin/%{cfg.buildcfg}"
|
||||||
|
configurations { "Debug", "Release" }
|
||||||
|
|
||||||
|
include("Hello_vulkan/premake5.lua")
|
||||||
|
include("Hello_triangle/premake5.lua")
|
||||||
|
|
||||||
|
filter "configurations:Debug"
|
||||||
|
defines { "DEBUG" }
|
||||||
|
symbols "On"
|
||||||
|
filter "configurations:Release"
|
||||||
|
defines { "NDEBUG" }
|
||||||
|
optimize "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 "system:linux"
|
||||||
|
links {
|
||||||
|
"glfw3",
|
||||||
|
"vulkan",
|
||||||
|
"dl",
|
||||||
|
"pthread",
|
||||||
|
"X11",
|
||||||
|
"Xxf86vm",
|
||||||
|
"Xrandr",
|
||||||
|
"Xi"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user