Skip to content

Commit

Permalink
Initial proof-of-concept.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Mar 6, 2017
0 parents commit 7e48df9
Show file tree
Hide file tree
Showing 73 changed files with 30,824 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# RoboRecall Mods
*.robo
7 changes: 7 additions & 0 deletions Engine/Binaries/ThirdParty/OpenVR/OpenVR.tps
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<TpsData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Notification>
Redirect: ../../../Source/ThirdParty/OpenVR/OpenVR.tps
Notes:
</Notification>
</TpsData>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
55 changes: 55 additions & 0 deletions Engine/Source/ThirdParty/OpenVR/OpenVR.build.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.

using System;
using System.IO;
using UnrealBuildTool;

public class OpenVR : ModuleRules
{
public OpenVR(TargetInfo Target)
{
/** Mark the current version of the OpenVR SDK */
string OpenVRVersion = "v1_0_2";
Type = ModuleType.External;

string SdkBase = UEBuildConfiguration.UEThirdPartySourceDirectory + "OpenVR/OpenVR" + OpenVRVersion;
if (!Directory.Exists(SdkBase))
{
string Err = string.Format("OpenVR SDK not found in {0}", SdkBase);
System.Console.WriteLine(Err);
throw new BuildException(Err);
}

PublicIncludePaths.Add(SdkBase + "/headers");

string LibraryPath = SdkBase + "/lib/";

if(Target.Platform == UnrealTargetPlatform.Win32)
{
PublicLibraryPaths.Add(LibraryPath + "win32");
PublicAdditionalLibraries.Add("openvr_api.lib");
PublicDelayLoadDLLs.Add("openvr_api.dll");

string OpenVRBinariesDir = String.Format("$(EngineDir)/Binaries/ThirdParty/OpenVR/OpenVR{0}/Win32/", OpenVRVersion);
RuntimeDependencies.Add(new RuntimeDependency(OpenVRBinariesDir + "openvr_api.dll"));
}
else if(Target.Platform == UnrealTargetPlatform.Win64)
{
PublicLibraryPaths.Add(LibraryPath + "win64");
PublicAdditionalLibraries.Add("openvr_api.lib");
PublicDelayLoadDLLs.Add("openvr_api.dll");

string OpenVRBinariesDir = String.Format("$(EngineDir)/Binaries/ThirdParty/OpenVR/OpenVR{0}/Win64/", OpenVRVersion);
RuntimeDependencies.Add(new RuntimeDependency(OpenVRBinariesDir + "openvr_api.dll"));
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
string DylibPath = SdkBase + "/bin/osx32/libopenvr_api.dylib";
PublicDelayLoadDLLs.Add(DylibPath);
PublicAdditionalShadowFiles.Add(DylibPath);

string OpenVRBinariesDir = String.Format("$(EngineDir)/Binaries/ThirdParty/OpenVR/OpenVR{0}/osx32/", OpenVRVersion);
RuntimeDependencies.Add(new RuntimeDependency(OpenVRBinariesDir + "libopenvr_api.dylib"));
}
}
}
15 changes: 15 additions & 0 deletions Engine/Source/ThirdParty/OpenVR/OpenVR.tps
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<TpsData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>OpenVR</Name>
<Location>/Engine/Source/ThirdParty/OpenVR/</Location>
<Date>2016-06-13T16:27:50.6824692-04:00</Date>
<Function>Valve's OpenVR SDK - API for SteamVR, including their HMD and Controllers as well as their support for DK2, etc.</Function>
<Justification>We need to support the SteamVR hardware.</Justification>
<Eula>https://github.com/ValveSoftware/openvr/blob/master/LICENSE</Eula>
<RedistributeTo>
<EndUserGroup>Licensees</EndUserGroup>
<EndUserGroup>Git</EndUserGroup>
<EndUserGroup>P4</EndUserGroup>
</RedistributeTo>
<LicenseFolder>/Engine/Source/ThirdParty/Licenses/OpenVR_License.txt</LicenseFolder>
</TpsData>
27 changes: 27 additions & 0 deletions Engine/Source/ThirdParty/OpenVR/OpenVRv000/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2015, Valve Corporation
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 7e48df9

Please sign in to comment.