Skip to content

Commit

Permalink
Updating and standardizing the copyright headers in all of the files. (
Browse files Browse the repository at this point in the history
…#87)

Updating and standardizing the copyright headers in all of the files.
  • Loading branch information
Derek M committed Feb 22, 2019
1 parent ca97fdb commit c9dc4df
Show file tree
Hide file tree
Showing 328 changed files with 833 additions and 767 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Minimum Version determined by the following dev environments
# Ubuntu 16.04 (Xenial) - CMake 3.5.1
# Ubuntu 18.04 (Bionic) - CMake 3.10.2
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines.yml
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

name: K4A-SDK-$(SourceBranchName)-$(Date:yyyyMMdd)-$(Rev:rrr)

Expand Down
3 changes: 3 additions & 0 deletions cmake/CaptureFxcDeps.py
@@ -1,5 +1,8 @@
#!/usr/bin/env python3

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Calls the FXC compiler and generates a depfile from the compiler's standard output
# Lines in the standard output matching:
# Resolved to [D:\foo\bar.h]
Expand Down
3 changes: 3 additions & 0 deletions cmake/CopyImportedBinary.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Copies the imported binary DLL to the RUNTIME output location
#
# This enables executables to be run from the output location without including the dependent DLLs in the PATH
Expand Down
3 changes: 3 additions & 0 deletions cmake/FindLibUSB.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# FindLibUSB.cmake
#
# Cross platform module to find the libusb library
Expand Down
3 changes: 3 additions & 0 deletions cmake/GitCommands.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

find_package(Git REQUIRED QUIET)
if (NOT Git_FOUND)
message(FATAL_ERROR "Unable to find git, which is needed for versioning")
Expand Down
3 changes: 3 additions & 0 deletions cmake/K4AProjectVersion.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# string(JOIN ...) was added in CMake 3.11 and thus can not be used.
# string_join was written to mimic string(JOIN ...) functionality and
# interface.
Expand Down
3 changes: 3 additions & 0 deletions cmake/MSVCLinkerFlags.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Make sure incremental linking is turned off, for valid pdb <-> exe checksums

set(INCREMENTAL_REGEX "/INCREMENTAL(:[A-Z0-9]+)?")
Expand Down
3 changes: 3 additions & 0 deletions cmake/MSVCStaticCrt.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# For code, link against the static crt on windows
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
# Remove all previously set dynamic linking flags
Expand Down
2 changes: 2 additions & 0 deletions cmake/ShaderCompiler.cmake
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Add shader compilation to a target
#
Expand Down
3 changes: 3 additions & 0 deletions cmake/ValidateFormat.py
@@ -1,5 +1,8 @@
#!/usr/bin/env python3

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Invokes clang-format and reports formatting errors
# Optionally can cause clang-format to run the format in place with --reformat

Expand Down
3 changes: 3 additions & 0 deletions cmake/k4aCompilerFlags.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

if (NOT ("${CMAKE_C_COMPILER_ID}" STREQUAL "${CMAKE_CXX_COMPILER_ID}"))
message(FATAL_ERROR "C compiler (${CMAKE_C_COMPILER_ID}) does not match C++ compiler (${CMAKE_CXX_COMPILER_ID})")
endif()
Expand Down
3 changes: 3 additions & 0 deletions cmake/k4aConfig.cmake.in
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

include(CMakeFindDependencyMacro)

# Add the targets file
Expand Down
2 changes: 2 additions & 0 deletions cmake/k4aTest.cmake
@@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# Add a test
#
Expand Down
3 changes: 3 additions & 0 deletions cmake/toolchains/i386-linux-clang.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# the name of the target OS and arch
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_PROCESSOR i386)
Expand Down
3 changes: 3 additions & 0 deletions cmake/toolchains/i386-linux-gnu.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# the name of the target OS and arch
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_PROCESSOR i386)
Expand Down
3 changes: 3 additions & 0 deletions cmake/toolchains/x86_64-linux-clang.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# the name of the target OS and arch
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_PROCESSOR x86_64)
Expand Down
3 changes: 3 additions & 0 deletions cmake/toolchains/x86_64-linux-gnu.cmake
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

# the name of the target OS and arch
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_PROCESSOR x86_64)
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

FROM microsoft/vsts-agent:ubuntu-16.04-standard

# packages for building remotely with visual studio
Expand Down
3 changes: 3 additions & 0 deletions docker/buildimage.bat
@@ -1,3 +1,6 @@
:: Copyright (c) Microsoft Corporation. All rights reserved.
:: Licensed under the MIT License.

copy ..\scripts\bootstrap-ubuntu.sh .\
docker build -t kinect_build .
del .\bootstrap-ubuntu.sh
2 changes: 2 additions & 0 deletions docker/cleanupimage.bat
@@ -1,3 +1,5 @@
:: Copyright (c) Microsoft Corporation. All rights reserved.
:: Licensed under the MIT License.

ECHO Stopping k4a
docker stop k4a > NUL
Expand Down
3 changes: 3 additions & 0 deletions docker/runimage.bat
@@ -1,3 +1,6 @@
:: Copyright (c) Microsoft Corporation. All rights reserved.
:: Licensed under the MIT License.

