Initial Commit
This commit is contained in:
parent
32c5bafa07
commit
5e77883bd2
11 changed files with 215 additions and 32 deletions
97
premake5.lua
Normal file
97
premake5.lua
Normal file
|
@ -0,0 +1,97 @@
|
|||
workspace "FluxEngine"
|
||||
architecture "x64"
|
||||
startproject "Sandbox"
|
||||
|
||||
configurations { "Debug", "Release", "Dist" }
|
||||
|
||||
outputdir = "%{cfg.buildcfg}-%{cfg.system}"
|
||||
|
||||
project "FluxEngine"
|
||||
location "FluxEngine"
|
||||
kind "SharedLib"
|
||||
language "C++"
|
||||
|
||||
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
|
||||
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
|
||||
|
||||
files
|
||||
{
|
||||
"%{prj.name}/src/**.h",
|
||||
"%{prj.name}/src/**.cpp",
|
||||
}
|
||||
|
||||
includedirs
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
filter "system:windows"
|
||||
cppdialect "C++20"
|
||||
staticruntime "on"
|
||||
systemversion "latest"
|
||||
defines
|
||||
{
|
||||
"FLUX_PLATFORM_WINDOWS",
|
||||
"FLUX_BUILD_DLL"
|
||||
}
|
||||
|
||||
postbuildcommands
|
||||
{
|
||||
("{COPY} %{cfg.buildtarget.relpath} ../bin/".. outputdir .. "/Sandbox")
|
||||
}
|
||||
filter "configurations:Debug"
|
||||
defines "FLUX_DEBUG"
|
||||
symbols "On"
|
||||
|
||||
filter "configurations:Release"
|
||||
defines "FLUX_RELEASE"
|
||||
optimize "On"
|
||||
|
||||
filter "configurations:Dist"
|
||||
defines "FLUX_DIST"
|
||||
optimize "On"
|
||||
|
||||
project "Sandbox"
|
||||
location "Sandbox"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
|
||||
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
|
||||
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
|
||||
|
||||
files
|
||||
{
|
||||
"%{prj.name}/src/**.h",
|
||||
"%{prj.name}/src/**.cpp",
|
||||
}
|
||||
|
||||
includedirs
|
||||
{
|
||||
"Flux/src"
|
||||
}
|
||||
|
||||
links
|
||||
{
|
||||
"FluxEngine"
|
||||
}
|
||||
|
||||
filter "system:windows"
|
||||
cppdialect "C++20"
|
||||
staticruntime "on"
|
||||
systemversion "latest"
|
||||
defines
|
||||
{
|
||||
"FLUX_PLATFORM_WINDOWS"
|
||||
}
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines "FLUX_DEBUG"
|
||||
symbols "On"
|
||||
|
||||
filter "configurations:Release"
|
||||
defines "FLUX_RELEASE"
|
||||
optimize "On"
|
||||
|
||||
filter "configurations:Dist"
|
||||
defines "FLUX_DIST"
|
||||
optimize "On"
|
Loading…
Add table
Add a link
Reference in a new issue