Use PCH generated from VPC globally

This reduced output code size with 40KiB, improved compile times and appeared to improve runtime performance as well.
This commit is contained in:
Kawe Mazidjatari 2023-05-14 02:10:17 +02:00
parent b57eb0c0c3
commit d809a9f633
41 changed files with 9 additions and 74 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "appframework" "tier0" ${FOLDER_CONTEXT} )
add_module( "lib" "appframework" "vpc" ${FOLDER_CONTEXT} )
start_sources()

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "codecs" "tier0" ${FOLDER_CONTEXT} )
add_module( "lib" "codecs" "vpc" ${FOLDER_CONTEXT} )
start_sources()

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "datacache" "tier0" ${FOLDER_CONTEXT} )
add_module( "lib" "datacache" "vpc" ${FOLDER_CONTEXT} )
start_sources()

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "EbisuSDK" "tier0" ${FOLDER_CONTEXT} )
add_module( "lib" "EbisuSDK" "vpc" ${FOLDER_CONTEXT} )
start_sources()

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "filesystem" "tier0" ${FOLDER_CONTEXT} )
add_module( "lib" "filesystem" "vpc" ${FOLDER_CONTEXT} )
start_sources()

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "gameui" "tier0" ${FOLDER_CONTEXT} )
add_module( "lib" "gameui" "vpc" ${FOLDER_CONTEXT} )
start_sources()

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "tier0" "" ${FOLDER_CONTEXT} )
add_module( "lib" "tier0" "vpc" ${FOLDER_CONTEXT} )
start_sources()
@ -29,7 +29,6 @@ add_sources( SOURCE_GROUP "Runtime"
"threadtools.cpp"
"tslist.cpp"
"vtable.cpp"
"tier0_pch.h"
"tier0_iface.cpp"
"utility.cpp"
"binstream.cpp"
@ -65,4 +64,3 @@ add_sources( SOURCE_GROUP "Public"
)
end_sources()
target_precompile_headers( ${PROJECT_NAME} PRIVATE tier0_pch.h )

View File

@ -1,4 +1,3 @@
#include "tier0_pch.h"
#include "tier0/binstream.h"
//-----------------------------------------------------------------------------

View File

@ -4,7 +4,6 @@
//
//=============================================================================//
#include "tier0_pch.h"
#include "tier0/commandline.h"
#include "tier1/cvar.h"

View File

@ -4,7 +4,6 @@
//
// $NoKeywords: $
//=============================================================================//
#include "tier0_pch.h"
#include "tier0/cpu.h"
#include "tier0/cputopology.h"
#include "tier0/fasttimer.h"

View File

@ -5,8 +5,6 @@
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//-------------------------------------------------------------------------------------
#include "tier0_pch.h"
#if defined(_WIN32) && !defined(_X360) && !defined(_PS3)
#include "tier0/cputopology.h"

View File

@ -3,7 +3,6 @@
// Purpose: Crash handler (overrides the game's implementation!)
//
//=============================================================================//
#include "tier0_pch.h"
#include "tier0/binstream.h"
#include "tier0/cpu.h"
#include "tier0/crashhandler.h"

View File

@ -6,7 +6,6 @@
//
//===========================================================================//
#include "tier0_pch.h"
#include "tier0/dbg.h"
#include "tier0/platform.h"
#ifndef NETCONSOLE

View File

@ -5,7 +5,6 @@
// $NoKeywords: $
//=============================================================================//
#include "tier0_pch.h"
#include "tier0/fasttimer.h"
// Constructor init the clock speed.

View File

@ -5,7 +5,6 @@
//-----------------------------------------------------------------------------
//
//=============================================================================//
#include "tier0_pch.h"
#include "tier0/frametask.h"
//-----------------------------------------------------------------------------

View File

@ -1,5 +1,4 @@
#include "tier0_pch.h"
#include "engine/host_cmd.h"
#include "tier0/jobthread.h"

View File

@ -3,7 +3,6 @@
// Purpose: Implementation of the CMemory class.
//
//===========================================================================//
#include "tier0_pch.h"
#include "tier0/memaddr.h"
//-----------------------------------------------------------------------------

View File

@ -3,7 +3,6 @@
// Purpose: Implementation of the CModule class.
//
//===========================================================================//
#include "tier0_pch.h"
#include "tier0/memaddr.h"
#include "tier0/sigcache.h"

View File

@ -1,4 +1,3 @@
#include "tier0_pch.h"
#include "tier0/platform_internal.h"
//-----------------------------------------------------------------------------

View File

@ -16,7 +16,6 @@
// searching for each signature in the memory region of the target executable.
//
///////////////////////////////////////////////////////////////////////////////
#include "tier0_pch.h"
#include "tier0/sigcache.h"
#include "tier0/binstream.h"

View File

@ -6,7 +6,6 @@
// $NoKeywords: $
//===========================================================================//
#include "tier0_pch.h"
#include "tier0/threadtools.h"
int32 ThreadInterlockedCompareExchange(LONG volatile* pDest, int32 value, int32 comperand)

View File

@ -1,31 +0,0 @@
//===========================================================================//
//
// Purpose: Tier0 precompiled header file.
//
//===========================================================================//
#ifndef TIER0_PCH_H
#define TIER0_PCH_H
#include "core/shared_pch.h"
#include "thirdparty/detours/include/detours.h"
#include "thirdparty/detours/include/idetour.h"
#include "thirdparty/lzham/include/lzham_assert.h"
#include "thirdparty/lzham/include/lzham_types.h"
#include "thirdparty/lzham/include/lzham.h"
#include "thirdparty/curl/include/curl/curl.h"
#include "tier0/utility.h"
#include "tier0/memaddr.h"
#include "tier0/module.h"
#include "tier0/basetypes.h"
#include "tier0/platform.h"
#include "tier0/annotations.h"
#include "tier0/commonmacros.h"
#include "tier0/memalloc.h"
#include "tier0/tier0_iface.h"
#include "tier0/dbg.h"
#endif // TIER0_PCH_H

View File

@ -2,7 +2,6 @@
* _utility
*-----------------------------------------------------------------------------*/
#include "tier0_pch.h"
#include "core/logdef.h"
#include "tier0/utility.h"

View File

@ -5,7 +5,6 @@
// DO NOT USE FOR SHIPPING CODE!!!!!!!!!!
//
//===========================================================================//
#include "tier0_pch.h"
#include "tier0/vtable.h"
//-----------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "tier1" "tier0" ${FOLDER_CONTEXT} )
add_module( "lib" "tier1" "vpc" ${FOLDER_CONTEXT} )
start_sources()

View File

@ -4,7 +4,6 @@
// --------------------------------------------------------------------------
//===========================================================================//
#include "tier0_pch.h"
#include "tier1/NetAdr.h"
#include "tier1/strtools.h"

View File

@ -3,7 +3,6 @@
// Purpose: implementation of the CNetKey class.
// --------------------------------------------------------------------------
//===========================================================================//
#include "tier0_pch.h"
#include "tier1/NetKey.h"
//////////////////////////////////////////////////////////////////////

View File

@ -5,7 +5,6 @@
// $NoKeywords: $
//===========================================================================//
#include "tier0_pch.h"
#include "tier1/bitbuf.h"
#include "mathlib/swap.h"
#include "mathlib/bitvec.h"

View File

@ -11,7 +11,6 @@
// $NoKeywords: $
//=============================================================================
#include "tier0_pch.h"
#include "tier1/characterset.h"
// memdbgon must be the last include file in a .cpp file!!!

View File

@ -4,7 +4,6 @@
//
//=============================================================================//
#include "tier0_pch.h"
#include "tier0/tslist.h"
#include "tier0/memstd.h"
#include "tier0/commandline.h"

View File

@ -1,4 +1,3 @@
#include "tier0_pch.h"
#include "tier1/utlrbtree.h"
#include "tier1/NetAdr.h"
#include "tier1/cvar.h"

View File

@ -5,7 +5,6 @@
//
//=============================================================================
#include "tier0_pch.h"
#include "tier0/dbg.h"
#include "tier0/basetypes.h"
#include "tier0/platform.h"

View File

@ -5,7 +5,6 @@
//
//=====================================================================================//
#include "tier0_pch.h"
#include "tier0/platform.h"
#include "tier0/dbg.h"
#include "tier1/lzss.h"

View File

@ -4,7 +4,6 @@
//
//=============================================================================//
#include "tier0_pch.h"
#include "tier0/dbg.h"
#include "tier0/memstd.h"
#include "tier1/memstack.h"

View File

@ -4,7 +4,6 @@
//
//==================================================================================================
#include "tier0_pch.h"
#include "tier1/strtools.h"
#include "tier1/utlvector.h"

View File

@ -5,7 +5,6 @@
// $NoKeywords: $
//===========================================================================//
#include "tier0_pch.h"
#include "tier0/dbg.h"
#include "tier1/strtools.h"
#include "tier1/stringpool.h"

View File

@ -1,4 +1,3 @@
#include "tier0_pch.h"
#include "tier1/strtools.h"
FORCEINLINE unsigned char tolower_fast(unsigned char c)

View File

@ -8,7 +8,6 @@
#pragma warning (disable : 4514)
#include "tier0_pch.h"
#include "tier1/utlbuffer.h"
#include "tier1/strtools.h"
#include "tier1/characterset.h"

View File

@ -4,7 +4,6 @@
//
//=============================================================================
#include "tier0_pch.h"
#include "tier1/utlstring.h"
#include "tier1/utlvector.h"
#include "tier1/strtools.h"

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "lib" "tier2" "tier0" ${FOLDER_CONTEXT} )
add_module( "lib" "tier2" "vpc" ${FOLDER_CONTEXT} )
start_sources()

View File

@ -6,7 +6,6 @@
//
///////////////////////////////////////////////////////////////////////////////
#include "tier0_pch.h"
#include "mathlib/color.h"
#include "mathlib/vector.h"
#include "mathlib/vector2d.h"