Skip to content

Commit

Permalink
separate module for wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
pasotee committed May 15, 2024
1 parent 085f36a commit f9ca35d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ConfigCat.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"LoadingPhase": "PreDefault",
"PlatformAllowList": [ "Win64", "Mac", "Linux", "Android", "iOS" ]
},
{
"Name": "ConfigCatWrappers",
"Type": "Runtime",
"LoadingPhase": "PreDefault",
"PlatformAllowList": [ "Win64", "Mac", "Linux", "Android", "iOS" ]
},
{
"Name": "ConfigCatEditor",
"Type": "Editor",
Expand Down
26 changes: 26 additions & 0 deletions Source/ConfigCatWrappers/ConfigCatWrappers.Build.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using UnrealBuildTool;

public class ConfigCatWrappers : ModuleRules
{
public ConfigCatWrappers(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;

PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
}
);

PrivateDependencyModuleNames.AddRange(
new string[]
{
"CoreUObject",
"Engine",
"Slate",
"SlateCore"
}
);
}
}
17 changes: 17 additions & 0 deletions Source/ConfigCatWrappers/Private/ConfigCatWrappers.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "ConfigCatWrappers.h"

#define LOCTEXT_NAMESPACE "FConfigCatWrappersModule"

void FConfigCatWrappersModule::StartupModule()
{

}

void FConfigCatWrappersModule::ShutdownModule()
{

}

#undef LOCTEXT_NAMESPACE

IMPLEMENT_MODULE(FConfigCatWrappersModule, ConfigCatWrappers)
11 changes: 11 additions & 0 deletions Source/ConfigCatWrappers/Public/ConfigCatWrappers.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#pragma once

#include "CoreMinimal.h"
#include "Modules/ModuleManager.h"

class FConfigCatWrappersModule : public IModuleInterface
{
public:
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};

0 comments on commit f9ca35d

Please sign in to comment.