Skip to content
Open

Spdx #56

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2020, Valve Software
#
# SPDX-License-Identifier: BSD-3-Clause

name: Build binaries

on:
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -78,3 +81,6 @@ _deps
*.vpc
*.vpc.sentinel
*.vpc_crc

# VS Code
.vscode/
45 changes: 45 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -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.
16 changes: 0 additions & 16 deletions .vscode/c_cpp_properties.json

This file was deleted.

5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 4 additions & 0 deletions CommonHeaders/CommonTypes.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2020, Valve Software
//
// SPDX-License-Identifier: BSD-3-Clause

#pragma once

#include "ProviderInterface/IUnityXRTrace.h"
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityEventQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityGraphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityGraphicsD3D11.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityGraphicsD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityGraphicsMetal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityGraphicsVulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityProfilerCallbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityXRAudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityXRDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityXRInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityXRMeshing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityXRPreInit.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityXRStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/IUnityXRTrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/UnitySubsystemTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/UnityTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdint.h>
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/UnityXRDisplayStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions CommonHeaders/ProviderInterface/UnityXRSubsystemTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions CommonHeaders/ProviderInterface/UnityXRTypes.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions CommonHeaders/ProviderInterface/XRMath.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright © 2019 Unity Technologies ApS
// SPDX-License-Identifier: LicenseRef-Unity-Companion-License

#include "XRMath.h"

#include <limits>
Expand Down
2 changes: 2 additions & 0 deletions CommonHeaders/ProviderInterface/XRMath.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright © 2019 Unity Technologies ApS
// SPDX-License-Identifier: LicenseRef-Unity-Companion-License
#pragma once

#include "UnityXRTypes.h"
Expand Down
4 changes: 4 additions & 0 deletions CommonHeaders/Singleton.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2020, Valve Software
//
// SPDX-License-Identifier: BSD-3-Clause

#pragma once

#include <memory>
Expand Down
4 changes: 4 additions & 0 deletions CommonHeaders/UnityInterfaces.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2020, Valve Software
//
// SPDX-License-Identifier: BSD-3-Clause

#include "ProviderInterface/IUnityXRDisplay.h"
#include "UnityInterfaces.h"

Expand Down
4 changes: 4 additions & 0 deletions CommonHeaders/UnityInterfaces.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2020, Valve Software
//
// SPDX-License-Identifier: BSD-3-Clause

#pragma once

#include "ProviderInterface/IUnityInterface.h"
Expand Down
Loading