From f0e65eea1fa41c196cd1ae51c9e3dba16f720925 Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Mon, 2 Oct 2023 14:18:51 +1100 Subject: [PATCH] Attempt to reduce binary size and build time. Maybe caused by all the stuff I added to the precompiled header? --- Source/CesiumEditor/Private/PCH.h | 16 ++++++++-------- .../Private/CesiumBoundingVolumeComponent.h | 2 +- .../Private/CesiumTileExcluderAdapter.cpp | 4 ++++ .../Private/CesiumTileExcluderAdapter.h | 5 +++++ Source/CesiumRuntime/Private/PCH.h | 12 ++++++------ 5 files changed, 24 insertions(+), 15 deletions(-) diff --git a/Source/CesiumEditor/Private/PCH.h b/Source/CesiumEditor/Private/PCH.h index c14bced46..bf6462fb8 100644 --- a/Source/CesiumEditor/Private/PCH.h +++ b/Source/CesiumEditor/Private/PCH.h @@ -19,11 +19,11 @@ #endif #endif -#include "Blueprint/UserWidget.h" -#include "Components/MeshComponent.h" -#include "Components/PrimitiveComponent.h" -#include "Components/WidgetComponent.h" -#include "Engine/Engine.h" -#include "Engine/World.h" -#include "Physics/PhysicsInterfaceCore.h" -#include "PhysicsEngine/BodyInstance.h" +//#include "Blueprint/UserWidget.h" +//#include "Components/MeshComponent.h" +//#include "Components/PrimitiveComponent.h" +//#include "Components/WidgetComponent.h" +//#include "Engine/Engine.h" +//#include "Engine/World.h" +//#include "Physics/PhysicsInterfaceCore.h" +//#include "PhysicsEngine/BodyInstance.h" diff --git a/Source/CesiumRuntime/Private/CesiumBoundingVolumeComponent.h b/Source/CesiumRuntime/Private/CesiumBoundingVolumeComponent.h index 79cf69d01..05bc9b582 100644 --- a/Source/CesiumRuntime/Private/CesiumBoundingVolumeComponent.h +++ b/Source/CesiumRuntime/Private/CesiumBoundingVolumeComponent.h @@ -2,7 +2,6 @@ #pragma once -#include "CesiumViewExtension.h" #include "Components/PrimitiveComponent.h" #include "Components/SceneComponent.h" #include "CoreMinimal.h" @@ -16,6 +15,7 @@ #include "CesiumBoundingVolumeComponent.generated.h" class ACesiumGeoreference; +class CesiumViewExtension; UCLASS() class UCesiumBoundingVolumePoolComponent : public USceneComponent { diff --git a/Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.cpp b/Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.cpp index f529b2e3f..3bbf8985c 100644 --- a/Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.cpp +++ b/Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.cpp @@ -1,4 +1,8 @@ +// Copyright 2020-2023 CesiumGS, Inc. and Contributors + #include "CesiumTileExcluderAdapter.h" +#include "Cesium3DTilesSelection/Tile.h" +#include "CesiumGeoreference.h" #include "VecMath.h" bool CesiumTileExcluderAdapter::shouldExclude( diff --git a/Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.h b/Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.h index 92f753db0..0a39a1de2 100644 --- a/Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.h +++ b/Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.h @@ -1,8 +1,13 @@ +// Copyright 2020-2023 CesiumGS, Inc. and Contributors + #pragma once + #include "CesiumTile.h" #include "CesiumTileExcluder.h" #include +class ACesiumGeoreference; + class CesiumTileExcluderAdapter : public Cesium3DTilesSelection::ITileExcluder { virtual bool shouldExclude( const Cesium3DTilesSelection::Tile& tile) const noexcept override; diff --git a/Source/CesiumRuntime/Private/PCH.h b/Source/CesiumRuntime/Private/PCH.h index 5d5226f95..697bba1dc 100644 --- a/Source/CesiumRuntime/Private/PCH.h +++ b/Source/CesiumRuntime/Private/PCH.h @@ -19,9 +19,9 @@ #endif #endif -#include "Components/MeshComponent.h" -#include "Components/PrimitiveComponent.h" -#include "Engine/Engine.h" -#include "Engine/World.h" -#include "Physics/PhysicsInterfaceCore.h" -#include "PhysicsEngine/BodyInstance.h" +//#include "Components/MeshComponent.h" +//#include "Components/PrimitiveComponent.h" +//#include "Engine/Engine.h" +//#include "Engine/World.h" +//#include "Physics/PhysicsInterfaceCore.h" +//#include "PhysicsEngine/BodyInstance.h"