2015-03-30 14:10:13 -04:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "BlueprintCompilerCppBackendModulePrivatePCH.h"
|
|
|
|
|
#include "IBlueprintCompilerCppBackendModule.h"
|
|
|
|
|
#include "ModuleManager.h"
|
2015-03-31 02:49:50 -04:00
|
|
|
#include "BlueprintCompilerCppBackend.h"
|
2015-09-18 14:00:49 -04:00
|
|
|
#include "BlueprintCompilerCppBackendUtils.h" // for FEmitHelper::GetBaseFilename()
|
2015-03-30 14:10:13 -04:00
|
|
|
|
|
|
|
|
class FBlueprintCompilerCppBackendModule : public IBlueprintCompilerCppBackendModule
|
|
|
|
|
{
|
|
|
|
|
/** IModuleInterface implementation */
|
|
|
|
|
virtual void StartupModule() override;
|
|
|
|
|
virtual void ShutdownModule() override;
|
2015-07-22 06:25:54 -04:00
|
|
|
virtual IBlueprintCompilerCppBackend* Create() override;
|
2015-03-30 14:10:13 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_MODULE(FBlueprintCompilerCppBackendModule, BlueprintCompilerCppBackend)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void FBlueprintCompilerCppBackendModule::StartupModule()
|
|
|
|
|
{
|
|
|
|
|
// This code will execute after your module is loaded into memory (but after global variables are initialized, of course.)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void FBlueprintCompilerCppBackendModule::ShutdownModule()
|
|
|
|
|
{
|
|
|
|
|
// This function may be called during shutdown to clean up your module. For modules that support dynamic reloading,
|
|
|
|
|
// we call this function before unloading the module.
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-22 06:25:54 -04:00
|
|
|
IBlueprintCompilerCppBackend* FBlueprintCompilerCppBackendModule::Create()
|
2015-03-30 14:10:13 -04:00
|
|
|
{
|
2015-07-22 06:25:54 -04:00
|
|
|
return new FBlueprintCompilerCppBackend();
|
2015-03-30 14:10:13 -04:00
|
|
|
}
|
2015-09-18 14:00:49 -04:00
|
|
|
|
|
|
|
|
FString IBlueprintCompilerCppBackendModule::GetBaseFilename(const UObject* AssetObj)
|
|
|
|
|
{
|
|
|
|
|
// use the same function that the backend uses for #includes
|
|
|
|
|
return FEmitHelper::GetBaseFilename(AssetObj);
|
|
|
|
|
}
|