Add licenses.
Change: 140396287
This commit is contained in:
parent
9c95b03ea7
commit
cc1b967d40
@ -9,6 +9,8 @@ licenses([
|
||||
"notice", # Portions BSD
|
||||
])
|
||||
|
||||
exports_files(["COPYING.MPL2",])
|
||||
|
||||
# License-restricted (i.e. not reciprocal or notice) files inside Eigen/...
|
||||
EIGEN_RESTRICTED_FILES = [
|
||||
"Eigen/src/OrderingMethods/Amd.h",
|
||||
|
@ -1,5 +1,7 @@
|
||||
licenses(["notice"]) # MIT
|
||||
|
||||
exports_files(["COPYING"])
|
||||
|
||||
config_setting(
|
||||
name = "windows",
|
||||
values = {
|
||||
@ -10,13 +12,13 @@ config_setting(
|
||||
|
||||
cc_library(
|
||||
name = "farmhash",
|
||||
srcs = ["farmhash.cc"],
|
||||
hdrs = ["farmhash.h"],
|
||||
srcs = ["src/farmhash.cc"],
|
||||
hdrs = ["src/farmhash.h"],
|
||||
# Disable __builtin_expect support on Windows
|
||||
copts = select({
|
||||
":windows" : ["/DFARMHASH_OPTIONAL_BUILTIN_EXPECT"],
|
||||
"//conditions:default" : [],
|
||||
}),
|
||||
includes = ["."],
|
||||
includes = ["src/."],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
26
gif.BUILD
26
gif.BUILD
@ -3,22 +3,24 @@
|
||||
|
||||
licenses(["notice"]) # MIT
|
||||
|
||||
exports_files(["COPYING"])
|
||||
|
||||
cc_library(
|
||||
name = "gif",
|
||||
srcs = [
|
||||
"dgif_lib.c",
|
||||
"egif_lib.c",
|
||||
"gif_err.c",
|
||||
"gif_font.c",
|
||||
"gif_hash.c",
|
||||
"gif_hash.h",
|
||||
"gif_lib_private.h",
|
||||
"gifalloc.c",
|
||||
"openbsd-reallocarray.c",
|
||||
"quantize.c",
|
||||
"lib/dgif_lib.c",
|
||||
"lib/egif_lib.c",
|
||||
"lib/gif_err.c",
|
||||
"lib/gif_font.c",
|
||||
"lib/gif_hash.c",
|
||||
"lib/gif_hash.h",
|
||||
"lib/gif_lib_private.h",
|
||||
"lib/gifalloc.c",
|
||||
"lib/openbsd-reallocarray.c",
|
||||
"lib/quantize.c",
|
||||
],
|
||||
hdrs = ["gif_lib.h"],
|
||||
includes = ["."],
|
||||
hdrs = ["lib/gif_lib.h"],
|
||||
includes = ["lib/."],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = select({
|
||||
":windows": [":windows_polyfill"],
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
licenses(["notice"]) # 3-clause BSD
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "gtest",
|
||||
srcs = [
|
||||
|
@ -45,6 +45,8 @@ licenses(["notice"]) # 3-clause BSD
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
genrule(
|
||||
name = "pb_h",
|
||||
outs = ["third_party/nanopb/pb.h"],
|
||||
|
@ -1,5 +1,7 @@
|
||||
licenses(["unencumbered"]) # Public Domain or MIT
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "jsoncpp",
|
||||
srcs = [
|
||||
|
@ -3,6 +3,8 @@
|
||||
|
||||
licenses(["notice"]) # zlib license
|
||||
|
||||
exports_files(["LICENSE.txt"])
|
||||
|
||||
cc_library(
|
||||
name = "nanopb",
|
||||
srcs = [
|
||||
|
@ -3,6 +3,8 @@
|
||||
|
||||
licenses(["notice"]) # BSD/MIT-like license
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "png",
|
||||
srcs = [
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
licenses(["notice"]) # MIT
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
py_library(
|
||||
name = "six",
|
||||
srcs = ["six.py"],
|
||||
|
@ -291,6 +291,71 @@ do_buildifier(){
|
||||
fi
|
||||
}
|
||||
|
||||
do_external_licenses_check(){
|
||||
echo "Running do_external_licenses_check"
|
||||
echo ""
|
||||
|
||||
EXTERNAL_LICENSES_CHECK_START_TIME=$(date +'%s')
|
||||
|
||||
EXTERNAL_DEPENDENCIES_FILE="$(mktemp)_external_dependencies.log"
|
||||
LICENSES_FILE="$(mktemp)_licenses.log"
|
||||
MISSING_LICENSES_FILE="$(mktemp)_missing_licenses.log"
|
||||
EXTRA_LICENSES_FILE="$(mktemp)_extra_licenses.log"
|
||||
|
||||
echo "Getting external dependencies for //tensorflow/tools/pip_package:build_pip_package."
|
||||
bazel query 'attr("licenses", "notice", deps(//tensorflow/tools/pip_package:build_pip_package))' --no_implicit_deps --no_host_deps --keep_going \
|
||||
| egrep -v "^//tensorflow" \
|
||||
| sed -e 's|:.*||' \
|
||||
| sort \
|
||||
| uniq 2>&1 \
|
||||
| tee ${EXTERNAL_DEPENDENCIES_FILE}
|
||||
|
||||
echo
|
||||
echo "Getting list of external licenses."
|
||||
bazel query 'deps(//tensorflow/tools/pip_package:licenses)' --no_implicit_deps --no_host_deps --keep_going \
|
||||
| egrep -v "^//tensorflow" \
|
||||
| sed -e 's|:.*||' \
|
||||
| sort \
|
||||
| uniq 2>&1 \
|
||||
| tee ${LICENSES_FILE}
|
||||
|
||||
echo
|
||||
comm -1 -3 ${EXTERNAL_DEPENDENCIES_FILE} ${LICENSES_FILE} 2>&1 | tee ${EXTRA_LICENSES_FILE}
|
||||
echo
|
||||
comm -2 -3 ${EXTERNAL_DEPENDENCIES_FILE} ${LICENSES_FILE} 2>&1 | tee ${MISSING_LICENSES_FILE}
|
||||
|
||||
EXTERNAL_LICENSES_CHECK_END_TIME=$(date +'%s')
|
||||
|
||||
echo
|
||||
echo "do_external_licenses_check took $((${EXTERNAL_LICENSES_CHECK_END_TIME} - ${EXTERNAL_LICENSES_CHECK_START_TIME})) s"
|
||||
echo
|
||||
|
||||
if [[ -s ${MISSING_LICENSES_FILE} ]] || [[ -s ${EXTRA_LICENSES_FILE} ]] ; then
|
||||
echo "FAIL: pip package external dependencies vs licenses mismatch."
|
||||
if [[ -s ${MISSING_LICENSES_FILE} ]] ; then
|
||||
echo "Missing the licenses for the following external dependencies:"
|
||||
cat ${MISSING_LICENSES_FILE}
|
||||
fi
|
||||
if [[ -s ${EXTRA_LICENSES_FILE} ]] ; then
|
||||
echo "Please remove the licenses for the following external dependencies:"
|
||||
cat ${EXTRA_LICENSES_FILE}
|
||||
fi
|
||||
rm -rf ${EXTERNAL_DEPENDENCIES_FILE}
|
||||
rm -rf ${LICENSES_FILE}
|
||||
rm -rf ${MISSING_LICENSES_FILE}
|
||||
rm -rf ${EXTRA_LICENSES_FILE}
|
||||
return 1
|
||||
else
|
||||
echo "PASS: all external licenses included."
|
||||
rm -rf ${EXTERNAL_DEPENDENCIES_FILE}
|
||||
rm -rf ${LICENSES_FILE}
|
||||
rm -rf ${MISSING_LICENSES_FILE}
|
||||
rm -rf ${EXTRA_LICENSES_FILE}
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# Run bazel build --nobuild to test the validity of the BUILD files
|
||||
do_bazel_nobuild() {
|
||||
BUILD_TARGET="//tensorflow/..."
|
||||
@ -311,8 +376,8 @@ do_bazel_nobuild() {
|
||||
}
|
||||
|
||||
# Supply all sanity step commands and descriptions
|
||||
SANITY_STEPS=("do_pylint PYTHON2" "do_pylint PYTHON3" "do_buildifier" "do_bazel_nobuild")
|
||||
SANITY_STEPS_DESC=("Python 2 pylint" "Python 3 pylint" "buildifier check" "bazel nobuild")
|
||||
SANITY_STEPS=("do_pylint PYTHON2" "do_pylint PYTHON3" "do_buildifier" "do_bazel_nobuild" "do_external_licenses_check")
|
||||
SANITY_STEPS_DESC=("Python 2 pylint" "Python 3 pylint" "buildifier check" "bazel nobuild" "external dependencies licenses check")
|
||||
|
||||
INCREMENTAL_FLAG=""
|
||||
|
||||
|
@ -78,12 +78,36 @@ py_binary(
|
||||
deps = ["//tensorflow:tensorflow_py"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "licenses",
|
||||
data = [
|
||||
"//third_party/eigen3:LICENSE",
|
||||
"//third_party/hadoop:LICENSE.txt",
|
||||
"@boringssl//:LICENSE",
|
||||
"@com_googlesource_code_re2//:LICENSE",
|
||||
"@eigen_archive//:COPYING.MPL2",
|
||||
"@farmhash_archive//:COPYING",
|
||||
"@gemmlowp//:LICENSE",
|
||||
"@gif_archive//:COPYING",
|
||||
"@grpc//:LICENSE",
|
||||
"@highwayhash//:LICENSE",
|
||||
"@jpeg//:LICENSE.md",
|
||||
"@local_config_sycl//sycl:LICENSE.text",
|
||||
"@nanopb_git//:LICENSE.txt",
|
||||
"@png_archive//:LICENSE",
|
||||
"@protobuf//:LICENSE",
|
||||
"@six_archive//:LICENSE",
|
||||
"@zlib_archive//:zlib.h",
|
||||
],
|
||||
)
|
||||
|
||||
sh_binary(
|
||||
name = "build_pip_package",
|
||||
srcs = ["build_pip_package.sh"],
|
||||
data = select({
|
||||
"//tensorflow:windows": [":simple_console_for_windows"],
|
||||
"//conditions:default": [
|
||||
":licenses",
|
||||
"MANIFEST.in",
|
||||
"README",
|
||||
"setup.py",
|
||||
|
@ -46,7 +46,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
name = "farmhash_archive",
|
||||
url = "http://github.com/google/farmhash/archive/92e897b282426729f4724d91a637596c7e2fe28f.zip",
|
||||
sha256 = "4c626d1f306bda2c6804ab955892f803f5245f4dcaecb4979dc08b091256da54",
|
||||
strip_prefix = "farmhash-92e897b282426729f4724d91a637596c7e2fe28f/src",
|
||||
strip_prefix = "farmhash-92e897b282426729f4724d91a637596c7e2fe28f",
|
||||
build_file = str(Label("//:farmhash.BUILD")),
|
||||
)
|
||||
|
||||
@ -90,7 +90,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
name = "gif_archive",
|
||||
url = "http://cdimage.debian.org/mirror/xbmc.org/build-deps/sources/giflib-5.1.4.tar.gz",
|
||||
sha256 = "34a7377ba834397db019e8eb122e551a49c98f49df75ec3fcc92b9a794a4f6d1",
|
||||
strip_prefix = "giflib-5.1.4/lib",
|
||||
strip_prefix = "giflib-5.1.4",
|
||||
build_file = str(Label("//:gif.BUILD")),
|
||||
)
|
||||
|
||||
|
2
third_party/eigen3/BUILD
vendored
2
third_party/eigen3/BUILD
vendored
@ -9,6 +9,8 @@ licenses([
|
||||
"notice", # Portions BSD
|
||||
])
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "eigen3",
|
||||
hdrs = glob(["unsupported/Eigen/CXX11/src/FixedPoint/*.h"]) + [
|
||||
|
2
third_party/hadoop/BUILD
vendored
2
third_party/hadoop/BUILD
vendored
@ -2,6 +2,8 @@ package(default_visibility = ["//visibility:public"])
|
||||
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
exports_files(["LICENSE.txt"])
|
||||
|
||||
filegroup(
|
||||
name = "all_files",
|
||||
srcs = glob(
|
||||
|
284
third_party/hadoop/LICENSE.txt
vendored
Normal file
284
third_party/hadoop/LICENSE.txt
vendored
Normal file
@ -0,0 +1,284 @@
|
||||
|
||||
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.
|
||||
|
||||
|
||||
APACHE HADOOP SUBCOMPONENTS:
|
||||
|
||||
The Apache Hadoop project contains subcomponents with separate copyright
|
||||
notices and license terms. Your use of the source code for the these
|
||||
subcomponents is subject to the terms and conditions of the following
|
||||
licenses.
|
||||
|
||||
For the org.apache.hadoop.util.bloom.* classes:
|
||||
|
||||
/**
|
||||
*
|
||||
* Copyright (c) 2005, European Commission project OneLab under contract
|
||||
* 034819 (http://www.one-lab.org)
|
||||
* 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 the University Catholique de Louvain - UCL
|
||||
* 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 OWNER 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.
|
||||
*/
|
||||
|
||||
For portions of the native implementation of slicing-by-8 CRC calculation
|
||||
in src/main/native/src/org/apache/hadoop/util:
|
||||
|
||||
/**
|
||||
* Copyright 2008,2009,2010 Massachusetts Institute of Technology.
|
||||
* All rights reserved. Use of this source code is governed by a
|
||||
* BSD-style license that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
For src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.c:
|
||||
|
||||
/*
|
||||
LZ4 - Fast LZ compression algorithm
|
||||
Copyright (C) 2011, Yann Collet.
|
||||
BSD License
|
||||
|
||||
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.
|
||||
|
||||
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
|
||||
OWNER 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.
|
||||
*/
|
2
third_party/llvm/llvm.BUILD
vendored
2
third_party/llvm/llvm.BUILD
vendored
@ -4,6 +4,8 @@
|
||||
|
||||
licenses(["notice"])
|
||||
|
||||
exports_files(["LICENSE.TXT"])
|
||||
|
||||
load(
|
||||
"@//third_party/llvm:llvm.bzl",
|
||||
"gentbl",
|
||||
|
2
third_party/pcre.BUILD
vendored
2
third_party/pcre.BUILD
vendored
@ -1,6 +1,6 @@
|
||||
licenses(["notice"]) # BSD
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
exports_files(["COPYING"])
|
||||
|
||||
cc_library(
|
||||
name = "pcre",
|
||||
|
2
third_party/sycl/sycl/BUILD.tpl
vendored
2
third_party/sycl/sycl/BUILD.tpl
vendored
@ -7,6 +7,8 @@ load("platform", "readlink_command")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
exports_files(["LICENSE.text"])
|
||||
|
||||
config_setting(
|
||||
name = "using_sycl",
|
||||
values = {
|
||||
|
268
third_party/sycl/sycl/LICENSE.text.tpl
vendored
Normal file
268
third_party/sycl/sycl/LICENSE.text.tpl
vendored
Normal file
@ -0,0 +1,268 @@
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
SOFTWARE LICENSE AGREEMENT
|
||||
|
||||
---------------------------------------------------------------------
|
||||
---------------------------------------------------------------------
|
||||
|
||||
By downloading, installing, copying, or otherwise using the
|
||||
ComputeCpp Community Edition software, including any associated
|
||||
components, media, printed materials, and electronic documentation
|
||||
("Software"), the user agrees to the following terms and conditions
|
||||
of this Software License Agreement ("Agreement"). Please read the
|
||||
terms of this Agreement carefully before beginning your download, as
|
||||
pressing the "I AGREE" button at the end of this Agreement will
|
||||
confirm your assent. If you do not agree to these terms, then
|
||||
Codeplay Software Limited is unwilling to license the Software to
|
||||
you; so please press the "CANCEL" button to cancel your download.
|
||||
|
||||
1. License. Codeplay Software Ltd., a company incorporated in
|
||||
England and Wales with registered number 04567874 and having its
|
||||
registered office at Regent House, 316 Beulah Hill, London,
|
||||
United Kingdom, SE19 3HF ("Codeplay") hereby grants the user,
|
||||
free of charge, a non-exclusive worldwide license to use and
|
||||
replicate (but not modify) the Software for any use, whether
|
||||
commercial or non-commercial, in accordance with this Agreement.
|
||||
Codeplay reserves all rights to the Software that are not
|
||||
expressly granted by this Agreement.
|
||||
2. Redistribution. The user may copy and redistribute unmodified
|
||||
copies of only those components of the Software which are
|
||||
specified below ("Redistributable Components"), in object code
|
||||
form, as part of the user’s software applications or libraries
|
||||
("Applications"). The user acknowledges and agrees that it has no
|
||||
right to modify the Redistributable Components in any way. Any
|
||||
use of the Redistributable Components within the user’s
|
||||
Applications will continue to be subject to the terms and
|
||||
conditions of this Agreement, and the user must also distribute a
|
||||
copy of this Agreement and reproduce and include all notices of
|
||||
copyrights or other proprietary rights in the Software. The
|
||||
user’s redistribution of the Redistributable Components will not
|
||||
entitle it to any payment from Codeplay. The user may not
|
||||
transfer any of its rights or obligations under this Agreement.
|
||||
|
||||
+-------------------------------------------+
|
||||
|Redistributable Component|File Name |
|
||||
|-------------------------+-----------------|
|
||||
|Runtime (for Linux) |libComputeCpp.so |
|
||||
|-------------------------+-----------------|
|
||||
|Runtime (for Windows) |libComputeCpp.dll|
|
||||
+-------------------------------------------+
|
||||
|
||||
3. Restrictions. The user shall not:
|
||||
|
||||
a. circumvent or bypass any technological protection measures in
|
||||
or relating to the Software;
|
||||
b. use the Software to perform any unauthorized transfer of
|
||||
information or for any illegal purpose;
|
||||
c. de-compile, decrypt, disassemble, hack, emulate, exploit or
|
||||
reverse-engineer the Software (other than to the limited
|
||||
extent permitted by law);
|
||||
d. copy or redistribute any components of the Software that are
|
||||
not listed in the table of Redistributable Components;
|
||||
e. publish, rent, lease, sell, export, import, or lend the
|
||||
Software;
|
||||
f. represent in any way that it is selling the Software itself
|
||||
or any license to use the Software, nor refer to Codeplay or
|
||||
ComputeCpp within its marketing materials, without the
|
||||
express prior written permission of Codeplay.
|
||||
4. Support. Codeplay does not provide any guarantees of support for
|
||||
the Software to the user. Codeplay will use reasonable endeavours
|
||||
to respond to users' support requests, for the most recent
|
||||
release only, via the community support website at https://
|
||||
computecpp.codeplay.com.
|
||||
5. Intellectual Property. The Software is owned by Codeplay or its
|
||||
licensors, and is protected by the copyright laws of the United
|
||||
Kingdom and other countries and international treaty provisions.
|
||||
Codeplay (and/or its licensors, as the case may be) retains all
|
||||
copyrights, trade secrets and other proprietary rights in the
|
||||
Software, including the rights to make and license the use of all
|
||||
copies. To the extent that any patents owned by Codeplay or its
|
||||
licensors relate to any component of the Software, the licence
|
||||
granted to the user in accordance with this Agreement allows for
|
||||
the lawful use of such patents but only for the purposes of this
|
||||
Agreement and not further or otherwise. Therefore, the user may
|
||||
make no copies of the Software, or the written materials that
|
||||
accompany the Software, or reproduce it in any way, except as set
|
||||
forth above.
|
||||
6. Terms. This Agreement is effective until terminated. Codeplay or
|
||||
the user may terminate it immediately at any time. Any violation
|
||||
of the terms of this Agreement by the user will result in
|
||||
immediate termination by Codeplay. Upon termination, the user
|
||||
must return or destroy the Software and accompanying materials
|
||||
and notify Codeplay of its actions by email to info@codeplay.com.
|
||||
7. NO WARRANTIES. Codeplay expressly disclaims any warranty for 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 NON-INFRINGEMENT. IN NO EVENT SHALL CODEPLAY BE LIABLE FOR
|
||||
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
||||
CONTRACT, DELICT OR TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE. In particular, Codeplay provides no guarantees of
|
||||
application performance on the target hardware.
|
||||
8. General. The invalidity of any portion or provision of this
|
||||
Agreement shall not affect any other portions or provisions. This
|
||||
Agreement shall be governed by the laws of Scotland. This
|
||||
Agreement is the complete and exclusive agreement between the
|
||||
user and Codeplay regarding the Software, and it supersedes any
|
||||
prior agreement, oral or written, and any other communication
|
||||
between the user and Codeplay relating to the subject matter of
|
||||
the Agreement. Any amendment or modification of this Agreement
|
||||
must be in writing and signed by both parties. If the user does
|
||||
not agree to the terms of this Agreement, the user must not
|
||||
install or use the Software.
|
||||
9. Third Party Licenses. The following licenses are for third-party
|
||||
components included in the software.
|
||||
|
||||
a. License for Clang/LLVM compiler technology components:
|
||||
|
||||
==============================================================================
|
||||
|
||||
LLVM Release License
|
||||
|
||||
==============================================================================
|
||||
|
||||
University of Illinois/NCSA
|
||||
|
||||
Open Source License
|
||||
|
||||
Copyright (c) 2007-2014 University of Illinois at Urbana-Champaign.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Developed by:
|
||||
|
||||
LLVM Team
|
||||
|
||||
University of Illinois at Urbana-Champaign
|
||||
|
||||
http://llvm.org
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal with
|
||||
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:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimers.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimers in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the names of the LLVM Team, University of Illinois at
|
||||
Urbana-Champaign, nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this Software without specific
|
||||
prior written permission.
|
||||
|
||||
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
|
||||
CONTRIBUTORS 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 WITH THE
|
||||
SOFTWARE.
|
||||
|
||||
==============================================================================
|
||||
|
||||
b. License for OpenBSD regex components:
|
||||
|
||||
$OpenBSD: COPYRIGHT,v 1.3 2003/06/02 20:18:36 millert Exp $
|
||||
Copyright 1992, 1993, 1994 Henry Spencer. All rights reserved.
|
||||
This software is not subject to any license of the American Telephone
|
||||
and Telegraph Company or of the Regents of the University of California.
|
||||
Permission is granted to anyone to use this software for any purpose on
|
||||
any computer system, and to alter it and redistribute it, subject
|
||||
to the following restrictions:
|
||||
|
||||
1. The author is not responsible for the consequences of use of this
|
||||
software, no matter how awful, even if they arise from flaws in it.
|
||||
|
||||
2. The origin of this software must not be misrepresented, either by
|
||||
explicit claim or by omission. Since few users ever read sources,
|
||||
credits must appear in the documentation.
|
||||
|
||||
3. Altered versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software. Since few users
|
||||
ever read sources, credits must appear in the documentation.
|
||||
|
||||
4. This notice may not be removed or altered.
|
||||
|
||||
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994
|
||||
* The Regents of the University of California. 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 University 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 REGENTS 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 REGENTS 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.
|
||||
*
|
||||
* @(#)COPYRIGHT8.1 (Berkeley) 3/16/94
|
||||
*/
|
||||
|
||||
c. License for MD5 components:
|
||||
|
||||
/*
|
||||
* This code is derived from (original license follows):
|
||||
*
|
||||
* This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.
|
||||
* MD5 Message-Digest Algorithm (RFC 1321).
|
||||
*
|
||||
* Homepage:
|
||||
* http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
|
||||
*
|
||||
* Author:
|
||||
* Alexander Peslyak, better known as Solar Designer <solar at openwall.com>
|
||||
*
|
||||
* This software was written by Alexander Peslyak in 2001. No copyright is
|
||||
* claimed, and the software is hereby placed in the public domain.
|
||||
* In case this attempt to disclaim copyright and place the software in the
|
||||
* public domain is deemed null and void, then the software is
|
||||
* Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
|
||||
* general public under the following terms:
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted.
|
||||
*
|
||||
* There's ABSOLUTELY NO WARRANTY, express or implied.
|
||||
*
|
||||
* (This is a heavily cut-down "BSD license".)
|
||||
*
|
||||
* This differs from Colin Plumb's older public domain implementation in that
|
||||
* no exactly 32-bit integer data type is required (any 32-bit or wider
|
||||
* unsigned integer data type will do), there's no compile-time endianness
|
||||
* configuration, and the function prototypes match OpenSSL's. No code from
|
||||
* Colin Plumb's implementation has been reused; this comment merely compares
|
||||
* the properties of the two independent implementations.
|
||||
*
|
||||
* The primary goals of this implementation are portability and ease of use.
|
||||
* It is meant to be fast, but not as fast as possible. Some known
|
||||
* optimizations are not included to reduce source code size and avoid
|
||||
* compile-time configuration.
|
||||
*/
|
||||
|
||||
|
1
third_party/sycl/sycl_configure.bzl
vendored
1
third_party/sycl/sycl_configure.bzl
vendored
@ -135,6 +135,7 @@ def _create_dummy_repository(repository_ctx):
|
||||
# Set up BUILD file for sycl/.
|
||||
_file(repository_ctx, "sycl:build_defs.bzl")
|
||||
_tpl(repository_ctx, "sycl:BUILD")
|
||||
_tpl(repository_ctx, "sycl:LICENSE.text")
|
||||
_tpl(repository_ctx, "sycl:platform.bzl")
|
||||
|
||||
# Create dummy files for the SYCL toolkit since they are still required by
|
||||
|
Loading…
Reference in New Issue
Block a user