1
0
Fork 0
mirror of https://github.com/gwm17/Specter.git synced 2024-11-23 02:38:52 -05:00
Specter/premake5.lua

123 lines
2.2 KiB
Lua
Raw Normal View History

workspace "Navigator"
architecture "x64"
configurations {
"Debug",
"Release"
}
startproject "NavProject"
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- External directories to be included
IncludeDirs ={}
IncludeDirs["glfw"] = "Navigator/vendor/glfw/include"
IncludeDirs["ImGui"] = "Navigator/vendor/imgui"
include "Navigator/vendor/glfw"
include "Navigator/vendor/imgui"
project "Navigator"
location "Navigator"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("lib/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
filter "system:windows"
defines "NAV_WINDOWS"
2021-12-19 15:11:24 -05:00
pchheader "navpch.h"
pchsource "Navigator/src/navpch.cpp"
forceincludes {"navpch.h"}
includedirs {
"%{prj.name}/src/",
2021-12-19 15:11:24 -05:00
"%{prj.name}/src/%{prj.name}/",
"%{prj.name}/vendor/spdlog/include/",
"%{IncludeDirs.glfw}",
"%{IncludeDirs.ImGui}",
}
filter "system:linux or macosx"
defines "NAV_UNIX"
2021-12-19 15:11:24 -05:00
pchheader "%{prj.name}/src/navpch.h"
includedirs {
"%{prj.name}/vendor/spdlog/include/",
2021-12-19 15:11:24 -05:00
"%{prj.name}/src/%{prj.name}/",
"%{IncludeDirs.glfw}",
"%{IncludeDirs.ImGui}",
}
filter {}
files {
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp"
}
defines {
"_CRT_SECURE_NO_WARNINGS"
}
links {
"GLFW",
"ImGui",
"opengl32.lib"
}
systemversion "latest"
defines {
"GLFW_INCLUDE_NONE"
}
filter "configurations:Debug"
defines "NAV_DEBUG"
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines "NAV_RELEASE"
runtime "Release"
optimize "on"
project "NavProject"
location "NavProject"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files {
"NavProject/main.cpp"
}
includedirs {
"Navigator/src",
2021-12-19 15:11:24 -05:00
"Navigator/src/Navigator",
"Navigator/vendor/spdlog/include/",
"Navigator/vendor"
}
links {
"Navigator"
}
systemversion "latest"
filter "configurations:Debug"
defines "NAV_DEBUG"
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines "NAV_RELEASE"
runtime "Release"
optimize "on"
filter "configurations:Dist"
defines "NAV_DIST"
runtime "Release"
optimize "on"