Commit 8d22987a authored by Joe Snyder's avatar Joe Snyder
Browse files

Add BSD licensing information.

parent 49618bf6
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
#
# FIND_PACKAGE(AutoPyBind11 REQUIRED
#
......
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
project(Wrapper_Example CXX)
cmake_minimum_required(VERSION 3.12)
......
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
......
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
list (APPEND CTEST_CUSTOM_WARNING_EXCEPTION
"cast.h.*warning C4197.*volatile")
list (APPEND CTEST_CUSTOM_ERROR_EXCEPTION "DeprecationWarning: time.clock"
......
autopybind11 - A Python library to generate PyBind11 for C++
Copyright 2020 Kitware, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* 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.
* Neither the name of Kitware, Inc. nor the names of 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.
------------------------------------------------------------------------------
Testing directories within this repository contain BSD code from other projects.
This external code can be found in:
* example/operator_testing/Vector2.hpp
* bindings_sorter.py
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
macro(autopybind11_fetch_build_pybind11)
include(FetchContent)
......
......@@ -4,6 +4,12 @@ Wrapper Generator
This repository contains the first set of Python code which could be used to
automatically generate PyBin11 code from C++ files with proper annotation.
License
+++++++
This repository is distributed under the OSI-approved BSD 3-clause License.
See Copyright.txt_ for details.
Program execution
+++++++++++++++++
......@@ -106,3 +112,4 @@ or setup a CMake build system and execute the ``WG_Linter`` test::
$ ctest -R WG_Linter -VV
.. _pycodestyle: https://pypi.org/project/pycodestyle/
.. _Copyright.txt: Copyright.txt
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
from configargparse import ArgParser, YAMLConfigFileParser
from op_names import names_dict, arg_dependent_ops
from bindings_sorter import get_binding_order
......
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
add_library(wrapper_example INTERFACE)
target_sources(wrapper_example INTERFACE
......
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
add_library(additional_example SHARED ${CMAKE_CURRENT_SOURCE_DIR}/additional.cxx ${CMAKE_CURRENT_SOURCE_DIR}/additional.hpp)
target_include_directories(additional_example PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
autopybind11_add_module("additional"
......
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#include "additional.hpp"
......
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef ADDITIONAL_TEST_HPP
#define ADDITIONAL_TEST_HPP
......
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
import os
import sys
import unittest
......
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
private_members : true
cppbody : |
......
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
add_library(inheritance INTERFACE)
target_sources(inheritance INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/base.hpp
......
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef BASE_HPP
#define BASE_HPP
......
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef DERIVED1_HPP
#define DERIVED1_HPP
......
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef DERIVED2_HPP
#define DERIVED2_HPP
......
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
add_library(multi_namespaced INTERFACE)
target_sources(multi_namespaced INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/no_namespace.hpp
......
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef CMPND_NAMESPACE_HPP
#define CMPND_NAMESPACE_HPP
namespace first
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment