Files
UnrealEngineUWP/Engine/Source/Programs/UnrealFrontend/Private/Commands/PackageCommand.cpp
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

28 lines
652 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "PackageCommand.h"
#include "Interfaces/ITargetPlatform.h"
#include "Interfaces/ITargetPlatformManagerModule.h"
#include "Misc/CommandLine.h"
#include "Misc/CoreMisc.h"
void FPackageCommand::Run( )
{
FString SourceDir;
FParse::Value(FCommandLine::Get(), TEXT("-SOURCEDIR="), SourceDir);
ITargetPlatformManagerModule* TPM = GetTargetPlatformManager();
if (TPM)
{
const TArray<ITargetPlatform*>& Platforms = TPM->GetActiveTargetPlatforms();
for (int32 Index = 0; Index < Platforms.Num(); ++Index)
{
if (Platforms[Index]->PackageBuild(SourceDir))
{
}
}
}
}