Fix copyright headers in GN files
Fixes a few more copyright headers that were missed earlier because
PanProjectChecks() doesn't consider GN files as source files.
Bug: pdfium:1884
Change-Id: I0d0f47750d1760bfea1f9aa8831f87accf2725c3
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/100630
Auto-Submit: K. Moon <kmoon@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: K. Moon <kmoon@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index 27e72a9..3c49e84 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1,4 +1,4 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
+# Copyright 2016 The PDFium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index bc0a914..15c11c7 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -498,6 +498,19 @@
input_api.canned_checks.PanProjectChecks(
input_api, output_api, project_name='PDFium'))
+ # PanProjectChecks() doesn't consider .gn/.gni files, so check those, too.
+ files_to_check = (
+ r'.*\.gn$',
+ r'.*\.gni$',
+ )
+ results.extend(
+ input_api.canned_checks.CheckLicense(
+ input_api,
+ output_api,
+ project_name='PDFium',
+ source_file_filter=lambda x: input_api.FilterSourceFile(
+ x, files_to_check=files_to_check)))
+
return results
diff --git a/build_overrides/build.gni b/build_overrides/build.gni
index e30656a..0ef487e 100644
--- a/build_overrides/build.gni
+++ b/build_overrides/build.gni
@@ -1,4 +1,4 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
+# Copyright 2016 The PDFium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/build_overrides/gtest.gni b/build_overrides/gtest.gni
index d788258..6afd879 100644
--- a/build_overrides/gtest.gni
+++ b/build_overrides/gtest.gni
@@ -1,4 +1,4 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
+# Copyright 2016 The PDFium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/build_overrides/pdfium.gni b/build_overrides/pdfium.gni
index 6043a32..71051da 100644
--- a/build_overrides/pdfium.gni
+++ b/build_overrides/pdfium.gni
@@ -1,4 +1,4 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
+# Copyright 2016 The PDFium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index dd9528f..6eae4bb 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -1,4 +1,4 @@
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Copyright 2013 The PDFium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/testing/test.gni b/testing/test.gni
index 9d528da..6ad2c2d 100644
--- a/testing/test.gni
+++ b/testing/test.gni
@@ -1,4 +1,4 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
+# Copyright 2015 The PDFium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.