You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @ 15913390 and Dev-PerfTest @ 15913304 [CL 15958515 by Marc Audy in ue5-main branch]
72 lines
2.4 KiB
C#
72 lines
2.4 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
|
|
[SupportedPlatforms("Win64", "Mac")]
|
|
public abstract class DatasmithSketchUpRubyBaseTarget : TargetRules
|
|
{
|
|
public DatasmithSketchUpRubyBaseTarget(TargetInfo Target)
|
|
: base(Target)
|
|
{
|
|
Type = TargetType.Program;
|
|
SolutionDirectory = "Programs/Datasmith";
|
|
bBuildInSolutionByDefault = false;
|
|
|
|
bShouldCompileAsDLL = true;
|
|
LinkType = TargetLinkType.Monolithic;
|
|
|
|
WindowsPlatform.ModuleDefinitionFile = "Programs/Enterprise/Datasmith/DatasmithSketchUpRubyExporter/DatasmithSketchUpRubyExporter.def";
|
|
|
|
bBuildDeveloperTools = false;
|
|
bUseMallocProfiler = false;
|
|
bBuildWithEditorOnlyData = true;
|
|
bCompileAgainstEngine = false;
|
|
bCompileAgainstCoreUObject = true;
|
|
bCompileICU = false;
|
|
bUsesSlate = false;
|
|
|
|
bHasExports = true;
|
|
bForceEnableExceptions = true;
|
|
|
|
GlobalDefinitions.Add("UE_EXTERNAL_PROFILING_ENABLED=0"); // For DirectLinkUI (see FDatasmithExporterManager::FInitOptions)
|
|
}
|
|
|
|
protected void AddCopyPostBuildStep(TargetInfo Target)
|
|
{
|
|
string OutputName = "$(TargetName)";
|
|
|
|
PostBuildSteps.Add("echo on");
|
|
|
|
// Copy Ruby scripts
|
|
PostBuildSteps.Add(string.Format("echo D|xcopy /Y /R /F /S \"{0}\" \"{1}\"",
|
|
string.Format(@"$(EngineDir)/Source/Programs/Enterprise/Datasmith/DatasmithSketchUpRubyExporter/Plugin/*.rb"),
|
|
string.Format(@"$(EngineDir)/Binaries/Win64/{0}/Plugin/", ExeBinariesSubFolder)
|
|
));
|
|
|
|
// Copy plugin dll
|
|
PostBuildSteps.Add(string.Format("echo F|xcopy /Y /R /F \"{0}\" \"{1}\"",
|
|
string.Format(@"$(EngineDir)/Binaries/Win64/{0}/{1}.dll", ExeBinariesSubFolder, OutputName),
|
|
string.Format(@"$(EngineDir)/Binaries/Win64/{0}/Plugin/UnrealDatasmithSketchUp/DatasmithSketchUpRuby.so", ExeBinariesSubFolder, OutputName)
|
|
));
|
|
|
|
// Copy resources
|
|
PostBuildSteps.Add(string.Format("echo D|xcopy /Y /R /F /S \"{0}\" \"{1}\"",
|
|
string.Format(@"$(EngineDir)/Source/Programs/Enterprise/Datasmith/DatasmithSketchUpRubyExporter/Resources/Windows"),
|
|
string.Format(@"$(EngineDir)/Binaries/Win64/{0}/Plugin/UnrealDatasmithSketchUp/Resources", ExeBinariesSubFolder)
|
|
));
|
|
}
|
|
|
|
}
|
|
|
|
public class DatasmithSketchUpRuby2020Target : DatasmithSketchUpRubyBaseTarget
|
|
{
|
|
public DatasmithSketchUpRuby2020Target(TargetInfo Target)
|
|
: base(Target)
|
|
{
|
|
LaunchModuleName = "DatasmithSketchUpRuby2020";
|
|
ExeBinariesSubFolder = @"SketchUpRuby/2020";
|
|
|
|
AddCopyPostBuildStep(Target);
|
|
}
|
|
}
|