Skip to content

Commit 4a5d3bd

Browse files
zcbenzRafaelGSS
authored andcommitted
doc: the GN files should use Node's license
PR-URL: #50694 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im>
1 parent 091098f commit 4a5d3bd

19 files changed

+58
-87
lines changed

LICENSE

+29
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,35 @@ The externally maintained libraries used by Node.js are:
19721972
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19731973
"""
19741974

1975+
- gypi_to_gn.py, located at tools/gypi_to_gn.py, is licensed as follows:
1976+
"""
1977+
Redistribution and use in source and binary forms, with or without
1978+
modification, are permitted provided that the following conditions are
1979+
met:
1980+
1981+
* Redistributions of source code must retain the above copyright
1982+
notice, this list of conditions and the following disclaimer.
1983+
* Redistributions in binary form must reproduce the above
1984+
copyright notice, this list of conditions and the following disclaimer
1985+
in the documentation and/or other materials provided with the
1986+
distribution.
1987+
* Neither the name of Google LLC nor the names of its
1988+
contributors may be used to endorse or promote products derived from
1989+
this software without specific prior written permission.
1990+
1991+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1992+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1993+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1994+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1995+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1996+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1997+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1998+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1999+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2000+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2001+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2002+
"""
2003+
19752004
- ESLint, located at tools/node_modules/eslint, is licensed as follows:
19762005
"""
19772006
Copyright OpenJS Foundation and other contributors, <www.openjsf.org>

deps/ada/unofficial.gni

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Copyright 2023 Microsoft Inc.
2-
# Use of this source code is governed by a BSD-style license that can be
3-
# found in the LICENSE file.
4-
51
# This file is used by GN for building, which is NOT the build system used for
62
# building official binaries.
73
# Please edit the gyp files if you are making changes to build system.

deps/base64/unofficial.gni

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) 2013-2022 GitHub Inc.
2-
# Copyright 2022 the V8 project authors. All rights reserved.
3-
# Copyright 2023 Microsoft Inc.
4-
# Use of this source code is governed by a BSD-style license that can be
5-
# found in the LICENSE file.
6-
71
# This file is used by GN for building, which is NOT the build system used for
82
# building official binaries.
93
# Please edit the gyp files if you are making changes to build system.

deps/brotli/unofficial.gni

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright 2014 The Chromium Authors. All rights reserved.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Copyright 2023 Microsoft Inc.
4-
# Use of this source code is governed by a BSD-style license that can be
5-
# found in the LICENSE file.
6-
71
# This file is used by GN for building, which is NOT the build system used for
82
# building official binaries.
93
# Please edit the gyp files if you are making changes to build system.

deps/cares/unofficial.gni

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) 2013-2019 GitHub Inc.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Copyright 2023 Microsoft Inc.
4-
# Use of this source code is governed by a BSD-style license that can be
5-
# found in the LICENSE file.
6-
71
# This file is used by GN for building, which is NOT the build system used for
82
# building official binaries.
93
# Please edit the gyp files if you are making changes to build system.

deps/googletest/unofficial.gni

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Copyright 2021 the V8 project authors. All rights reserved.
2-
# Use of this source code is governed by a BSD-style license that can be
3-
# found in the LICENSE file.
4-
51
# This file is used by GN for building, which is NOT the build system used for
62
# building official binaries.
73
# Please edit the gyp files if you are making changes to build system.

deps/histogram/unofficial.gni

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) 2013-2019 GitHub Inc.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Copyright 2023 Microsoft Inc.
4-
# Use of this source code is governed by a BSD-style license that can be
5-
# found in the LICENSE file.
6-
71
# This file is used by GN for building, which is NOT the build system used for
82
# building official binaries.
93
# Please edit the gyp files if you are making changes to build system.

deps/llhttp/unofficial.gni

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Copyright (c) 2013-2019 GitHub Inc.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Use of this source code is governed by a BSD-style license that can be
4-
# found in the LICENSE file.
5-
61
# This file is used by GN for building, which is NOT the build system used for
72
# building official binaries.
83
# Please edit the gyp files if you are making changes to build system.

deps/nghttp2/unofficial.gni

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Copyright (c) 2013-2019 GitHub Inc.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Use of this source code is governed by a BSD-style license that can be
4-
# found in the LICENSE file.
5-
61
# This file is used by GN for building, which is NOT the build system used for
72
# building official binaries.
83
# Please edit the gyp files if you are making changes to build system.

deps/ngtcp2/unofficial.gni

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Copyright (c) 2013-2021 GitHub Inc.
2-
# Copyright 2021 the V8 project authors. All rights reserved.
3-
# Use of this source code is governed by a BSD-style license that can be
4-
# found in the LICENSE file.
5-
61
# This file is used by GN for building, which is NOT the build system used for
72
# building official binaries.
83
# Please edit the gyp files if you are making changes to build system.

