Enable unity build on modules that support it

This commit is contained in:
Jérôme Leclercq
2022-03-13 13:09:42 +01:00
parent bf44672354
commit 0a4fd8f56d
10 changed files with 62 additions and 15 deletions

View File

@@ -24,16 +24,20 @@ if has_config("tests") then
add_files("Engine/**.cpp")
add_includedirs(".")
if has_config("unitybuild") then
add_rules("c++.unity_build")
end
target("NazaraClientUnitTests")
add_deps("NazaraAudio")
add_files("main_client.cpp")
add_files("main_client.cpp", {unity_ignored = true})
if has_config("usepch") then
set_pcxxheader("Engine/ClientModules.hpp")
end
target("NazaraUnitTests")
add_files("main.cpp")
add_files("main.cpp", {unity_ignored = true})
remove_headerfiles("Engine/Audio/**")
remove_files("Engine/Audio/**")