-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mvanneutigem/feature/UE5
Feature/ue5
- Loading branch information
Showing
144 changed files
with
27,931 additions
and
5,556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"FileVersion": 3, | ||
"Version": 1, | ||
"VersionName": "1.0", | ||
"FriendlyName": "OpenTimelineIO", | ||
"Description": "OpenTimelineIO library.", | ||
"Category": "Other", | ||
"CreatedBy": "Marieke van Neutigem", | ||
"CreatedByURL": "https://mariekevanneutigem.nl/", | ||
"DocsURL": "", | ||
"MarketplaceURL": "", | ||
"SupportURL": "", | ||
"CanContainContent": true, | ||
"IsBetaVersion": true, | ||
"IsExperimentalVersion": true, | ||
"Installed": false, | ||
"Modules": [ | ||
{ | ||
"Name": "OpenTimelineIO", | ||
"Type": "Runtime", | ||
"LoadingPhase": "Default", | ||
"WhitelistPlatforms": [ | ||
"Win64" | ||
] | ||
} | ||
], | ||
"Plugins": [] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
352 changes: 176 additions & 176 deletions
352
...rce/ThirdParty/opentimelineio/LICENSE.txt → ...rce/ThirdParty/OpenTimelineIO/LICENSE.txt
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
...urce/ThirdParty/opentimelineio/NOTICE.txt → ...urce/ThirdParty/OpenTimelineIO/NOTICE.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
OpenTimelineIO | ||
Copyright Contributors to the OpenTimelineIO project. | ||
All rights reserved. | ||
This product includes software developed at: | ||
Pixar (http://www.pixar.com/). | ||
OpenTimelineIO | ||
Copyright Contributors to the OpenTimelineIO project. | ||
All rights reserved. | ||
|
||
This product includes software developed at: | ||
|
||
Pixar (http://www.pixar.com/). |
153 changes: 82 additions & 71 deletions
153
...ty/opentimelineio/opentimelineio.build.cs → ...ty/OpenTimelineIO/OpenTimelineIO.build.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,82 @@ | ||
// Copyright Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
|
||
public class opentimelineio : ModuleRules | ||
{ | ||
public opentimelineio(ReadOnlyTargetRules Target) : base(Target) | ||
{ | ||
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; | ||
|
||
PublicIncludePaths.AddRange( | ||
new string[] { | ||
// ... add public include paths required here ... | ||
"$(PluginDir)/Source/ThirdParty/opentimelineio/include", | ||
"$(PluginDir)/Source/ThirdParty/opentimelineio/include/opentimelineio/deps", | ||
} | ||
); | ||
|
||
|
||
PrivateIncludePaths.AddRange( | ||
new string[] { | ||
// ... add other private include paths required here ... | ||
} | ||
); | ||
|
||
|
||
PublicDependencyModuleNames.AddRange( | ||
new string[] | ||
{ | ||
"Core", | ||
"Projects" | ||
// ... add other public dependencies that you statically link with here ... | ||
} | ||
); | ||
|
||
|
||
PrivateDependencyModuleNames.AddRange( | ||
new string[] | ||
{ | ||
"CoreUObject", | ||
"Engine", | ||
"Slate", | ||
"SlateCore", | ||
// ... add private dependencies that you statically link with here ... | ||
} | ||
); | ||
|
||
|
||
DynamicallyLoadedModuleNames.AddRange( | ||
new string[] | ||
{ | ||
// ... add any modules that your module loads dynamically here ... | ||
} | ||
); | ||
|
||
if (Target.Platform == UnrealTargetPlatform.Win64) | ||
{ | ||
// Add the import library | ||
PublicAdditionalLibraries.Add("$(PluginDir)/Source/ThirdParty/opentimelineio/opentimelineio.lib"); | ||
PublicAdditionalLibraries.Add("$(PluginDir)/Source/ThirdParty/opentimelineio/opentime.lib"); | ||
|
||
// Delay-load the DLL, so we can load it from the right place first | ||
PublicDelayLoadDLLs.Add("opentimelineio.dll"); | ||
PublicDelayLoadDLLs.Add("opentime.dll"); | ||
|
||
// Ensure that the DLL is staged along with the executable | ||
RuntimeDependencies.Add("$(PluginDir)/Source/ThirdParty/opentimelineio/opentimelineio.dll"); | ||
RuntimeDependencies.Add("$(PluginDir)/Source/ThirdParty/opentimelineio/opentime.dll"); | ||
} | ||
} | ||
} | ||
// Copyright Epic Games, Inc. All Rights Reserved. | ||
|
||
using UnrealBuildTool; | ||
|
||
public class OpenTimelineIO : ModuleRules | ||
{ | ||
public OpenTimelineIO(ReadOnlyTargetRules Target) : base(Target) | ||
{ | ||
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; | ||
|
||
PublicIncludePaths.AddRange( | ||
new string[] { | ||
// ... add public include paths required here ... | ||
"$(PluginDir)/Source/ThirdParty/OpenTimelineIO/include", | ||
"$(PluginDir)/Source/ThirdParty/OpenTimelineIO/include/Imath", | ||
"$(PluginDir)/Source/ThirdParty/OpenTimelineIO/include/opentimelineio/deps", | ||
// "$(PluginDir)/Source/ThirdParty/OpenTimelineIO/public_include", | ||
//"$(PluginDir)/Source/ThirdParty/OpenTimelineIO/public_include/Imath", | ||
//"$(PluginDir)/Source/ThirdParty/OpenTimelineIO/public_include/opentimelineio/deps", | ||
} | ||
); | ||
|
||
|
||
PrivateIncludePaths.AddRange( | ||
new string[] { | ||
// ... add other private include paths required here ... | ||
} | ||
); | ||
|
||
|
||
PublicDependencyModuleNames.AddRange( | ||
new string[] | ||
{ | ||
"Core", | ||
"Projects" | ||
// ... add other public dependencies that you statically link with here ... | ||
} | ||
); | ||
|
||
|
||
PrivateDependencyModuleNames.AddRange( | ||
new string[] | ||
{ | ||
"CoreUObject", | ||
"Engine", | ||
"Slate", | ||
"SlateCore", | ||
// ... add private dependencies that you statically link with here ... | ||
} | ||
); | ||
|
||
|
||
DynamicallyLoadedModuleNames.AddRange( | ||
new string[] | ||
{ | ||
// ... add any modules that your module loads dynamically here ... | ||
} | ||
); | ||
|
||
|
||
if (Target.Platform == UnrealTargetPlatform.Win64) | ||
{ | ||
|
||
//// Add the import library | ||
PublicAdditionalLibraries.Add("$(PluginDir)/Source/ThirdParty/OpenTimelineIO/opentimelineio.lib"); | ||
PublicAdditionalLibraries.Add("$(PluginDir)/Source/ThirdParty/OpenTimelineIO/opentime.lib"); | ||
PublicAdditionalLibraries.Add("$(PluginDir)/Source/ThirdParty/OpenTimelineIO/Imath-3_2.lib"); | ||
|
||
|
||
//// Add runtime dependency | ||
RuntimeDependencies.Add("$(PluginDir)/Source/ThirdParty/OpenTimelineIO/opentimelineio.dll"); | ||
RuntimeDependencies.Add("$(PluginDir)/Source/ThirdParty/OpenTimelineIO/opentime.dll"); | ||
|
||
|
||
//// Delay-load the DLL | ||
PublicDelayLoadDLLs.Add("opentimelineio.dll"); | ||
PublicDelayLoadDLLs.Add("opentime.dll"); | ||
|
||
|
||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
OpenTimelineIO/Source/ThirdParty/OpenTimelineIO/OpenTimelineIO.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright Epic Games, Inc. All Rights Reserved. | ||
|
||
#include "OpenTimelineIO.h" | ||
#include "Core.h" | ||
#include "Modules/ModuleManager.h" | ||
#include "Interfaces/IPluginManager.h" | ||
|
||
//otio | ||
#include "opentimelineio/timeline.h" | ||
#include "opentimelineio/stack.h" | ||
#include "opentimelineio/track.h" | ||
#include "opentimelineio/clip.h" | ||
#include "opentimelineio/externalReference.h" | ||
|
||
#include <string> | ||
|
||
namespace otio = opentimelineio::OPENTIMELINEIO_VERSION; | ||
|
||
#define LOCTEXT_NAMESPACE "FOpenTimelineIOModule" | ||
|
||
void FOpenTimelineIOModule::StartupModule() | ||
{ | ||
// This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module | ||
|
||
// Get the base directory of this plugin | ||
FString BaseDir = IPluginManager::Get().FindPlugin("OpenTimelineIO")->GetBaseDir(); | ||
|
||
// Add on the relative location of the third party dll and load it | ||
FString LibraryPath; | ||
LibraryPath = FPaths::Combine(*BaseDir, TEXT("Source/ThirdParty/OpenTimelineIO/opentimelineio.dll")); | ||
|
||
opentimelineioLibraryHandle = !LibraryPath.IsEmpty() ? FPlatformProcess::GetDllHandle(*LibraryPath) : nullptr; | ||
|
||
if (opentimelineioLibraryHandle) | ||
{ | ||
FMessageDialog::Open(EAppMsgType::Ok, LOCTEXT("ThirdPartyLibraryError", "Succesfully loaded otio library")); | ||
} | ||
else { | ||
FMessageDialog::Open(EAppMsgType::Ok, LOCTEXT("ThirdPartyLibraryError", "Failed to load otio library")); | ||
} | ||
|
||
} | ||
|
||
void FOpenTimelineIOModule::DoSomething() { | ||
auto name = std::string("SomeName"); | ||
|
||
auto newtimeline = otio::SerializableObject::Retainer<otio::Timeline>(new otio::Timeline(name)); | ||
} | ||
|
||
void FOpenTimelineIOModule::ShutdownModule() | ||
{ | ||
// This function may be called during shutdown to clean up your module. For modules that support dynamic reloading, | ||
// we call this function before unloading the module. | ||
|
||
// Free the dll handle | ||
FPlatformProcess::FreeDllHandle(opentimelineioLibraryHandle); | ||
opentimelineioLibraryHandle = nullptr; | ||
} | ||
|
||
#undef LOCTEXT_NAMESPACE | ||
|
||
IMPLEMENT_MODULE(FOpenTimelineIOModule, OpenTimelineIO) |
38 changes: 20 additions & 18 deletions
38
...hirdParty/opentimelineio/opentimelineio.h → ...hirdParty/OpenTimelineIO/OpenTimelineIO.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
// Copyright Epic Games, Inc. All Rights Reserved. | ||
|
||
#pragma once | ||
|
||
#include "Modules/ModuleManager.h" | ||
|
||
class FopentimelineioModule : public IModuleInterface | ||
{ | ||
public: | ||
|
||
/** IModuleInterface implementation */ | ||
virtual void StartupModule() override; | ||
virtual void ShutdownModule() override; | ||
|
||
private: | ||
/** Handle to the test dll we will load */ | ||
void* ExampleLibraryHandle; | ||
}; | ||
// Copyright Epic Games, Inc. All Rights Reserved. | ||
|
||
#pragma once | ||
|
||
#include "Modules/ModuleManager.h" | ||
|
||
class FOpenTimelineIOModule : public IModuleInterface | ||
{ | ||
public: | ||
|
||
/** IModuleInterface implementation */ | ||
virtual void StartupModule() override; | ||
virtual void ShutdownModule() override; | ||
void DoSomething(); | ||
|
||
private: | ||
/** Handle to the test dll we will load */ | ||
void* opentimelineioLibraryHandle; | ||
|
||
}; |
Oops, something went wrong.