-
Notifications
You must be signed in to change notification settings - Fork 79
/
build.proj
24 lines (24 loc) · 1.66 KB
/
build.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PluginFolder>$(MSBuildProjectDirectory)</PluginFolder>
<PluginFile>$([System.IO.Path]::Combine($(PluginFolder), `VisualStudioTools.uplugin`))</PluginFile>
<OutputPath Condition=" '$(OutputPath)'=='' ">$([System.IO.Path]::Combine($(PluginFolder), "bin"))</OutputPath>
<EnginePath>$(UnrealEngine)</EnginePath>
<EnginePath Condition="!Exists('$(EnginePath)')">
$([MSBuild]::GetRegistryValue('HKEY_LOCAL_MACHINE\SOFTWARE\EpicGames\Unreal Engine\$(UnrealEngine)', 'InstalledDirectory'))
</EnginePath>
<UATScript>$(EnginePath.Trim())\Engine\Build\BatchFiles\RunUAT.bat</UATScript>
<UnversionedFlag Condition=" '$(Versioned)' != 'true'">-Unversioned</UnversionedFlag>
<AdditionalFlags Condition=" '$(VulkanReadyBinaries)' == 'true'">-ubtargs="-LinkerArguments=\"/profile\" "</AdditionalFlags>
</PropertyGroup>
<Target Name="Build">
<Error Text="Cannot locate the RunUAT.bat script at $(UATScript). Check if the $UnrealEngine property is a valid path or installed version." Condition="!Exists('$(UATScript)')"></Error>
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" />
<Exec
Command=""$(UATScript)" BuildPlugin -Plugin="$(PluginFile)" -TargetPlatforms=Win64 -Package="$(OutputPath)" $(AdditionalFlags) $(UnversionedFlag) -FromMsBuild"
EnvironmentVariables="VSTUE_IsCustomDevBuild=1"/>
</Target>
<Target Name="Clean" >
<RemoveDir Directories="$(OutputPath);"/>
</Target>
</Project>