deps/openssl/unofficial.gni

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Copyright 2019 the V8 project authors. All rights reserved.
2-
# Copyright 2023 Microsoft Inc.
3-
# Use of this source code is governed by a BSD-style license that can be
4-
# found in the LICENSE file.
5-
61
# This file is used by GN for building, which is NOT the build system used for
72
# building official binaries.
83
# Please edit the gyp files if you are making changes to build system.

deps/postject/unofficial.gni

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Copyright 2023 Microsoft Inc.
2-
# Use of this source code is governed by a BSD-style license that can be
3-
# found in the LICENSE file.
4-
51
# This file is used by GN for building, which is NOT the build system used for
62
# building official binaries.
73
# Please edit the gyp files if you are making changes to build system.

deps/simdutf/unofficial.gni

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Copyright (c) 2013-2019 GitHub Inc.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Use of this source code is governed by a BSD-style license that can be
4-
# found in the LICENSE file.
5-
61
# This file is used by GN for building, which is NOT the build system used for
72
# building official binaries.
83
# Please edit the gyp files if you are making changes to build system.

deps/uv/unofficial.gni

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) 2013-2019 GitHub Inc.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Copyright 2023 Microsoft Inc.
4-
# Use of this source code is governed by a BSD-style license that can be
5-
# found in the LICENSE file.
6-
71
# This file is used by GN for building, which is NOT the build system used for
82
# building official binaries.
93
# Please edit the gyp files if you are making changes to build system.

deps/uvwasi/unofficial.gni

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) 2013-2019 GitHub Inc.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Copyright 2023 Microsoft Inc.
4-
# Use of this source code is governed by a BSD-style license that can be
5-
# found in the LICENSE file.
6-
71
# This file is used by GN for building, which is NOT the build system used for
82
# building official binaries.
93
# Please edit the gyp files if you are making changes to build system.

src/inspector/unofficial.gni

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) 2013-2019 GitHub Inc.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Copyright 2023 Microsoft Inc.
4-
# Use of this source code is governed by a BSD-style license that can be
5-
# found in the LICENSE file.
6-
71
import("../../node.gni")
82
import("$node_v8_path/gni/v8.gni")
93

tools/gypi_to_gn.py

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,32 @@
11
#!/usr/bin/env python3
22
# Copyright 2014 The Chromium Authors. All rights reserved.
3-
# Use of this source code is governed by a BSD-style license that can be
4-
# found in the LICENSE file.
3+
#
4+
# Redistribution and use in source and binary forms, with or without
5+
# modification, are permitted provided that the following conditions are
6+
# met:
7+
#
8+
# * Redistributions of source code must retain the above copyright
9+
# notice, this list of conditions and the following disclaimer.
10+
# * Redistributions in binary form must reproduce the above
11+
# copyright notice, this list of conditions and the following disclaimer
12+
# in the documentation and/or other materials provided with the
13+
# distribution.
14+
# * Neither the name of Google LLC nor the names of its
15+
# contributors may be used to endorse or promote products derived from
16+
# this software without specific prior written permission.
17+
#
18+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19+
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21+
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22+
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23+
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
530
# Deleted from Chromium in https://crrev.com/097f64c631.
631

732
"""Converts a given gypi file to a python scope and writes the result to stdout.

tools/license-builder.sh

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ addlicense "markupsafe" "tools/inspector_protocol/markupsafe" "$licenseText"
105105
# Testing tools
106106
licenseText="$(sed -e '/^$/,$d' -e 's/^#$//' -e 's/^# //' "${rootdir}/tools/cpplint.py" | tail -n +3)"
107107
addlicense "cpplint.py" "tools/cpplint.py" "$licenseText"
108+
licenseText="$(sed -e '/^$/,$d' -e 's/^#$//' -e 's/^# //' "${rootdir}/tools/gypi_to_gn.py" | tail -n +3)"
109+
addlicense "gypi_to_gn.py" "tools/gypi_to_gn.py" "$licenseText"
108110
licenseText="$(cat "${rootdir}/tools/node_modules/eslint/LICENSE")"
109111
addlicense "ESLint" "tools/node_modules/eslint" "$licenseText"
110112
licenseText="$(cat "${rootdir}/deps/googletest/LICENSE")"

unofficial.gni

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) 2013-2019 GitHub Inc.
2-
# Copyright 2019 the V8 project authors. All rights reserved.
3-
# Copyright 2023 Microsoft Inc.
4-
# Use of this source code is governed by a BSD-style license that can be
5-
# found in the LICENSE file.
6-
71
# This file is used by GN for building, which is NOT the build system used for
82
# building official binaries.
93
# Please take a look at node.gyp if you are making changes to build system.

0 commit comments

Comments
 (0)