I have added a project to ue4 solution, Using
- target.cs
TestLibTarget(TargetInfo Target)
{
Type = TargetType.Program
}
- build.cs
SetupBinaries(…)
{
…
new UEBuildBinaryConfiguration(InType: UEBuildBinaryType.staticLibrary, …)
}
but UBT makes exe file.
I debug it and I found a Issue.
UnrealBuildTool::RunUBT( ) →
UEBuildTarget::CreateTarget( ) →
UEBuildTarget::CreateTarget( ) →
UEBuildTarget::UEBuildTarget( ) →
UEBuildTarget::MakeBinaryPaths("",AppName, UEBuildBinaryType.Executable, TargetType, …)
UBT always use “UEBuildBinaryType.Executable” binary type at this timing.
SetupBinaries() function is called later. but it doesn’t makes affect to binary output extension.
Is this situation a Bug?