Actually, there was something to do there

This commit is contained in:
nsubiron 2017-04-26 17:18:24 +02:00
parent 0464d1a24d
commit c587a0e4cd
1 changed files with 17 additions and 1 deletions

View File

@ -140,7 +140,23 @@ public class Carla : ModuleRules
private void AddLibPNGDependency(TargetInfo Target)
{
// Nothing to be done here.
if (Target.Platform == UnrealTargetPlatform.Linux)
{
string UE4Root = System.Environment.GetEnvironmentVariable("UE4_ROOT");
if (string.IsNullOrEmpty(UE4Root))
{
PublicAdditionalLibraries.Add("png");
}
else
{
if (!System.IO.Directory.Exists(UE4Root))
{
throw new System.Exception("UE4_ROOT points to a non-existant directory, please correct this environment variable.");
}
PublicAdditionalLibraries.Add("ThirdParty/libPNG/libPNG-1.5.2/lib/Linux/x86_64-unknown-linux-gnu/libpng.a");
PublicAdditionalLibraries.Add("ThirdParty/zlib/v1.2.8/lib/Linux/x86_64-unknown-linux-gnu/libz_fPIC.a");
}
}
}
private void AddCarlaServerDependency(TargetInfo Target)