diff --git a/Source/Swipe/Classes/SwipeComponent.h b/Source/Swipe/Classes/SwipeComponent.h index 7163c14..6cff032 100644 --- a/Source/Swipe/Classes/SwipeComponent.h +++ b/Source/Swipe/Classes/SwipeComponent.h @@ -5,6 +5,7 @@ #pragma once +#include "Components/ActorComponent.h" #include "SwipeComponent.generated.h" UCLASS(ClassGroup = Input, HideCategories = (Activation, "Components|Activation", Collision), meta = (BlueprintSpawnableComponent)) diff --git a/Source/Swipe/Classes/SwipeDelegates.h b/Source/Swipe/Classes/SwipeDelegates.h index dedd25b..2bc5614 100644 --- a/Source/Swipe/Classes/SwipeDelegates.h +++ b/Source/Swipe/Classes/SwipeDelegates.h @@ -5,6 +5,8 @@ #pragma once +#include "UObject/Object.h" +#include "UObject/ScriptMacros.h" #include "SwipeDelegates.generated.h" UCLASS(NotBlueprintable) diff --git a/Source/Swipe/Classes/SwipeSettings.h b/Source/Swipe/Classes/SwipeSettings.h index de03beb..c71c9e4 100644 --- a/Source/Swipe/Classes/SwipeSettings.h +++ b/Source/Swipe/Classes/SwipeSettings.h @@ -5,6 +5,8 @@ #pragma once +#include "UObject/Object.h" +#include "UObject/ScriptMacros.h" #include "SwipeSettings.generated.h" UCLASS(config = Engine, defaultconfig) diff --git a/Source/Swipe/Classes/SwipeViewportClient.h b/Source/Swipe/Classes/SwipeViewportClient.h index 685e34c..0a53262 100644 --- a/Source/Swipe/Classes/SwipeViewportClient.h +++ b/Source/Swipe/Classes/SwipeViewportClient.h @@ -5,6 +5,7 @@ #pragma once +#include "UObject/Object.h" #include "SwipeViewportClient.generated.h" UENUM(BlueprintType) diff --git a/Source/Swipe/Private/SwipeComponent.cpp b/Source/Swipe/Private/SwipeComponent.cpp index de2a0b2..5cec58e 100644 --- a/Source/Swipe/Private/SwipeComponent.cpp +++ b/Source/Swipe/Private/SwipeComponent.cpp @@ -3,6 +3,7 @@ // Copyright (c) 2015 Get Set Games Inc. All rights reserved. // +#include "SwipeComponent.h" #include "SwipePrivatePCH.h" void USwipeComponent::OnRegister() diff --git a/Source/Swipe/Private/SwipeDelegates.cpp b/Source/Swipe/Private/SwipeDelegates.cpp index 08600f8..32ac94d 100644 --- a/Source/Swipe/Private/SwipeDelegates.cpp +++ b/Source/Swipe/Private/SwipeDelegates.cpp @@ -3,6 +3,7 @@ // Copyright (c) 2015 Get Set Games Inc. All rights reserved. // +#include "SwipeDelegates.h" #include "SwipePrivatePCH.h" USwipeDelegates::FTouchDelegate USwipeDelegates::TouchBeganDelegate; diff --git a/Source/Swipe/Private/SwipePrivatePCH.h b/Source/Swipe/Private/SwipePrivatePCH.h index 1de303e..d53a746 100644 --- a/Source/Swipe/Private/SwipePrivatePCH.h +++ b/Source/Swipe/Private/SwipePrivatePCH.h @@ -5,9 +5,6 @@ #pragma once -#include "CoreUObject.h" -#include "Engine.h" - #include "ISwipe.h" // You should place include statements to your module's private header files here. You only need to @@ -15,4 +12,4 @@ DECLARE_LOG_CATEGORY_EXTERN(LogSwipe, Log, All); -#include "SwipeClasses.h" \ No newline at end of file +#include "SwipeClasses.h" diff --git a/Source/Swipe/Private/SwipeSettings.cpp b/Source/Swipe/Private/SwipeSettings.cpp index 01ef14d..82ea0f1 100644 --- a/Source/Swipe/Private/SwipeSettings.cpp +++ b/Source/Swipe/Private/SwipeSettings.cpp @@ -3,6 +3,7 @@ // Copyright (c) 2015 Get Set Games Inc. All rights reserved. // +#include "SwipeSettings.h" #include "SwipePrivatePCH.h" USwipeSettings::USwipeSettings(const FObjectInitializer& ObjectInitializer) diff --git a/Source/Swipe/Private/SwipeViewportClient.cpp b/Source/Swipe/Private/SwipeViewportClient.cpp index a0e5911..88a1017 100644 --- a/Source/Swipe/Private/SwipeViewportClient.cpp +++ b/Source/Swipe/Private/SwipeViewportClient.cpp @@ -3,6 +3,7 @@ // Copyright (c) 2015 Get Set Games Inc. All rights reserved. // +#include "SwipeViewportClient.h" #include "SwipePrivatePCH.h" #include "Runtime/Engine/Classes/Engine/UserInterfaceSettings.h" diff --git a/Source/Swipe/Swipe.Build.cs b/Source/Swipe/Swipe.Build.cs index f98554e..7db7e73 100644 --- a/Source/Swipe/Swipe.Build.cs +++ b/Source/Swipe/Swipe.Build.cs @@ -3,55 +3,61 @@ // Copyright (c) 2015 Get Set Games Inc. All rights reserved. // -namespace UnrealBuildTool.Rules +using UnrealBuildTool; + +public class Swipe : ModuleRules { - public class Swipe : ModuleRules - { - public Swipe(TargetInfo Target) - { - PublicIncludePaths.AddRange( - new string[] { - // ... add public include paths required here ... - } - ); - - PrivateIncludePaths.AddRange( - new string[] { - "Developer/Swipe/Private", - // ... add other private include paths required here ... - } - ); - - PublicDependencyModuleNames.AddRange( - new string[] - { - "Core", - "CoreUObject", - "Engine" - // ... add other public dependencies that you statically link with here ... - } - ); - - PrivateIncludePathModuleNames.AddRange( - new string[] { - "Settings" - } - ); - - - PrivateDependencyModuleNames.AddRange( - new string[] - { - // ... add private dependencies that you statically link with here ... - } - ); - - DynamicallyLoadedModuleNames.AddRange( - new string[] - { - // ... add any modules that your module loads dynamically here ... - } - ); - } + public Swipe(ReadOnlyTargetRules Target) : base(Target) + { + + bEnforceIWYU = false; + PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; + + PublicIncludePaths.AddRange( + new string[] { + "Swipe/Public", + "Swipe/Classes" + // ... add public include paths required here ... + } + ); + + PrivateIncludePaths.AddRange( + new string[] { + "Swipe/Private", + // ... add other private include paths required here ... + } + ); + + PublicDependencyModuleNames.AddRange( + new string[] + { + "Core", + "CoreUObject", + "Engine" + // ... add other public dependencies that you statically link with here ... + } + ); + + PrivateIncludePathModuleNames.AddRange( + new string[] { + "Settings" + } + ); + + + PrivateDependencyModuleNames.AddRange( + new string[] + { + // ... add private dependencies that you statically link with here ... + } + ); + + DynamicallyLoadedModuleNames.AddRange( + new string[] + { + // ... add any modules that your module loads dynamically here ... + } + ); } } +