@echo off
docker stop k4a > NUL 2>&1
docker rm k4a > NUL 2>&1
Expand Down
3 changes: 3 additions & 0 deletions examples/CMakeLists.txt
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

add_subdirectory(enumerate)
add_subdirectory(fastpointcloud)
add_subdirectory(k4arecorder)
Expand Down
3 changes: 3 additions & 0 deletions examples/enumerate/CMakeLists.txt
@@ -1,2 +1,5 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

add_executable(enumerate_devices main.c)
target_link_libraries(enumerate_devices PRIVATE k4a::k4a)
3 changes: 3 additions & 0 deletions examples/enumerate/main.c
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include <stdio.h>
#include <malloc.h>
#include <string.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/fastpointcloud/CMakeLists.txt
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

add_executable(fastpointcloud
main.cpp)

Expand Down
3 changes: 3 additions & 0 deletions examples/fastpointcloud/main.cpp
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include <k4a/k4a.h>
#include <math.h>
#include <string>
Expand Down
3 changes: 3 additions & 0 deletions examples/k4afastcapture_streaming/CMakeLists.txt
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

find_package(Threads REQUIRED)

add_executable(fastcapture_streaming k4afastcapture.cpp main.cpp)
Expand Down
8 changes: 2 additions & 6 deletions examples/k4afastcapture_streaming/k4afastcapture.cpp
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include "k4afastcapture.h"
#include <k4ainternal/common.h>
Expand Down
8 changes: 2 additions & 6 deletions examples/k4afastcapture_streaming/k4afastcapture.h
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef K4AFASTCAPTURE_H
#define K4AFASTCAPTURE_H
Expand Down
8 changes: 2 additions & 6 deletions examples/k4afastcapture_streaming/main.cpp
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include "k4afastcapture.h"
static k4afastcapture::K4AFastCapture Capturer;
Expand Down
3 changes: 3 additions & 0 deletions examples/k4afastcapture_trigger/CMakeLists.txt
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

find_package(Threads REQUIRED)

add_executable(fastcapture_trigger trigger.cpp)
Expand Down
8 changes: 2 additions & 6 deletions examples/k4afastcapture_trigger/trigger.cpp
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include <iostream>
#include <stdlib.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/k4arecorder/CMakeLists.txt
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

add_executable(k4arecorder main.cpp recorder.cpp ${CMAKE_CURRENT_BINARY_DIR}/version.rc)

target_link_libraries(k4arecorder PRIVATE
Expand Down
3 changes: 3 additions & 0 deletions examples/k4arecorder/cmdparser.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef CMDPARSER_H
#define CMDPARSER_H

Expand Down
3 changes: 3 additions & 0 deletions examples/k4arecorder/main.cpp
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include <k4a/k4a.h>

#include "cmdparser.h"
Expand Down
3 changes: 3 additions & 0 deletions examples/k4arecorder/recorder.cpp
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include "recorder.h"
#include <ctime>
#include <atomic>
Expand Down
3 changes: 3 additions & 0 deletions examples/k4arecorder/recorder.h
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef RECORDER_H
#define RECORDER_H

Expand Down
3 changes: 3 additions & 0 deletions examples/k4aviewer/CMakeLists.txt
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

set(SOURCE_FILES
main.cpp
k4aaudiochanneldatagraph.cpp
Expand Down
8 changes: 2 additions & 6 deletions examples/k4aviewer/assertionexception.h
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef ASSERTIONEXCEPTION_H
#define ASSERTIONEXCEPTION_H
Expand Down
8 changes: 2 additions & 6 deletions examples/k4aviewer/filesystem17.h
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef FILESYSTEM17_H
#define FILESYSTEM17_H
Expand Down
8 changes: 2 additions & 6 deletions examples/k4aviewer/ik4adockcontrol.h
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef IK4ADOCKCONTROL_H
#define IK4ADOCKCONTROL_H
Expand Down
8 changes: 2 additions & 6 deletions examples/k4aviewer/ik4aframevisualizer.h
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef IK4AFRAMEVISUALIZER_H
#define IK4AFRAMEVISUALIZER_H
Expand Down
8 changes: 2 additions & 6 deletions examples/k4aviewer/ik4aobserver.h
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef IK4AOBSERVER_H
#define IK4AOBSERVER_H
Expand Down
8 changes: 2 additions & 6 deletions examples/k4aviewer/ik4avisualizationwindow.h
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef IK4AVISUALIZATIONWINDOW_H
#define IK4AVISUALIZATIONWINDOW_H
Expand Down
8 changes: 2 additions & 6 deletions examples/k4aviewer/k4aaudiochanneldatagraph.cpp
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// Associated header
//
Expand Down
8 changes: 2 additions & 6 deletions examples/k4aviewer/k4aaudiochanneldatagraph.h
@@ -1,9 +1,5 @@
/****************************************************************
Copyright (c)
Microsoft Corporation
All Rights Reserved
Licensed under the MIT License.
****************************************************************/
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef K4AAUDIOCHANNELDATAGRAPH_H
#define K4AAUDIOCHANNELDATAGRAPH_H
Expand Down

0 comments on commit c9dc4df

Please sign in to comment.