Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Hoffman
autopybind11
Commits
8d22987a
Commit
8d22987a
authored
Jun 19, 2020
by
Joe Snyder
Browse files
Add BSD licensing information.
parent
49618bf6
Changes
30
Hide whitespace changes
Inline
Side-by-side
AutoPyBind11Config.cmake
View file @
8d22987a
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
#
# FIND_PACKAGE(AutoPyBind11 REQUIRED
#
...
...
CMakeLists.txt
View file @
8d22987a
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
project
(
Wrapper_Example CXX
)
cmake_minimum_required
(
VERSION 3.12
)
...
...
CTestConfig.cmake
View file @
8d22987a
# 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.
...
...
CTestCustom.cmake.in
View file @
8d22987a
# 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"
...
...
Copyright.txt
0 → 100644
View file @
8d22987a
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
PyBindHelper.cmake
View file @
8d22987a
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
macro
(
autopybind11_fetch_build_pybind11
)
include
(
FetchContent
)
...
...
README.rst
View file @
8d22987a
...
...
@@ -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
autopybind11.py
View file @
8d22987a
# 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
...
...
example/CMakeLists.txt
View file @
8d22987a
# 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
...
...
example/additional/CMakeLists.txt
View file @
8d22987a
# 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"
...
...
example/additional/additional.cxx
View file @
8d22987a
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#include
"additional.hpp"
...
...
example/additional/additional.hpp
View file @
8d22987a
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef ADDITIONAL_TEST_HPP
#define ADDITIONAL_TEST_HPP
...
...
example/additional/tests/additionalTests.py
View file @
8d22987a
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
import
os
import
sys
import
unittest
...
...
example/config.yml
View file @
8d22987a
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt
private_members
:
true
cppbody
:
|
...
...
example/inheritance_features/CMakeLists.txt
View file @
8d22987a
# 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
...
...
example/inheritance_features/base.hpp
View file @
8d22987a
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef BASE_HPP
#define BASE_HPP
...
...
example/inheritance_features/derived1.hpp
View file @
8d22987a
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef DERIVED1_HPP
#define DERIVED1_HPP
...
...
example/inheritance_features/derived2.hpp
View file @
8d22987a
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef DERIVED2_HPP
#define DERIVED2_HPP
...
...
example/multi_namespaced/CMakeLists.txt
View file @
8d22987a
# 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
...
...
example/multi_namespaced/compound_namespace.hpp
View file @
8d22987a
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt */
#ifndef CMPND_NAMESPACE_HPP
#define CMPND_NAMESPACE_HPP
namespace
first
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment