mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
b57eb0c0c3
commit
d809a9f633
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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 )
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/binstream.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -4,7 +4,6 @@
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/commandline.h"
|
||||
#include "tier1/cvar.h"
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/cpu.h"
|
||||
#include "tier0/cputopology.h"
|
||||
#include "tier0/fasttimer.h"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -6,7 +6,6 @@
|
||||
//
|
||||
//===========================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/dbg.h"
|
||||
#include "tier0/platform.h"
|
||||
#ifndef NETCONSOLE
|
||||
|
@ -5,7 +5,6 @@
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/fasttimer.h"
|
||||
|
||||
// Constructor init the clock speed.
|
||||
|
@ -5,7 +5,6 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
//=============================================================================//
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/frametask.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -1,5 +1,4 @@
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "engine/host_cmd.h"
|
||||
#include "tier0/jobthread.h"
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: Implementation of the CMemory class.
|
||||
//
|
||||
//===========================================================================//
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/memaddr.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: Implementation of the CModule class.
|
||||
//
|
||||
//===========================================================================//
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/memaddr.h"
|
||||
#include "tier0/sigcache.h"
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/platform_internal.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -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"
|
||||
|
||||
|
@ -6,7 +6,6 @@
|
||||
// $NoKeywords: $
|
||||
//===========================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/threadtools.h"
|
||||
|
||||
int32 ThreadInterlockedCompareExchange(LONG volatile* pDest, int32 value, int32 comperand)
|
||||
|
@ -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
|
@ -2,7 +2,6 @@
|
||||
* _utility
|
||||
*-----------------------------------------------------------------------------*/
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "core/logdef.h"
|
||||
#include "tier0/utility.h"
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
// DO NOT USE FOR SHIPPING CODE!!!!!!!!!!
|
||||
//
|
||||
//===========================================================================//
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/vtable.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -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()
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
// --------------------------------------------------------------------------
|
||||
//===========================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier1/NetAdr.h"
|
||||
#include "tier1/strtools.h"
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
// Purpose: implementation of the CNetKey class.
|
||||
// --------------------------------------------------------------------------
|
||||
//===========================================================================//
|
||||
#include "tier0_pch.h"
|
||||
#include "tier1/NetKey.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@ -5,7 +5,6 @@
|
||||
// $NoKeywords: $
|
||||
//===========================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier1/bitbuf.h"
|
||||
#include "mathlib/swap.h"
|
||||
#include "mathlib/bitvec.h"
|
||||
|
@ -11,7 +11,6 @@
|
||||
// $NoKeywords: $
|
||||
//=============================================================================
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier1/characterset.h"
|
||||
|
||||
// memdbgon must be the last include file in a .cpp file!!!
|
||||
|
@ -4,7 +4,6 @@
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/tslist.h"
|
||||
#include "tier0/memstd.h"
|
||||
#include "tier0/commandline.h"
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include "tier0_pch.h"
|
||||
#include "tier1/utlrbtree.h"
|
||||
#include "tier1/NetAdr.h"
|
||||
#include "tier1/cvar.h"
|
||||
|
@ -5,7 +5,6 @@
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/dbg.h"
|
||||
#include "tier0/basetypes.h"
|
||||
#include "tier0/platform.h"
|
||||
|
@ -5,7 +5,6 @@
|
||||
//
|
||||
//=====================================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/platform.h"
|
||||
#include "tier0/dbg.h"
|
||||
#include "tier1/lzss.h"
|
||||
|
@ -4,7 +4,6 @@
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/dbg.h"
|
||||
#include "tier0/memstd.h"
|
||||
#include "tier1/memstack.h"
|
||||
|
@ -4,7 +4,6 @@
|
||||
//
|
||||
//==================================================================================================
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier1/strtools.h"
|
||||
#include "tier1/utlvector.h"
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
// $NoKeywords: $
|
||||
//===========================================================================//
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier0/dbg.h"
|
||||
#include "tier1/strtools.h"
|
||||
#include "tier1/stringpool.h"
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include "tier0_pch.h"
|
||||
#include "tier1/strtools.h"
|
||||
|
||||
FORCEINLINE unsigned char tolower_fast(unsigned char c)
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
#pragma warning (disable : 4514)
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier1/utlbuffer.h"
|
||||
#include "tier1/strtools.h"
|
||||
#include "tier1/characterset.h"
|
||||
|
@ -4,7 +4,6 @@
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "tier1/utlstring.h"
|
||||
#include "tier1/utlvector.h"
|
||||
#include "tier1/strtools.h"
|
||||
|
@ -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()
|
||||
|
||||
|
@ -6,7 +6,6 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "tier0_pch.h"
|
||||
#include "mathlib/color.h"
|
||||
#include "mathlib/vector.h"
|
||||
#include "mathlib/vector2d.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user