premake5: Use precompiled headers.
This easily doubles the compilation speed!!1
This commit is contained in:
parent
e18035bbb1
commit
f753acbe74
@ -72,12 +72,15 @@ workspace "iw4x"
|
|||||||
kind "SharedLib"
|
kind "SharedLib"
|
||||||
language "C++"
|
language "C++"
|
||||||
files { "./src/**.hpp", "./src/**.cpp" }
|
files { "./src/**.hpp", "./src/**.cpp" }
|
||||||
includedirs { "%{prj.location}" }
|
includedirs { "%{prj.location}", "./src" }
|
||||||
architecture "x32"
|
architecture "x32"
|
||||||
configmap {
|
configmap {
|
||||||
["Normal"] = "Debug"
|
["Normal"] = "Debug"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Pre-compiled header
|
||||||
|
pchheader "STDInclude.hpp" -- must be exactly same as used in #include directives
|
||||||
|
pchsource "src/STDInclude.cpp" -- real path
|
||||||
|
|
||||||
-- Virtual paths
|
-- Virtual paths
|
||||||
if not _OPTIONS["no-new-structure"] then
|
if not _OPTIONS["no-new-structure"] then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
using namespace std::literals;
|
using namespace std::literals;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
#include "..\..\Utils\Versioning.hpp"
|
#include "..\..\Utils\Versioning.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
using namespace std::literals;
|
using namespace std::literals;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
#include "..\..\Utils\Versioning.hpp"
|
#include "..\..\Utils\Versioning.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
#include "..\..\Utils\Versioning.hpp"
|
#include "..\..\Utils\Versioning.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
#include "..\..\Utils\Versioning.hpp"
|
#include "..\..\Utils\Versioning.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Game
|
namespace Game
|
||||||
{
|
{
|
||||||
|
1
src/STDInclude.cpp
Normal file
1
src/STDInclude.cpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "STDInclude.hpp"
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
using namespace Components;
|
using namespace Components;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
#include "Steam.hpp"
|
#include "Steam.hpp"
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Utils
|
namespace Utils
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
#define VA_BUFFER_COUNT 4
|
#define VA_BUFFER_COUNT 4
|
||||||
#define VA_BUFFER_SIZE 65536
|
#define VA_BUFFER_SIZE 65536
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "..\STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
namespace Utils
|
namespace Utils
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user