Actually, there was something to do there
This commit is contained in:
parent
0464d1a24d
commit
c587a0e4cd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue