diff --git a/.gitignore b/.gitignore index e59acaccc..3c061ecef 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ bld/ [Bb]in/ [Oo]bj/ -*.cs +#*.cs *.tt *.db *.asm @@ -38,9 +38,10 @@ bld/ *.suo *.obj *.sdf -*.pdb -*.dll -*.lib +#*.bin +#*.pdb +#*.dll +#*.lib *.exe *.spv *.dat @@ -49,7 +50,6 @@ bld/ *.ilk *.map *.idb -#*.bin *.ncb *.htm *.dep diff --git a/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.dll b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.dll new file mode 100644 index 000000000..ab0f56f4b Binary files /dev/null and b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.dll differ diff --git a/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.lib b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.lib new file mode 100644 index 000000000..3a067aa89 Binary files /dev/null and b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.lib differ diff --git a/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.pdb b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.pdb new file mode 100644 index 000000000..c4feaac7b Binary files /dev/null and b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.pdb differ diff --git a/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/Win64/UnrealEditor-newton.dll b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/Win64/UnrealEditor-newton.dll new file mode 100644 index 000000000..e20e13bbf Binary files /dev/null and b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/Win64/UnrealEditor-newton.dll differ diff --git a/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/Win64/UnrealEditor-newton.pdb b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/Win64/UnrealEditor-newton.pdb new file mode 100644 index 000000000..086be61fa Binary files /dev/null and b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Binaries/Win64/UnrealEditor-newton.pdb differ diff --git a/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Source/ThirdParty/newtonLibrary/newtonLibrary.Build.cs b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Source/ThirdParty/newtonLibrary/newtonLibrary.Build.cs new file mode 100644 index 000000000..cc9034173 --- /dev/null +++ b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Source/ThirdParty/newtonLibrary/newtonLibrary.Build.cs @@ -0,0 +1,37 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +using System.IO; +using UnrealBuildTool; + +public class newtonLibrary : ModuleRules +{ + public newtonLibrary(ReadOnlyTargetRules Target) : base(Target) + { + Type = ModuleType.External; + PublicSystemIncludePaths.Add("$(ModuleDir)/Public"); + + if (Target.Platform == UnrealTargetPlatform.Win64) + { + // Add the import library + PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "x64", "Release", "ExampleLibrary.lib")); + + // Delay-load the DLL, so we can load it from the right place first + PublicDelayLoadDLLs.Add("ExampleLibrary.dll"); + + // Ensure that the DLL is staged along with the executable + RuntimeDependencies.Add("$(PluginDir)/Binaries/ThirdParty/newtonLibrary/Win64/ExampleLibrary.dll"); + } + else if (Target.Platform == UnrealTargetPlatform.Mac) + { + PublicDelayLoadDLLs.Add(Path.Combine(ModuleDirectory, "Mac", "Release", "libExampleLibrary.dylib")); + RuntimeDependencies.Add("$(PluginDir)/Source/ThirdParty/newtonLibrary/Mac/Release/libExampleLibrary.dylib"); + } + else if (Target.Platform == UnrealTargetPlatform.Linux) + { + string ExampleSoPath = Path.Combine("$(PluginDir)", "Binaries", "ThirdParty", "newtonLibrary", "Linux", "x86_64-unknown-linux-gnu", "libExampleLibrary.so"); + PublicAdditionalLibraries.Add(ExampleSoPath); + PublicDelayLoadDLLs.Add(ExampleSoPath); + RuntimeDependencies.Add(ExampleSoPath); + } + } +} diff --git a/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Source/newton/newton.Build.cs b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Source/newton/newton.Build.cs new file mode 100644 index 000000000..df6b1bc65 --- /dev/null +++ b/newton-4.00/applications/toolsAndWrapers/newtonUnreal/newton/Source/newton/newton.Build.cs @@ -0,0 +1,75 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +using UnrealBuildTool; + +public class newton : ModuleRules +{ + public newton(ReadOnlyTargetRules Target) : base(Target) + { + PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; + + PrivateDefinitions.Add("_D_CORE_DLL"); + PrivateDefinitions.Add("_D_NEWTON_DLL"); + PrivateDefinitions.Add("_D_COLLISION_DLL"); + + PublicIncludePaths.AddRange( + new string[] { + // ... add public include paths required here ... + } + ); + + + PrivateIncludePaths.AddRange( + new string[] { + // ... add other private include paths required here ... + "ThirdParty/newtonLibrary/Public/dCore/", + "ThirdParty/newtonLibrary/Public/dNewton/", + "ThirdParty/newtonLibrary/Public/dCollision/", + "ThirdParty/newtonLibrary/Public/thirdParty/", + "ThirdParty/newtonLibrary/Public/dNewton/dJoints/", + "ThirdParty/newtonLibrary/Public/dNewton/dModels/", + "ThirdParty/newtonLibrary/Public/dNewton/dIkSolver/", + "ThirdParty/newtonLibrary/Public/dNewton/dModels/dVehicle/" + } + ); + + + PublicDependencyModuleNames.AddRange( + new string[] + { + "Core", + "Slate", + "Engine", + "UnrealEd", + "Projects", + "SlateCore", + "ToolMenus", + "Landscape", + "CoreUObject", + "PhysicsCore", + "GeometryCore", + "EditorFramework", + "GeometryFramework", + + // ... add other public dependencies that you statically link with here ... + "newtonLibrary" + } + ); + + + PrivateDependencyModuleNames.AddRange( + new string[] + { + // ... add private dependencies that you statically link with here ... + } + ); + + + DynamicallyLoadedModuleNames.AddRange( + new string[] + { + // ... add any modules that your module loads dynamically here ... + } + ); + } +}