Google testing works now
This commit is contained in:
37
premake5.lua
37
premake5.lua
@@ -33,7 +33,8 @@ workspace "PhanesEngine"
|
||||
toolset "gcc"
|
||||
flags { "MultiProcessorCompile" }
|
||||
clangtidy "On"
|
||||
llvmversion "19.0"
|
||||
debugger "gdb"
|
||||
startproject "MathTestFPU"
|
||||
configurations { "Debug", "Release" }
|
||||
|
||||
|
||||
@@ -62,6 +63,7 @@ function boilerplate()
|
||||
|
||||
if PLATFORM == "linux" then
|
||||
defines { "P_LINUX_BUILD" }
|
||||
buildoptions {"-Wall", "-Wextra", "-Werror"}
|
||||
linux_sse()
|
||||
buildoptions { "-Wno-unused-parameter" , "-fms-extensions" }
|
||||
end
|
||||
@@ -81,6 +83,33 @@ function boilerplate()
|
||||
filter{}
|
||||
end
|
||||
|
||||
function third_party_boilerplate()
|
||||
language "C++"
|
||||
|
||||
location (phanesBuildFiles .. "/%{prj.name}")
|
||||
targetdir (phanesBin .. "/" .. VERSION .. "/%{cfg.buildcfg}/%{prj.name}")
|
||||
objdir (phanesInt .. "/" .. VERSION .. "/%{cfg.buildcfg}/%{prj.name}")
|
||||
|
||||
if PLATFORM == "linux" then
|
||||
buildoptions {"-Wall", "-Wextra", "-Werror"}
|
||||
linux_sse()
|
||||
end
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines { "DEBUG", "TRACE", "P_DEBUG"}
|
||||
symbols "On"
|
||||
buildmessage("Building %{prj.name} in debug mode")
|
||||
|
||||
filter "configurations:Release"
|
||||
defines { "NDEBUG", "P_RELEASE" }
|
||||
linktimeoptimization "On"
|
||||
optimize "On"
|
||||
intrinsics "On"
|
||||
buildmessage("Building %{prj.name} in release mode")
|
||||
|
||||
filter{}
|
||||
end
|
||||
|
||||
-- actions
|
||||
|
||||
function action_clean()
|
||||
@@ -97,6 +126,6 @@ newaction {
|
||||
}
|
||||
|
||||
-- includeProjects here
|
||||
include "Engine/Source/Runtime/Core/premake5.lua"
|
||||
include "DevPlayground/premake5.lua"
|
||||
include "MathTestFPU/premake5.lua"
|
||||
include (phanesRoot .. "/Engine/Source/Runtime/Core/premake5.lua")
|
||||
include (phanesRoot .. "/DevPlayground/premake5.lua")
|
||||
include (PhanesRuntime .. "/Core/Tests/Math/MathTestFPU/premake5.lua")
|
Reference in New Issue
Block a user