Files
UnrealEngineUWP/Engine/Build/BatchFiles/FindPlatformExtensionSources.bat
Ben Marsh 0dd13809ed Put C# files for platform extensions under a platform subfolder.
#rb none
#fyi Josh.Adams
#rnx

[CL 6860870 by Ben Marsh in Main branch]
2019-06-06 11:04:22 -04:00

36 lines
1.4 KiB
Batchfile

@echo off
setlocal
rem ## Unreal Engine 4 AutomationTool setup script
rem ## Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
rem ##
rem ## This script is expecting to exist in the UE4/Engine/Build/BatchFiles directory. It will not work correctly
rem ## if you copy it to a different location and run it.
pushd "%~dp0..\..\Source"
mkdir ..\Intermediate\ProjectFiles >NUL 2>NUL
rem Look for any platform extension .cs files, and add them to a file that will be refernced by UBT project, so it can bring them in automatically
set REFERENCE_FILE="%~dp0..\..\Intermediate\ProjectFiles\UnrealBuildTool.csproj.References"
echo ^<?xml version="1.0" encoding="utf-8"?^> > %REFERENCE_FILE%
echo ^<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"^> >> %REFERENCE_FILE%
echo ^<ItemGroup^> >> %REFERENCE_FILE%
if exist "..\..\Platforms" (
pushd "..\..\Platforms"
for /d %%i in ("*") do (
if exist "%%i\Engine\Source\Programs\UnrealBuildTool" (
pushd "%%i\Engine\Source\Programs\UnrealBuildTool"
for %%j in ("*.cs") do (
echo ^<PlatformExtensionCompile Include="..\..\..\..\Platforms\%%i\Engine\Source\Programs\UnrealBuildTool\%%j"^> >> %REFERENCE_FILE%
echo ^<Link^>Platform\%%i\%%j^</Link^> >> %REFERENCE_FILE%
echo ^</PlatformExtensionCompile^> >> %REFERENCE_FILE%
)
popd
)
)
popd
)
echo ^</ItemGroup^> >> %REFERENCE_FILE%
echo ^</Project^> >> %REFERENCE_FILE%