Revert of Allow overriding GN build flags (patchset #2 id:20001 of https://codereview.chromium.org/1923333002/ )
Reason for revert:
Blocking the roll
Original issue's description:
> Allow overriding GN build flags
>
> In order to enable XFA from GN builds we need to be able to override
> pdf_enable_xfa. To do this a build_overrides/pdfium.gni file needs to be created
> in Chrome. To use that, we have to create a build_overrides/pdfium.gni file
> in PDFium that just uses the default values.
>
> BUG=chromium:62400
>
> Committed: https://pdfium.googlesource.com/pdfium/+/1ae572e7e35b52ce4897d1715c005a1b0f79526a
TBR=thakis@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=chromium:62400
Review-Url: https://codereview.chromium.org/1941563002
diff --git a/BUILD.gn b/BUILD.gn
index 86e0da3..8a96f21 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -3,8 +3,8 @@
# found in the LICENSE file.
import("//build_overrides/v8.gni")
-import("//build_overrides/pdfium.gni")
import("//testing/test.gni")
+import("pdfium.gni")
config("pdfium_config") {
cflags = []
diff --git a/build_overrides/pdfium.gni b/pdfium.gni
similarity index 90%
rename from build_overrides/pdfium.gni
rename to pdfium.gni
index d032aa1..b85ac74 100644
--- a/build_overrides/pdfium.gni
+++ b/pdfium.gni
@@ -1,4 +1,4 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
+# Copyright 2015 PDFium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/samples/BUILD.gn b/samples/BUILD.gn
index 3fdb97e..c2d6eef 100644
--- a/samples/BUILD.gn
+++ b/samples/BUILD.gn
@@ -4,7 +4,7 @@
import("//build/config/sanitizers/sanitizers.gni")
import("//build_overrides/v8.gni")
-import("//build_overrides/pdfium.gni")
+import("../pdfium.gni")
group("samples") {
testonly = true
diff --git a/testing/libfuzzer/BUILD.gn b/testing/libfuzzer/BUILD.gn
index bd6215b..0ee8b29 100644
--- a/testing/libfuzzer/BUILD.gn
+++ b/testing/libfuzzer/BUILD.gn
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//build_overrides/pdfium.gni")
+import("../../pdfium.gni")
config("libfuzzer_config") {
defines = [
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index eb1e53b..e0c9bf1 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//build_overrides/pdfium.gni")
+import("../pdfium.gni")
group("third_party") {
deps = [