diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 850e00a..d93af3d 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -1,3 +1,7 @@ +# Copyright (c) 2020, Valve Software +# +# SPDX-License-Identifier: BSD-3-Clause + name: Build binaries on: diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..068f0e1 --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,51 @@ +# Copyright (c) 2020, Valve Software +# +# SPDX-License-Identifier: BSD-3-Clause + + +name: CI Checks + +on: [push, pull_request] + +jobs: + reuse: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: REUSE Compliance Check + uses: fsfe/reuse-action@v1 + + winbuild: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + + - name: Generate build files (windows x64) + working-directory: ${{runner.workspace}}/unity-xr-plugin + run: cmake -G "Visual Studio 16 2019" -S . -B build-win64 + + - name: Build binaries (windows x64) + working-directory: ${{runner.workspace}}/unity-xr-plugin + run: cmake --build build-win64 --target ALL_BUILD --config Release + + - name: Generate build files (windows x86) + working-directory: ${{runner.workspace}}/unity-xr-plugin + run: cmake -G "Visual Studio 16 2019" -A Win32 -S . -B build-win32 + + - name: Build binaries (windows x86) + working-directory: ${{runner.workspace}}/unity-xr-plugin + run: cmake --build build-win32 --target ALL_BUILD --config Release + + build-linux: + needs: build-windows + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Generate build files (linux) + working-directory: ${{runner.workspace}}/unity-xr-plugin + run: cmake . + + - name: Build binaries (linux) + working-directory: ${{runner.workspace}}/unity-xr-plugin + run: make diff --git a/.gitignore b/.gitignore index 9e8ea83..23a285a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2020, GitHub +# SPDX-License-Identifier: CC0-1.0 + # This .gitignore file should be placed at the root of your Unity project directory # # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore @@ -78,3 +81,6 @@ _deps *.vpc *.vpc.sentinel *.vpc_crc + +# VS Code +.vscode/ diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 0000000..28d0e33 --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,45 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: OpenVR Unity XR Plugin +Upstream-Contact: Valve Software +Source: https://github.com/ValveSoftware/unity-xr-plugin + +# Sample paragraph, commented out: +# +# Files: src/* +# Copyright: $YEAR $NAME <$CONTACT> +# License: ... + +Files: + com.valve.openvr/*.meta + PackageMetaFiles/x64/XRSDKOpenVR.dll.meta + PackageMetaFiles/x86/XRSDKOpenVR.dll.meta +Copyright: 2020, Valve Software +License: BSD-3-Clause +Comment: These metafiles originate in this package. + +Files: + com.valve.openvr/Runtime/x86/openvr_api.* + com.valve.openvr/Runtime/x64/openvr_api.* + com.valve.openvr/Runtime/x64/libopenvr_api.* + com.valve.openvr/Runtime/x64/lib/x64/libopenvr_api.* + com.valve.openvr/Runtime/openvr_api.cs + lib/x86/openvr_api.* + lib/x86/libopenvr_api.* + lib/x64/openvr_api.* + lib/x64/libopenvr_api.* + CommonHeaders/OpenVR/* +Copyright: 2015-2020, Valve Software +License: BSD-3-Clause +Comment: OpenVR headers and binaries - OpenVR public repo lists BSD-3-Clause as license. + + +Files: + com.valve.openvr/Runtime/x86/XRSDKOpenVR.* + com.valve.openvr/Runtime/x64/XRSDKOpenVR.* + com.valve.openvr/Runtime/x64/libXRSDKOpenVR.* + com.valve.openvr/Runtime/x64/libXRSDKOpenVR.* +Copyright: + 2015-2020, Valve Software + 2015-2020, Unity Technologies ApS +License: BSD-3-Clause AND LicenseRef-Unity-Companion-License +Comment: Binaries built from sources of these two licenses. diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json deleted file mode 100644 index 4016d88..0000000 --- a/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "configurations": [ - { - "name": "Linux", - "includePath": [ - "${workspaceFolder}/**" - ], - "defines": [], - "compilerPath": "/usr/bin/gcc", - "cStandard": "gnu11", - "cppStandard": "gnu++14", - "intelliSenseMode": "clang-x64" - } - ], - "version": 4 -} \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index fd464fe..3a52fc2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,8 @@ +# Copyright (c) 2020, Valve Software +# +# SPDX-License-Identifier: BSD-3-Clause + + cmake_minimum_required(VERSION 3.10) set(CMAKE_SUPPRESS_REGENERATION true) project(unity_xr_openvr_plugin) diff --git a/CommonHeaders/CommonTypes.h b/CommonHeaders/CommonTypes.h index f59b2ee..0f1374b 100644 --- a/CommonHeaders/CommonTypes.h +++ b/CommonHeaders/CommonTypes.h @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "ProviderInterface/IUnityXRTrace.h" diff --git a/CommonHeaders/ProviderInterface/IUnityEventQueue.h b/CommonHeaders/ProviderInterface/IUnityEventQueue.h index 9a8204e..7b23c92 100644 --- a/CommonHeaders/ProviderInterface/IUnityEventQueue.h +++ b/CommonHeaders/ProviderInterface/IUnityEventQueue.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once diff --git a/CommonHeaders/ProviderInterface/IUnityGraphics.h b/CommonHeaders/ProviderInterface/IUnityGraphics.h index fb6b37e..ce1c0ff 100644 --- a/CommonHeaders/ProviderInterface/IUnityGraphics.h +++ b/CommonHeaders/ProviderInterface/IUnityGraphics.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #include "IUnityInterface.h" diff --git a/CommonHeaders/ProviderInterface/IUnityGraphicsD3D11.h b/CommonHeaders/ProviderInterface/IUnityGraphicsD3D11.h index 4a6ddab..a372905 100644 --- a/CommonHeaders/ProviderInterface/IUnityGraphicsD3D11.h +++ b/CommonHeaders/ProviderInterface/IUnityGraphicsD3D11.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #include "IUnityInterface.h" diff --git a/CommonHeaders/ProviderInterface/IUnityGraphicsD3D12.h b/CommonHeaders/ProviderInterface/IUnityGraphicsD3D12.h index 326eb39..85858bb 100644 --- a/CommonHeaders/ProviderInterface/IUnityGraphicsD3D12.h +++ b/CommonHeaders/ProviderInterface/IUnityGraphicsD3D12.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #include "IUnityInterface.h" diff --git a/CommonHeaders/ProviderInterface/IUnityGraphicsMetal.h b/CommonHeaders/ProviderInterface/IUnityGraphicsMetal.h index 37fe4e0..601cdf1 100644 --- a/CommonHeaders/ProviderInterface/IUnityGraphicsMetal.h +++ b/CommonHeaders/ProviderInterface/IUnityGraphicsMetal.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #include "IUnityInterface.h" diff --git a/CommonHeaders/ProviderInterface/IUnityGraphicsVulkan.h b/CommonHeaders/ProviderInterface/IUnityGraphicsVulkan.h index 62d5ffb..bd8fdf3 100644 --- a/CommonHeaders/ProviderInterface/IUnityGraphicsVulkan.h +++ b/CommonHeaders/ProviderInterface/IUnityGraphicsVulkan.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #include "IUnityInterface.h" diff --git a/CommonHeaders/ProviderInterface/IUnityInterface.h b/CommonHeaders/ProviderInterface/IUnityInterface.h index f3e84b4..00726d6 100644 --- a/CommonHeaders/ProviderInterface/IUnityInterface.h +++ b/CommonHeaders/ProviderInterface/IUnityInterface.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once diff --git a/CommonHeaders/ProviderInterface/IUnityProfilerCallbacks.h b/CommonHeaders/ProviderInterface/IUnityProfilerCallbacks.h index 547d51f..9f75ab4 100644 --- a/CommonHeaders/ProviderInterface/IUnityProfilerCallbacks.h +++ b/CommonHeaders/ProviderInterface/IUnityProfilerCallbacks.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #include "IUnityInterface.h" diff --git a/CommonHeaders/ProviderInterface/IUnityRenderingExtensions.h b/CommonHeaders/ProviderInterface/IUnityRenderingExtensions.h index 89a03cb..72a03a5 100644 --- a/CommonHeaders/ProviderInterface/IUnityRenderingExtensions.h +++ b/CommonHeaders/ProviderInterface/IUnityRenderingExtensions.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once diff --git a/CommonHeaders/ProviderInterface/IUnityShaderCompilerAccess.h b/CommonHeaders/ProviderInterface/IUnityShaderCompilerAccess.h index be34e1e..11fe928 100644 --- a/CommonHeaders/ProviderInterface/IUnityShaderCompilerAccess.h +++ b/CommonHeaders/ProviderInterface/IUnityShaderCompilerAccess.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see[Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once diff --git a/CommonHeaders/ProviderInterface/IUnityXRAudio.h b/CommonHeaders/ProviderInterface/IUnityXRAudio.h index 5402ec3..9f6c752 100644 --- a/CommonHeaders/ProviderInterface/IUnityXRAudio.h +++ b/CommonHeaders/ProviderInterface/IUnityXRAudio.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #if UNITY diff --git a/CommonHeaders/ProviderInterface/IUnityXRDisplay.h b/CommonHeaders/ProviderInterface/IUnityXRDisplay.h index cb8b5bc..c961f42 100644 --- a/CommonHeaders/ProviderInterface/IUnityXRDisplay.h +++ b/CommonHeaders/ProviderInterface/IUnityXRDisplay.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #if !UNITY diff --git a/CommonHeaders/ProviderInterface/IUnityXRDisplayShadingRateExt.h b/CommonHeaders/ProviderInterface/IUnityXRDisplayShadingRateExt.h index 0b21c48..838d832 100644 --- a/CommonHeaders/ProviderInterface/IUnityXRDisplayShadingRateExt.h +++ b/CommonHeaders/ProviderInterface/IUnityXRDisplayShadingRateExt.h @@ -1,3 +1,11 @@ +// Unity Native Plugin API copyright © 2020 Unity Technologies ApS +// +// Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). +// +// Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License + + #pragma once #if !UNITY #include "IUnityInterface.h" diff --git a/CommonHeaders/ProviderInterface/IUnityXRInput.h b/CommonHeaders/ProviderInterface/IUnityXRInput.h index 4387bd0..1a104a3 100644 --- a/CommonHeaders/ProviderInterface/IUnityXRInput.h +++ b/CommonHeaders/ProviderInterface/IUnityXRInput.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #if UNITY diff --git a/CommonHeaders/ProviderInterface/IUnityXRMeshing.h b/CommonHeaders/ProviderInterface/IUnityXRMeshing.h index 7ec6a9e..2bd9b71 100644 --- a/CommonHeaders/ProviderInterface/IUnityXRMeshing.h +++ b/CommonHeaders/ProviderInterface/IUnityXRMeshing.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #if UNITY diff --git a/CommonHeaders/ProviderInterface/IUnityXRPreInit.h b/CommonHeaders/ProviderInterface/IUnityXRPreInit.h index 96bf1cb..e1a2fea 100644 --- a/CommonHeaders/ProviderInterface/IUnityXRPreInit.h +++ b/CommonHeaders/ProviderInterface/IUnityXRPreInit.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #if UNITY diff --git a/CommonHeaders/ProviderInterface/IUnityXRStats.h b/CommonHeaders/ProviderInterface/IUnityXRStats.h index 994dca0..53459c4 100644 --- a/CommonHeaders/ProviderInterface/IUnityXRStats.h +++ b/CommonHeaders/ProviderInterface/IUnityXRStats.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #if UNITY diff --git a/CommonHeaders/ProviderInterface/IUnityXRTrace.h b/CommonHeaders/ProviderInterface/IUnityXRTrace.h index aec5d69..977c1b0 100644 --- a/CommonHeaders/ProviderInterface/IUnityXRTrace.h +++ b/CommonHeaders/ProviderInterface/IUnityXRTrace.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #if UNITY diff --git a/CommonHeaders/ProviderInterface/UnitySubsystemTypes.h b/CommonHeaders/ProviderInterface/UnitySubsystemTypes.h index 93ae648..a7dfc27 100644 --- a/CommonHeaders/ProviderInterface/UnitySubsystemTypes.h +++ b/CommonHeaders/ProviderInterface/UnitySubsystemTypes.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #if UNITY diff --git a/CommonHeaders/ProviderInterface/UnityTypes.h b/CommonHeaders/ProviderInterface/UnityTypes.h index 120b7bc..4feadd2 100644 --- a/CommonHeaders/ProviderInterface/UnityTypes.h +++ b/CommonHeaders/ProviderInterface/UnityTypes.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #include diff --git a/CommonHeaders/ProviderInterface/UnityXRDisplayStats.h b/CommonHeaders/ProviderInterface/UnityXRDisplayStats.h index 5182b00..cd4d296 100644 --- a/CommonHeaders/ProviderInterface/UnityXRDisplayStats.h +++ b/CommonHeaders/ProviderInterface/UnityXRDisplayStats.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once /// @file UnityXRDisplayStats.h diff --git a/CommonHeaders/ProviderInterface/UnityXRSubsystemTypes.h b/CommonHeaders/ProviderInterface/UnityXRSubsystemTypes.h index ba73ed2..770af13 100644 --- a/CommonHeaders/ProviderInterface/UnityXRSubsystemTypes.h +++ b/CommonHeaders/ProviderInterface/UnityXRSubsystemTypes.h @@ -3,6 +3,7 @@ // Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). // // Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #if UNITY diff --git a/CommonHeaders/ProviderInterface/UnityXRTypes.h b/CommonHeaders/ProviderInterface/UnityXRTypes.h index 9ae2f6f..eb6f65c 100644 --- a/CommonHeaders/ProviderInterface/UnityXRTypes.h +++ b/CommonHeaders/ProviderInterface/UnityXRTypes.h @@ -1,3 +1,10 @@ +// Unity Native Plugin API copyright © 2019 Unity Technologies ApS +// +// Licensed under the Unity Companion License for Unity - dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). +// +// Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.Please review the license for details on these and other terms and conditions. +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License + #pragma once #if UNITY diff --git a/CommonHeaders/ProviderInterface/XRMath.cpp b/CommonHeaders/ProviderInterface/XRMath.cpp index ed512c8..d8dc9a1 100644 --- a/CommonHeaders/ProviderInterface/XRMath.cpp +++ b/CommonHeaders/ProviderInterface/XRMath.cpp @@ -1,3 +1,6 @@ +// Copyright © 2019 Unity Technologies ApS +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License + #include "XRMath.h" #include diff --git a/CommonHeaders/ProviderInterface/XRMath.h b/CommonHeaders/ProviderInterface/XRMath.h index 562edb5..34ffe7c 100644 --- a/CommonHeaders/ProviderInterface/XRMath.h +++ b/CommonHeaders/ProviderInterface/XRMath.h @@ -1,3 +1,5 @@ +// Copyright © 2019 Unity Technologies ApS +// SPDX-License-Identifier: LicenseRef-Unity-Companion-License #pragma once #include "UnityXRTypes.h" diff --git a/CommonHeaders/Singleton.h b/CommonHeaders/Singleton.h index 8da0792..a41c79a 100644 --- a/CommonHeaders/Singleton.h +++ b/CommonHeaders/Singleton.h @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include diff --git a/CommonHeaders/UnityInterfaces.cpp b/CommonHeaders/UnityInterfaces.cpp index 497de2f..95ee612 100644 --- a/CommonHeaders/UnityInterfaces.cpp +++ b/CommonHeaders/UnityInterfaces.cpp @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #include "ProviderInterface/IUnityXRDisplay.h" #include "UnityInterfaces.h" diff --git a/CommonHeaders/UnityInterfaces.h b/CommonHeaders/UnityInterfaces.h index 15665ee..bcce9ec 100644 --- a/CommonHeaders/UnityInterfaces.h +++ b/CommonHeaders/UnityInterfaces.h @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "ProviderInterface/IUnityInterface.h" diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 0000000..4ed90b9 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,208 @@ +Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, +AND DISTRIBUTION + + 1. Definitions. + + + +"License" shall mean the terms and conditions for use, reproduction, and distribution +as defined by Sections 1 through 9 of this document. + + + +"Licensor" shall mean the copyright owner or entity authorized by the copyright +owner that is granting the License. + + + +"Legal Entity" shall mean the union of the acting entity and all other entities +that control, are controlled by, or are under common control with that entity. +For the purposes of this definition, "control" means (i) the power, direct +or indirect, to cause the direction or management of such entity, whether +by contract or otherwise, or (ii) ownership of fifty percent (50%) or more +of the outstanding shares, or (iii) beneficial ownership of such entity. + + + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions +granted by this License. + + + +"Source" form shall mean the preferred form for making modifications, including +but not limited to software source code, documentation source, and configuration +files. + + + +"Object" form shall mean any form resulting from mechanical transformation +or translation of a Source form, including but not limited to compiled object +code, generated documentation, and conversions to other media types. + + + +"Work" shall mean the work of authorship, whether in Source or Object form, +made available under the License, as indicated by a copyright notice that +is included in or attached to the work (an example is provided in the Appendix +below). + + + +"Derivative Works" shall mean any work, whether in Source or Object form, +that is based on (or derived from) the Work and for which the editorial revisions, +annotations, elaborations, or other modifications represent, as a whole, an +original work of authorship. For the purposes of this License, Derivative +Works shall not include works that remain separable from, or merely link (or +bind by name) to the interfaces of, the Work and Derivative Works thereof. + + + +"Contribution" shall mean any work of authorship, including the original version +of the Work and any modifications or additions to that Work or Derivative +Works thereof, that is intentionally submitted to Licensor for inclusion in +the Work by the copyright owner or by an individual or Legal Entity authorized +to submit on behalf of the copyright owner. For the purposes of this definition, +"submitted" means any form of electronic, verbal, or written communication +sent to the Licensor or its representatives, including but not limited to +communication on electronic mailing lists, source code control systems, and +issue tracking systems that are managed by, or on behalf of, the Licensor +for the purpose of discussing and improving the Work, but excluding communication +that is conspicuously marked or otherwise designated in writing by the copyright +owner as "Not a Contribution." + + + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf +of whom a Contribution has been received by Licensor and subsequently incorporated +within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this +License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable copyright license to reproduce, prepare +Derivative Works of, publicly display, publicly perform, sublicense, and distribute +the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, +each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) patent +license to make, have made, use, offer to sell, sell, import, and otherwise +transfer the Work, where such license applies only to those patent claims +licensable by such Contributor that are necessarily infringed by their Contribution(s) +alone or by combination of their Contribution(s) with the Work to which such +Contribution(s) was submitted. If You institute patent litigation against +any entity (including a cross-claim or counterclaim in a lawsuit) alleging +that the Work or a Contribution incorporated within the Work constitutes direct +or contributory patent infringement, then any patent licenses granted to You +under this License for that Work shall terminate as of the date such litigation +is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or +Derivative Works thereof in any medium, with or without modifications, and +in Source or Object form, provided that You meet the following conditions: + +(a) You must give any other recipients of the Work or Derivative Works a copy +of this License; and + +(b) You must cause any modified files to carry prominent notices stating that +You changed the files; and + +(c) You must retain, in the Source form of any Derivative Works that You distribute, +all copyright, patent, trademark, and attribution notices from the Source +form of the Work, excluding those notices that do not pertain to any part +of the Derivative Works; and + +(d) If the Work includes a "NOTICE" text file as part of its distribution, +then any Derivative Works that You distribute must include a readable copy +of the attribution notices contained within such NOTICE file, excluding those +notices that do not pertain to any part of the Derivative Works, in at least +one of the following places: within a NOTICE text file distributed as part +of the Derivative Works; within the Source form or documentation, if provided +along with the Derivative Works; or, within a display generated by the Derivative +Works, if and wherever such third-party notices normally appear. The contents +of the NOTICE file are for informational purposes only and do not modify the +License. You may add Your own attribution notices within Derivative Works +that You distribute, alongside or as an addendum to the NOTICE text from the +Work, provided that such additional attribution notices cannot be construed +as modifying the License. + +You may add Your own copyright statement to Your modifications and may provide +additional or different license terms and conditions for use, reproduction, +or distribution of Your modifications, or for any such Derivative Works as +a whole, provided Your use, reproduction, and distribution of the Work otherwise +complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any +Contribution intentionally submitted for inclusion in the Work by You to the +Licensor shall be under the terms and conditions of this License, without +any additional terms or conditions. Notwithstanding the above, nothing herein +shall supersede or modify the terms of any separate license agreement you +may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, +trademarks, service marks, or product names of the Licensor, except as required +for reasonable and customary use in describing the origin of the Work and +reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to +in writing, Licensor provides the Work (and each Contributor provides its +Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied, including, without limitation, any warranties +or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR +A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness +of using or redistributing the Work and assume any risks associated with Your +exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether +in tort (including negligence), contract, or otherwise, unless required by +applicable law (such as deliberate and grossly negligent acts) or agreed to +in writing, shall any Contributor be liable to You for damages, including +any direct, indirect, special, incidental, or consequential damages of any +character arising as a result of this License or out of the use or inability +to use the Work (including but not limited to damages for loss of goodwill, +work stoppage, computer failure or malfunction, or any and all other commercial +damages or losses), even if such Contributor has been advised of the possibility +of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work +or Derivative Works thereof, You may choose to offer, and charge a fee for, +acceptance of support, warranty, indemnity, or other liability obligations +and/or rights consistent with this License. However, in accepting such obligations, +You may act only on Your own behalf and on Your sole responsibility, not on +behalf of any other Contributor, and only if You agree to indemnify, defend, +and hold each Contributor harmless for any liability incurred by, or claims +asserted against, such Contributor by reason of your accepting any such warranty +or additional liability. END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate +notice, with the fields enclosed by brackets "[]" replaced with your own identifying +information. (Don't include the brackets!) The text should be enclosed in +the appropriate comment syntax for the file format. We also recommend that +a file or class name and description of purpose be included on the same "printed +page" as the copyright notice for easier identification within third-party +archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); + +you may not use this file except in compliance with the License. + +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software + +distributed under the License is distributed on an "AS IS" BASIS, + +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + +See the License for the specific language governing permissions and + +limitations under the License. diff --git a/LICENSES/BSD-3-Clause.txt b/LICENSES/BSD-3-Clause.txt new file mode 100644 index 0000000..0741db7 --- /dev/null +++ b/LICENSES/BSD-3-Clause.txt @@ -0,0 +1,26 @@ +Copyright (c) . 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. diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt new file mode 100644 index 0000000..a343ccd --- /dev/null +++ b/LICENSES/CC0-1.0.txt @@ -0,0 +1,119 @@ +Creative Commons Legal Code + +CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES +NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE +AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION +ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE +OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS +LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION +OR WORKS PROVIDED HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer exclusive +Copyright and Related Rights (defined below) upon the creator and subsequent +owner(s) (each and all, an "owner") of an original work of authorship and/or +a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for the +purpose of contributing to a commons of creative, cultural and scientific +works ("Commons") that the public can reliably and without fear of later claims +of infringement build upon, modify, incorporate in other works, reuse and +redistribute as freely as possible in any form whatsoever and for any purposes, +including without limitation commercial purposes. These owners may contribute +to the Commons to promote the ideal of a free culture and the further production +of creative, cultural and scientific works, or to gain reputation or greater +distribution for their Work in part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any expectation +of additional consideration or compensation, the person associating CC0 with +a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright +and Related Rights in the Work, voluntarily elects to apply CC0 to the Work +and publicly distribute the Work under its terms, with knowledge of his or +her Copyright and Related Rights in the Work and the meaning and intended +legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be protected +by copyright and related or neighboring rights ("Copyright and Related Rights"). +Copyright and Related Rights include, but are not limited to, the following: + +i. the right to reproduce, adapt, distribute, perform, display, communicate, +and translate a Work; + + ii. moral rights retained by the original author(s) and/or performer(s); + +iii. publicity and privacy rights pertaining to a person's image or likeness +depicted in a Work; + +iv. rights protecting against unfair competition in regards to a Work, subject +to the limitations in paragraph 4(a), below; + +v. rights protecting the extraction, dissemination, use and reuse of data +in a Work; + +vi. database rights (such as those arising under Directive 96/9/EC of the +European Parliament and of the Council of 11 March 1996 on the legal protection +of databases, and under any national implementation thereof, including any +amended or successor version of such directive); and + +vii. other similar, equivalent or corresponding rights throughout the world +based on applicable law or treaty, and any national implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention of, +applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and +unconditionally waives, abandons, and surrenders all of Affirmer's Copyright +and Related Rights and associated claims and causes of action, whether now +known or unknown (including existing as well as future claims and causes of +action), in the Work (i) in all territories worldwide, (ii) for the maximum +duration provided by applicable law or treaty (including future time extensions), +(iii) in any current or future medium and for any number of copies, and (iv) +for any purpose whatsoever, including without limitation commercial, advertising +or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the +benefit of each member of the public at large and to the detriment of Affirmer's +heirs and successors, fully intending that such Waiver shall not be subject +to revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason be +judged legally invalid or ineffective under applicable law, then the Waiver +shall be preserved to the maximum extent permitted taking into account Affirmer's +express Statement of Purpose. In addition, to the extent the Waiver is so +judged Affirmer hereby grants to each affected person a royalty-free, non +transferable, non sublicensable, non exclusive, irrevocable and unconditional +license to exercise Affirmer's Copyright and Related Rights in the Work (i) +in all territories worldwide, (ii) for the maximum duration provided by applicable +law or treaty (including future time extensions), (iii) in any current or +future medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional purposes +(the "License"). The License shall be deemed effective as of the date CC0 +was applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder of +the License, and in such case Affirmer hereby affirms that he or she will +not (i) exercise any of his or her remaining Copyright and Related Rights +in the Work or (ii) assert any associated claims and causes of action with +respect to the Work, in either case contrary to Affirmer's express Statement +of Purpose. + + 4. Limitations and Disclaimers. + +a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, +licensed or otherwise affected by this document. + +b. Affirmer offers the Work as-is and makes no representations or warranties +of any kind concerning the Work, express, implied, statutory or otherwise, +including without limitation warranties of title, merchantability, fitness +for a particular purpose, non infringement, or the absence of latent or other +defects, accuracy, or the present or absence of errors, whether or not discoverable, +all to the greatest extent permissible under applicable law. + +c. Affirmer disclaims responsibility for clearing rights of other persons +that may apply to the Work or any use thereof, including without limitation +any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims +responsibility for obtaining any necessary consents, permissions or other +rights required for any use of the Work. + +d. Affirmer understands and acknowledges that Creative Commons is not a party +to this document and has no duty or obligation with respect to this CC0 or +use of the Work. diff --git a/LICENSES/LicenseRef-Unity-Companion-License.txt b/LICENSES/LicenseRef-Unity-Companion-License.txt new file mode 100644 index 0000000..b14b63e --- /dev/null +++ b/LICENSES/LicenseRef-Unity-Companion-License.txt @@ -0,0 +1,46 @@ +Copyright © 2019 Unity Technologies ApS + +Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). + +Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. + + + +Unity Companion License ("License") +v1.2 + + + +Unity Technologies ApS (“Unity”) grants to you a worldwide, non-exclusive, no-charge, and royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute the software that accompanies this License (“Software”), subject to the following terms and conditions: + + + +1. Unity Companion Use Only. Exercise of the license granted herein is limited to exercise for the creation, use, and/or distribution of applications, software, or other content pursuant to a valid Unity content authoring and rendering engine software license (“Engine License”). That means while not limited to exercise in the software licensed under the Engine License, exercise may not be for any purpose other than the creation, use, and/or distribution of Engine License-dependent applications, software, or other content. No other exercise of the license granted herein is permitted, and in no event may the Software be used for competitive analysis or to develop a competing product or service. + +2. No Modification of Engine License. Neither this License nor any exercise of the license granted herein modifies the Engine License in any way. + +3. Ownership; Derivative Works. + +3.1 You own your content. In this License, “derivative works” means derivatives of the Software itself--works derived only from the Software by you under this License (for example, modifying the code of the Software itself to improve its efficacy); “derivative works” of the Software do not include, for example, games, apps, or content that you create with the Software. You keep all right, title, and interest to your own content. + +3.2 Unity owns its content. While you keep all right, title, and interest to your own content per the above, as between Unity and you, Unity will own all right, title, and interest to all intellectual property rights (including patent, trademark, and copyright) in the Software and derivative works of the Software, and you hereby assign and agree to assign all such rights in those derivative works to Unity. Should assignment be invalid for any reason, you grant to Unity an irrevocable, perpetual, worldwide, non-exclusive, no-charge, and royalty-free license (with the right to grant sublicenses) under those intellectual property rights to those derivative works. You also agree to waive or refrain from asserting any author’s right, moral rights, or like rights to the extent necessary to permit exploitation as contemplated under this License. + +3.3 Your right to use derivative works. You will always have the right to use derivative works of the Software you create, consonant with this License. + +4. Trademarks. You are not granted any right or license under this License to use any trademarks, service marks, trade names, products names, or branding of Unity or its affiliates (“Trademarks”). Descriptive uses of Trademarks are permitted; see, for example, Unity’s Branding Usage Guidelines at https://unity3d.com/public-relations/brand. + +5. Notices & Third-Party Rights. This License, including the copyright notice associated with the Software, must be provided in all substantial portions of the Software and derivative works thereof (or, if that is impracticable, in any other location where such notices are customarily placed). Further, if the Software is accompanied by a Unity “third-party notices” or similar file, you acknowledge and agree that software identified in that file is governed by those separate license terms. + +6. DISCLAIMER, LIMITATION OF LIABILITY. THE SOFTWARE AND ANY DERIVATIVE WORKS THEREOF IS PROVIDED ON AN "AS IS" BASIS, AND IS PROVIDED WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND/OR NONINFRINGEMENT. IN NO EVENT SHALL ANY COPYRIGHT HOLDER OR AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES (WHETHER DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL, INCLUDING PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF USE, DATA, OR PROFITS, AND BUSINESS INTERRUPTION), OR OTHER LIABILITY WHATSOEVER, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM OR OUT OF, OR IN CONNECTION WITH, THE SOFTWARE OR ANY DERIVATIVE WORKS THEREOF OR THE USE OF OR OTHER DEALINGS IN SAME, EVEN WHERE ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +7. USE IS ACCEPTANCE and License Versions. Your access to and use of the Software constitutes your acceptance of this License and its terms and conditions. This License may be modified or updated; upon any such modification or update, you will comply with the terms of the updated License for any use of any of the Software under the updated License. + +8. Use in Compliance with Law and Termination. Your exercise of the license granted herein will at all times be in compliance with applicable law and will not infringe any proprietary rights (including intellectual property rights); this License will terminate immediately (i) on any breach by you of this License; and (ii) if you commence any form of patent litigation, including a cross-claim or counterclaim, against anyone wherein you allege that the Software constitutes direct or secondary/indirect patent infringement. + +9. Severability. If any provision of this License is held to be unenforceable or invalid, that provision will be enforced to the maximum extent possible and the other provisions will remain in full force and effect. + +10. Governing Law and Venue. This License is governed by and construed in accordance with the laws of Denmark, except for its conflict of laws rules; the United Nations Convention on Contracts for the International Sale of Goods will not apply. If you reside (or your principal place of business is) within the United States, you and Unity agree to submit to the personal and exclusive jurisdiction of and venue in the state and federal courts located in San Francisco County, California concerning any dispute arising out of this License (“Dispute”). If you reside (or your principal place of business is) outside the United States, you and Unity agree to submit to the personal and exclusive jurisdiction of and venue in the courts located in Copenhagen, Denmark concerning any Dispute. + + + +(03.2018) \ No newline at end of file diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 0000000..204b93d --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,19 @@ +MIT License Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next +paragraph) shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF +OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Providers/Display/Display.cpp b/Providers/Display/Display.cpp index f2d1204..17d1d78 100644 --- a/Providers/Display/Display.cpp +++ b/Providers/Display/Display.cpp @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "Display.h" diff --git a/Providers/Display/Display.h b/Providers/Display/Display.h index be231ce..7d86990 100644 --- a/Providers/Display/Display.h +++ b/Providers/Display/Display.h @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include diff --git a/Providers/Input/Input.cpp b/Providers/Input/Input.cpp index 01d0c6f..4904e52 100644 --- a/Providers/Input/Input.cpp +++ b/Providers/Input/Input.cpp @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "Input.h" diff --git a/Providers/Input/Input.h b/Providers/Input/Input.h index 691a8d6..cbdef32 100644 --- a/Providers/Input/Input.h +++ b/Providers/Input/Input.h @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "ProviderInterface/IUnityXRInput.h" diff --git a/Providers/OpenVRProviderContext.h b/Providers/OpenVRProviderContext.h index 7e57c48..fd3b966 100644 --- a/Providers/OpenVRProviderContext.h +++ b/Providers/OpenVRProviderContext.h @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include @@ -22,29 +26,3 @@ struct OpenVRProviderContext OpenVRInputProvider *inputProvider; }; -inline OpenVRProviderContext &GetProviderContext( void *data ) -{ - assert( data != NULL ); - return *static_cast< OpenVRProviderContext * >( data ); -} - -class ProviderImpl -{ -public: - ProviderImpl( OpenVRProviderContext &providerContext, UnitySubsystemHandle subsystemHandle ) - : m_Context( providerContext ) - , m_Handle( subsystemHandle ) - { - } - virtual ~ProviderImpl() {} - - virtual UnitySubsystemErrorCode Initialize() = 0; - virtual UnitySubsystemErrorCode Start() = 0; - - virtual void Stop() = 0; - virtual void Shutdown() = 0; - -protected: - OpenVRProviderContext &m_Context; - UnitySubsystemHandle m_Handle; -}; diff --git a/Providers/OpenVRSystem.cpp b/Providers/OpenVRSystem.cpp index fe5a274..a7bc367 100644 --- a/Providers/OpenVRSystem.cpp +++ b/Providers/OpenVRSystem.cpp @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "OpenVRSystem.h" diff --git a/Providers/OpenVRSystem.h b/Providers/OpenVRSystem.h index 8af54de..efeee94 100644 --- a/Providers/OpenVRSystem.h +++ b/Providers/OpenVRSystem.h @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "OpenVR/openvr.h" diff --git a/Providers/UserProjectSettings.cpp b/Providers/UserProjectSettings.cpp index b5785f0..ebf74a9 100644 --- a/Providers/UserProjectSettings.cpp +++ b/Providers/UserProjectSettings.cpp @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "UserProjectSettings.h" diff --git a/Providers/UserProjectSettings.h b/Providers/UserProjectSettings.h index 0c2bc05..5b8f95a 100644 --- a/Providers/UserProjectSettings.h +++ b/Providers/UserProjectSettings.h @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include diff --git a/Providers/dllmain.cpp b/Providers/dllmain.cpp index f045bcf..5cd3d2f 100644 --- a/Providers/dllmain.cpp +++ b/Providers/dllmain.cpp @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #pragma once #include "ProviderInterface/IUnityInterface.h" diff --git a/README.md b/README.md index a70fa9a..82f2d6a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # OpenVR Unity XR Plugin + + The purpose of this package is to provide OpenVR rendering to Unity XR. This package provides the necessary sdk libraries for users to build Applications that work with the OpenVR runtime. The OpenVR XR Plugin gives you access to rendering on all major VR devices through one interface. Explicit support for: HTC Vive, HTC Vive Cosmos, Oculus Rift, Oculus Rift S, Oculus Quest (Link), Windows Mixed Reality, and Valve Index. Other SteamVR compatible devices are supported though may have inaccurate or incomplete features. See our [QuickStart guide](#QuickStart). ## License @@ -87,4 +93,4 @@ For developers not building this package from source we have a separate Installe * Click the plus in the upper lefthand corner and select "Add package from disk..." * Select the package.json in the com.valve.openvr directory * Open the XR Management UI (Edit Menu -> Project Settings -> XR Plugin Management) -* Click the checkbox next to OpenVR Loader - or in older versions - under Plugin Providers hit the + icon and add “Open VR Loader” \ No newline at end of file +* Click the checkbox next to OpenVR Loader - or in older versions - under Plugin Providers hit the + icon and add “Open VR Loader” diff --git a/ThirdParty/vulkan/vk_icd.h b/ThirdParty/vulkan/vk_icd.h index b5185a3..68fba0d 100644 --- a/ThirdParty/vulkan/vk_icd.h +++ b/ThirdParty/vulkan/vk_icd.h @@ -1,5 +1,6 @@ // // File: vk_icd.h +// SPDX-License-Identifier: Apache-2.0 // /* * Copyright (c) 2015-2016 The Khronos Group Inc. diff --git a/ThirdParty/vulkan/vk_layer.h b/ThirdParty/vulkan/vk_layer.h index fa76520..f2f2749 100644 --- a/ThirdParty/vulkan/vk_layer.h +++ b/ThirdParty/vulkan/vk_layer.h @@ -1,5 +1,6 @@ // // File: vk_layer.h +// SPDX-License-Identifier: Apache-2.0 // /* * Copyright (c) 2015-2017 The Khronos Group Inc. diff --git a/ThirdParty/vulkan/vk_sdk_platform.h b/ThirdParty/vulkan/vk_sdk_platform.h index 96d8676..dc9f81d 100644 --- a/ThirdParty/vulkan/vk_sdk_platform.h +++ b/ThirdParty/vulkan/vk_sdk_platform.h @@ -1,5 +1,6 @@ // // File: vk_sdk_platform.h +// SPDX-License-Identifier: Apache-2.0 // /* * Copyright (c) 2015-2016 The Khronos Group Inc. diff --git a/Win32/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate b/Win32/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate deleted file mode 100644 index 1324f3a..0000000 --- a/Win32/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v142:VCToolArchitecture=Native64Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.17763.0: -Release|Win32|D:\a\unity-xr-plugin\unity-xr-plugin\| diff --git a/com.valve.openvr/CHANGELOG.md b/com.valve.openvr/CHANGELOG.md index f8d230e..b536993 100644 --- a/com.valve.openvr/CHANGELOG.md +++ b/com.valve.openvr/CHANGELOG.md @@ -1,4 +1,11 @@ # Changelog + + + All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) @@ -68,4 +75,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [1.0.0-preview.1] - 2020-04-29 ### Added -- Initial beta release \ No newline at end of file +- Initial beta release diff --git a/com.valve.openvr/Documentation~/com.valvesoftware.unity.openvr.md b/com.valve.openvr/Documentation~/com.valvesoftware.unity.openvr.md index 0f713b2..8c81062 100644 --- a/com.valve.openvr/Documentation~/com.valvesoftware.unity.openvr.md +++ b/com.valve.openvr/Documentation~/com.valvesoftware.unity.openvr.md @@ -1,5 +1,11 @@ # About + + The purpose of this package is to provide OpenVR rendering to Unity XR. This package provides the necessary sdk libraries for users to build Applications that work with the OpenVR runtime. The OpenVR XR Plugin gives you access to rendering on all major VR devices through one interface. Explicit support for: HTC Vive, HTC Vive Cosmos, Oculus Rift, Oculus Rift S, Oculus Quest (link), Windows Mixed Reality, and Valve Index. Other SteamVR compatible devices are supported though may have inaccurate or incomplete features. ## Subsystems diff --git a/com.valve.openvr/Editor/OpenVRBuildProcessor.cs b/com.valve.openvr/Editor/OpenVRBuildProcessor.cs index 3002842..efc985f 100644 --- a/com.valve.openvr/Editor/OpenVRBuildProcessor.cs +++ b/com.valve.openvr/Editor/OpenVRBuildProcessor.cs @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + using System.Collections; using System.Collections.Generic; using UnityEngine; diff --git a/com.valve.openvr/Editor/OpenVRLoaderMetadata.cs b/com.valve.openvr/Editor/OpenVRLoaderMetadata.cs index 2e87962..47814fd 100644 --- a/com.valve.openvr/Editor/OpenVRLoaderMetadata.cs +++ b/com.valve.openvr/Editor/OpenVRLoaderMetadata.cs @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #if XR_MGMT_GTE_320 using System.Collections; diff --git a/com.valve.openvr/Editor/OpenVRSettingsCopier.cs b/com.valve.openvr/Editor/OpenVRSettingsCopier.cs index 813f14e..83a7e0f 100644 --- a/com.valve.openvr/Editor/OpenVRSettingsCopier.cs +++ b/com.valve.openvr/Editor/OpenVRSettingsCopier.cs @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + using System.Collections; using System.Collections.Generic; using UnityEngine; diff --git a/com.valve.openvr/Editor/OpenVRSettingsEditor.cs b/com.valve.openvr/Editor/OpenVRSettingsEditor.cs index ec410fa..aad43d6 100644 --- a/com.valve.openvr/Editor/OpenVRSettingsEditor.cs +++ b/com.valve.openvr/Editor/OpenVRSettingsEditor.cs @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + using System.Collections; using System.Collections.Generic; using UnityEngine; diff --git a/com.valve.openvr/Editor/Unity.XR.OpenVR.Editor.asmdef.license b/com.valve.openvr/Editor/Unity.XR.OpenVR.Editor.asmdef.license new file mode 100644 index 0000000..3442c78 --- /dev/null +++ b/com.valve.openvr/Editor/Unity.XR.OpenVR.Editor.asmdef.license @@ -0,0 +1,3 @@ +Copyright (c) 2020, Valve Software + +SPDX-License-Identifier: BSD-3-Clause \ No newline at end of file diff --git a/com.valve.openvr/Runtime/x64/XRSDKOpenVR.lib.meta b/com.valve.openvr/Editor/Unity.XR.OpenVR.Editor.asmdef.license.meta similarity index 74% rename from com.valve.openvr/Runtime/x64/XRSDKOpenVR.lib.meta rename to com.valve.openvr/Editor/Unity.XR.OpenVR.Editor.asmdef.license.meta index ad7d368..da5328f 100644 --- a/com.valve.openvr/Runtime/x64/XRSDKOpenVR.lib.meta +++ b/com.valve.openvr/Editor/Unity.XR.OpenVR.Editor.asmdef.license.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9e51df5ab1f66f5418a739e131d58a72 +guid: dcf9418769055f743b2baf12da4bf530 DefaultImporter: externalObjects: {} userData: diff --git a/com.valve.openvr/README.md b/com.valve.openvr/README.md index c03c612..2b6cf2a 100644 --- a/com.valve.openvr/README.md +++ b/com.valve.openvr/README.md @@ -1,5 +1,11 @@ # OpenVR XR SDK Package + + The purpose of this package is to provide OpenVR rendering to Unity XR. This package provides the necessary sdk libraries for users to build Applications that work with the OpenVR runtime. The OpenVR XR Plugin gives you access to rendering on all major VR devices through one interface. Explicit support for: HTC Vive, HTC Vive Cosmos, Oculus Rift, Oculus Rift S, Oculus Quest (link), Windows Mixed Reality, and Valve Index. Other SteamVR compatible devices are supported though may have inaccurate or incomplete features. # Documentation diff --git a/com.valve.openvr/Runtime/DeviceLayouts.cs b/com.valve.openvr/Runtime/DeviceLayouts.cs index 7b8e15f..1e18acb 100644 --- a/com.valve.openvr/Runtime/DeviceLayouts.cs +++ b/com.valve.openvr/Runtime/DeviceLayouts.cs @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #if ENABLE_VR && UNITY_INPUT_SYSTEM && !PACKAGE_DOCS_GENERATION using UnityEngine.InputSystem; using UnityEngine.InputSystem.Controls; diff --git a/com.valve.openvr/Runtime/OpenVREvents.cs b/com.valve.openvr/Runtime/OpenVREvents.cs index 366ff8a..0123a35 100644 --- a/com.valve.openvr/Runtime/OpenVREvents.cs +++ b/com.valve.openvr/Runtime/OpenVREvents.cs @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + using System.Collections; using System.Collections.Generic; using UnityEngine; diff --git a/com.valve.openvr/Runtime/OpenVRHelpers.cs b/com.valve.openvr/Runtime/OpenVRHelpers.cs index 4d1d5c5..3f0e61b 100644 --- a/com.valve.openvr/Runtime/OpenVRHelpers.cs +++ b/com.valve.openvr/Runtime/OpenVRHelpers.cs @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + using System; using System.Collections; using System.Collections.Generic; diff --git a/com.valve.openvr/Runtime/OpenVRLoader.cs b/com.valve.openvr/Runtime/OpenVRLoader.cs index 71469b4..25d43fe 100644 --- a/com.valve.openvr/Runtime/OpenVRLoader.cs +++ b/com.valve.openvr/Runtime/OpenVRLoader.cs @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + #if UNITY_XR_MANAGEMENT using System; using System.Collections.Generic; diff --git a/com.valve.openvr/Runtime/OpenVRSettings.cs b/com.valve.openvr/Runtime/OpenVRSettings.cs index 32e21f4..da3561c 100644 --- a/com.valve.openvr/Runtime/OpenVRSettings.cs +++ b/com.valve.openvr/Runtime/OpenVRSettings.cs @@ -1,3 +1,7 @@ +// Copyright (c) 2020, Valve Software +// +// SPDX-License-Identifier: BSD-3-Clause + using System; using System.IO; using System.Runtime.InteropServices; diff --git a/com.valve.openvr/Runtime/Unity.XR.OpenVR.asmdef.license b/com.valve.openvr/Runtime/Unity.XR.OpenVR.asmdef.license new file mode 100644 index 0000000..3442c78 --- /dev/null +++ b/com.valve.openvr/Runtime/Unity.XR.OpenVR.asmdef.license @@ -0,0 +1,3 @@ +Copyright (c) 2020, Valve Software + +SPDX-License-Identifier: BSD-3-Clause \ No newline at end of file diff --git a/com.valve.openvr/Runtime/x64/openvr_api.lib.meta b/com.valve.openvr/Runtime/Unity.XR.OpenVR.asmdef.license.meta similarity index 74% rename from com.valve.openvr/Runtime/x64/openvr_api.lib.meta rename to com.valve.openvr/Runtime/Unity.XR.OpenVR.asmdef.license.meta index c613596..66d3f18 100644 --- a/com.valve.openvr/Runtime/x64/openvr_api.lib.meta +++ b/com.valve.openvr/Runtime/Unity.XR.OpenVR.asmdef.license.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a1c5324878563254c995034b4f2b3fed +guid: f4bf7940974c40a4582791297aa85986 DefaultImporter: externalObjects: {} userData: diff --git a/com.valve.openvr/Runtime/UnitySubsystemsManifest.json.license b/com.valve.openvr/Runtime/UnitySubsystemsManifest.json.license new file mode 100644 index 0000000..3442c78 --- /dev/null +++ b/com.valve.openvr/Runtime/UnitySubsystemsManifest.json.license @@ -0,0 +1,3 @@ +Copyright (c) 2020, Valve Software + +SPDX-License-Identifier: BSD-3-Clause \ No newline at end of file diff --git a/com.valve.openvr/Runtime/x64/vc141.pdb.meta b/com.valve.openvr/Runtime/UnitySubsystemsManifest.json.license.meta similarity index 74% rename from com.valve.openvr/Runtime/x64/vc141.pdb.meta rename to com.valve.openvr/Runtime/UnitySubsystemsManifest.json.license.meta index 50d8375..33270a3 100644 --- a/com.valve.openvr/Runtime/x64/vc141.pdb.meta +++ b/com.valve.openvr/Runtime/UnitySubsystemsManifest.json.license.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 01d1a3397d285ac46b0d6386be03f3c9 +guid: 792883986aed63f489ce6789680e02bb DefaultImporter: externalObjects: {} userData: diff --git a/com.valve.openvr/Runtime/x64/XRSDKOpenVR.exp b/com.valve.openvr/Runtime/x64/XRSDKOpenVR.exp deleted file mode 100644 index 6133278..0000000 Binary files a/com.valve.openvr/Runtime/x64/XRSDKOpenVR.exp and /dev/null differ diff --git a/com.valve.openvr/Runtime/x64/XRSDKOpenVR.lib b/com.valve.openvr/Runtime/x64/XRSDKOpenVR.lib deleted file mode 100644 index af657c9..0000000 Binary files a/com.valve.openvr/Runtime/x64/XRSDKOpenVR.lib and /dev/null differ diff --git a/com.valve.openvr/Runtime/x64/openvr_api.lib b/com.valve.openvr/Runtime/x64/openvr_api.lib deleted file mode 100644 index 3b95d6b..0000000 Binary files a/com.valve.openvr/Runtime/x64/openvr_api.lib and /dev/null differ diff --git a/com.valve.openvr/Runtime/x64/ucrtbased.dll b/com.valve.openvr/Runtime/x64/ucrtbased.dll deleted file mode 100644 index 766a4f7..0000000 Binary files a/com.valve.openvr/Runtime/x64/ucrtbased.dll and /dev/null differ diff --git a/com.valve.openvr/Runtime/x64/ucrtbased.dll.meta b/com.valve.openvr/Runtime/x64/ucrtbased.dll.meta deleted file mode 100644 index 39314e3..0000000 --- a/com.valve.openvr/Runtime/x64/ucrtbased.dll.meta +++ /dev/null @@ -1,63 +0,0 @@ -fileFormatVersion: 2 -guid: 9afbbf83a040d6440ae4932e5304f426 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 1 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - : Any - second: - enabled: 0 - settings: - Exclude Editor: 0 - Exclude Linux64: 0 - Exclude OSXUniversal: 0 - Exclude Win: 1 - Exclude Win64: 0 - - first: - Any: - second: - enabled: 1 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: AnyOS - - first: - Standalone: Linux64 - second: - enabled: 1 - settings: - CPU: x86_64 - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: x86_64 - - first: - Standalone: Win - second: - enabled: 0 - settings: - CPU: None - - first: - Standalone: Win64 - second: - enabled: 1 - settings: - CPU: x86_64 - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.valve.openvr/Runtime/x64/vc141.pdb b/com.valve.openvr/Runtime/x64/vc141.pdb deleted file mode 100644 index fc9ae18..0000000 Binary files a/com.valve.openvr/Runtime/x64/vc141.pdb and /dev/null differ diff --git a/com.valve.openvr/Runtime/x64/vc142.pdb b/com.valve.openvr/Runtime/x64/vc142.pdb deleted file mode 100644 index 8b69ae4..0000000 Binary files a/com.valve.openvr/Runtime/x64/vc142.pdb and /dev/null differ diff --git a/com.valve.openvr/Runtime/x64/vc142.pdb.meta b/com.valve.openvr/Runtime/x64/vc142.pdb.meta deleted file mode 100644 index 79afcfa..0000000 --- a/com.valve.openvr/Runtime/x64/vc142.pdb.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 48666f9e5c758b2459cb91f4d6092dec -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.valve.openvr/Runtime/x86/XRSDKOpenVR.exp b/com.valve.openvr/Runtime/x86/XRSDKOpenVR.exp deleted file mode 100644 index 146b126..0000000 Binary files a/com.valve.openvr/Runtime/x86/XRSDKOpenVR.exp and /dev/null differ diff --git a/com.valve.openvr/Runtime/x86/XRSDKOpenVR.exp.meta b/com.valve.openvr/Runtime/x86/XRSDKOpenVR.exp.meta deleted file mode 100644 index 205c84e..0000000 --- a/com.valve.openvr/Runtime/x86/XRSDKOpenVR.exp.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e34f011e92c64334e855c60e42034d89 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.valve.openvr/Runtime/x86/XRSDKOpenVR.lib b/com.valve.openvr/Runtime/x86/XRSDKOpenVR.lib deleted file mode 100644 index 0c706ae..0000000 Binary files a/com.valve.openvr/Runtime/x86/XRSDKOpenVR.lib and /dev/null differ diff --git a/com.valve.openvr/Runtime/x86/XRSDKOpenVR.lib.meta b/com.valve.openvr/Runtime/x86/XRSDKOpenVR.lib.meta deleted file mode 100644 index f1edc78..0000000 --- a/com.valve.openvr/Runtime/x86/XRSDKOpenVR.lib.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 96f2ea2189c3c6c4a8ff0a21f23f4f71 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.valve.openvr/Runtime/x86/openvr_api.lib b/com.valve.openvr/Runtime/x86/openvr_api.lib deleted file mode 100644 index b61a5a0..0000000 Binary files a/com.valve.openvr/Runtime/x86/openvr_api.lib and /dev/null differ diff --git a/com.valve.openvr/Runtime/x86/openvr_api.lib.meta b/com.valve.openvr/Runtime/x86/openvr_api.lib.meta deleted file mode 100644 index 5182284..0000000 --- a/com.valve.openvr/Runtime/x86/openvr_api.lib.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: fa4cb61a8a460e84dbf5d16aa8f8b3f4 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.valve.openvr/Runtime/x86/ucrtbased.dll b/com.valve.openvr/Runtime/x86/ucrtbased.dll deleted file mode 100644 index e8e28e0..0000000 Binary files a/com.valve.openvr/Runtime/x86/ucrtbased.dll and /dev/null differ diff --git a/com.valve.openvr/Runtime/x86/ucrtbased.dll.meta b/com.valve.openvr/Runtime/x86/ucrtbased.dll.meta deleted file mode 100644 index 3247a0f..0000000 --- a/com.valve.openvr/Runtime/x86/ucrtbased.dll.meta +++ /dev/null @@ -1,63 +0,0 @@ -fileFormatVersion: 2 -guid: bd5fdb090509d384b9a8c01f40e1f085 -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 0 - isOverridable: 1 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - : Any - second: - enabled: 0 - settings: - Exclude Editor: 0 - Exclude Linux64: 0 - Exclude OSXUniversal: 0 - Exclude Win: 0 - Exclude Win64: 1 - - first: - Any: - second: - enabled: 1 - settings: {} - - first: - Editor: Editor - second: - enabled: 1 - settings: - CPU: AnyCPU - DefaultValueInitialized: true - OS: AnyOS - - first: - Standalone: Linux64 - second: - enabled: 1 - settings: - CPU: x86_64 - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: x86_64 - - first: - Standalone: Win - second: - enabled: 1 - settings: - CPU: x86 - - first: - Standalone: Win64 - second: - enabled: 0 - settings: - CPU: None - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.valve.openvr/Runtime/x86/vc141.pdb b/com.valve.openvr/Runtime/x86/vc141.pdb deleted file mode 100644 index dd9a94d..0000000 Binary files a/com.valve.openvr/Runtime/x86/vc141.pdb and /dev/null differ diff --git a/com.valve.openvr/Runtime/x86/vc141.pdb.meta b/com.valve.openvr/Runtime/x86/vc141.pdb.meta deleted file mode 100644 index 4b5eade..0000000 --- a/com.valve.openvr/Runtime/x86/vc141.pdb.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c021bc044f6f8d14bbedf463c46d94c1 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.valve.openvr/Runtime/x86/vc142.pdb b/com.valve.openvr/Runtime/x86/vc142.pdb deleted file mode 100644 index a530ace..0000000 Binary files a/com.valve.openvr/Runtime/x86/vc142.pdb and /dev/null differ diff --git a/com.valve.openvr/Runtime/x86/vc142.pdb.meta b/com.valve.openvr/Runtime/x86/vc142.pdb.meta deleted file mode 100644 index 00ac8c1..0000000 --- a/com.valve.openvr/Runtime/x86/vc142.pdb.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 740c3aa8431d0334e80299de98723996 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.valve.openvr/package.json.license b/com.valve.openvr/package.json.license new file mode 100644 index 0000000..3442c78 --- /dev/null +++ b/com.valve.openvr/package.json.license @@ -0,0 +1,3 @@ +Copyright (c) 2020, Valve Software + +SPDX-License-Identifier: BSD-3-Clause \ No newline at end of file diff --git a/com.valve.openvr/Runtime/x64/XRSDKOpenVR.exp.meta b/com.valve.openvr/package.json.license.meta similarity index 74% rename from com.valve.openvr/Runtime/x64/XRSDKOpenVR.exp.meta rename to com.valve.openvr/package.json.license.meta index 8c6f3e7..5aa7744 100644 --- a/com.valve.openvr/Runtime/x64/XRSDKOpenVR.exp.meta +++ b/com.valve.openvr/package.json.license.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ef2271ff913ce714f9398c532983d093 +guid: ebd695268d82c2243b712ff0259aaeb8 DefaultImporter: externalObjects: {} userData: diff --git a/unity_plugin.def b/unity_plugin.def deleted file mode 100644 index 819775f..0000000 --- a/unity_plugin.def +++ /dev/null @@ -1,9 +0,0 @@ -LIBRARY XRSDKOpenVR -EXPORTS - GetInitializationResult @1 - GetMirrorViewMode @2 - RegisterTickCallback @3 - SetMirrorViewMode @4 - SetUserDefinedSettings @5 - UnityPluginLoad @6 - XRSDKPreInit @7 \ No newline at end of file diff --git a/x64/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate b/x64/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate deleted file mode 100644 index d7ac5a2..0000000 --- a/x64/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v142:VCToolArchitecture=Native64Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.17763.0: -Release|x64|D:\a\unity-xr-plugin\unity-xr-plugin\|