-
Notifications
You must be signed in to change notification settings - Fork 0
/
MayaLiveLinkPlugin2018Linux.Target.cs
42 lines (35 loc) · 1.57 KB
/
MayaLiveLinkPlugin2018Linux.Target.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public abstract class MayaLiveLinkPluginTargetLinuxBase : TargetRules
{
public MayaLiveLinkPluginTargetLinuxBase(TargetInfo Target) : base(Target)
{
Type = TargetType.Program;
bShouldCompileAsDLL = true;
LinkType = TargetLinkType.Monolithic;
// We only need minimal use of the engine for this plugin
bBuildDeveloperTools = false;
bUseMallocProfiler = false;
bBuildWithEditorOnlyData = true;
bCompileAgainstEngine = false;
bCompileAgainstCoreUObject = true;
bCompileICU = false;
bHasExports = true;
bBuildInSolutionByDefault = false;
// Add a post-build step that copies the output to a file with the .mll extension
string OutputName = "MayaLiveLinkPlugin";
if(Target.Configuration != UnrealTargetConfiguration.Development)
{
OutputName = string.Format("{0}-{1}-{2}", OutputName, Target.Platform, Target.Configuration);
}//MayaLiveLinkPlugin2018Linux.so
PostBuildSteps.Add(string.Format("cp \"$(EngineDir)/Binaries/Linux/libMayaLiveLinkPlugin2018Linux.so\" \"$(EngineDir)/Binaries/Linux/{0}.so\" >nul: & echo Copied output to $(EngineDir)/Binaries/Linux/{0}.so", OutputName));
}
}
public class MayaLiveLinkPlugin2018LinuxTarget : MayaLiveLinkPluginTargetLinuxBase
{
public MayaLiveLinkPlugin2018LinuxTarget(TargetInfo Target) : base(Target)
{
LaunchModuleName = "MayaLiveLinkPlugin2018Linux";
}
}