Skip to content

Commit fabb4c2

Browse files
author
Roberto De Ioris
committed
no more PCH
1 parent 4dbf21c commit fabb4c2

32 files changed

+93
-82
lines changed

Source/PythonAutomation/PythonAutomation.Build.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public PythonAutomation(TargetInfo Target)
1212
#endif
1313
{
1414
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
15+
string enableUnityBuild = System.Environment.GetEnvironmentVariable("UEP_ENABLE_UNITY_BUILD");
16+
bFasterWithoutUnity = string.IsNullOrEmpty(enableUnityBuild);
1517

1618
PrivateIncludePaths.AddRange(
1719
new string[] {

Source/PythonConsole/Private/PyFbxFactory.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "PythonConsolePrivatePCH.h"
21

32
#include "PyFbxFactory.h"
43
#include "FbxMeshUtils.h"

Source/PythonConsole/Private/PythonConsoleModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
22

3-
#include "PythonConsolePrivatePCH.h"
3+
#include "PythonConsoleModule.h"
44
#include "SPythonConsole.h"
55
#include "SPythonLog.h"
66
#include "Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructureModule.h"

Source/PythonConsole/Private/PythonConsolePrivatePCH.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

Source/PythonConsole/Private/PythonScriptFactory.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "PythonConsolePrivatePCH.h"
21

32
#include "PythonScriptFactory.h"
43
#include "PythonScript.h"

Source/PythonConsole/Private/SPythonConsole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
22

3-
#include "PythonConsolePrivatePCH.h"
3+
#include "SPythonConsole.h"
44
#include "PythonConsoleModule.h"
55
#include "SPythonConsole.h"
66
#include "SPythonLog.h"

Source/PythonConsole/Private/SPythonConsole.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
#pragma once
44

5+
#include "SlateCore.h"
6+
#include "EditorStyle.h"
7+
#include "PythonConsoleModule.h"
58

69
/**
710
* Debug console widget, designed to be summoned on top of a viewport or window
@@ -10,14 +13,14 @@ class SPythonConsole : public SCompoundWidget
1013
{
1114
public:
1215

13-
SLATE_BEGIN_ARGS( SPythonConsole )
16+
SLATE_BEGIN_ARGS(SPythonConsole)
1417
{
1518
}
1619

1720
SLATE_END_ARGS()
1821

19-
/** Constructs this widget */
20-
void Construct( const FArguments& InArgs, const EPythonConsoleStyle::Type InStyle, FPythonConsoleModule* PythonConsoleModule, const FPythonConsoleDelegates* PythonConsoleDelegates );
22+
/** Constructs this widget */
23+
void Construct(const FArguments& InArgs, const EPythonConsoleStyle::Type InStyle, FPythonConsoleModule* PythonConsoleModule, const FPythonConsoleDelegates* PythonConsoleDelegates);
2124

2225
/** Call to set focus to this debug console's editable text box */
2326
void SetFocusToEditableText();

Source/PythonConsole/Private/SPythonLog.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
22

3-
#include "PythonConsolePrivatePCH.h"
43
#include "SPythonLog.h"
54
#include "SScrollBorder.h"
65
#include "GameFramework/GameMode.h"
76
#include "Engine/LocalPlayer.h"
87
#include "GameFramework/GameState.h"
98
#include "SSearchBox.h"
109
#include "Runtime/Launch/Resources/Version.h"
11-
//#include "UnrealEnginePython.h"
10+
#include "Runtime/Slate/Public/Framework/Text/SlateTextLayout.h"
11+
#include "Editor/EditorStyle/Public/Classes/EditorStyleSettings.h"
12+
#include "SlateBasics.h"
13+
#include "EditorStyle.h"
14+
1215
#define LOCTEXT_NAMESPACE "PythonConsole"
1316

1417

Source/PythonConsole/Private/SPythonLog.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#pragma once
44
#include "BaseTextLayoutMarshaller.h"
55
#include "TextFilterExpressionEvaluator.h"
6-
7-
#include "UnrealEnginePython/Public/UnrealEnginePython.h"
6+
#include "SlateCore.h"
7+
#include "UnrealEnginePython.h"
8+
#include "Runtime/Slate/Public/Widgets/Input/SMultiLineEditableTextBox.h"
89

910
class FPythonLogTextLayoutMarshaller;
1011
class SSearchBox;

Source/PythonConsole/PythonConsole.Build.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ public PythonConsole(ReadOnlyTargetRules Target) : base(Target)
1111
public PythonConsole(TargetInfo Target)
1212
#endif
1313
{
14+
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
15+
string enableUnityBuild = System.Environment.GetEnvironmentVariable("UEP_ENABLE_UNITY_BUILD");
16+
bFasterWithoutUnity = string.IsNullOrEmpty(enableUnityBuild);
17+
1418
PrivateIncludePaths.AddRange(
1519
new string[] {
1620
"PythonConsole/Private",

0 commit comments

Comments
 (0)