0

Fix minor issues in pdf/BUILD.gn.

- Remove the public_deps entry for //gin. It can just be a regular deps.
- Remove a duplicate entry for pdf_features.h. It is already in the
  public section.
- Give //pdf:pdf_test_utils the minimal required visibility.
- Remove a comment about a dependency that is no longer necessary. GN
  checks and knows the dependency must be there.
- Add a dummy group for //pdf:features, since it is public facing just
  like //pdf:pdf.

Change-Id: Ibfe5b6970ad55d65e073f96b42e57228a89a14dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288431
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786534}
This commit is contained in:
Lei Zhang
2020-07-08 23:15:37 +00:00
committed by Commit Bot
parent 1ecd9cbe7b
commit 58e24a1c3f

@ -39,8 +39,6 @@ if (enable_pdf) {
"//ui/gfx/range",
]
public_deps = [ "//gin" ]
public = [
"pdf.h",
"pdf_ppapi.h",
@ -96,6 +94,7 @@ if (enable_pdf) {
if (pdf_engine == 0) {
deps += [
"//gin",
"//pdf/pdfium/fuzzers",
"//printing",
"//third_party/pdfium",
@ -144,13 +143,11 @@ if (enable_pdf) {
public = [ "pdf_features.h" ]
sources = [
"pdf_features.cc",
"pdf_features.h",
]
sources = [ "pdf_features.cc" ]
}
source_set("pdf_test_utils") {
visibility = [ ":*" ]
testonly = true
sources = [
"test/test_client.cc",
@ -207,8 +204,7 @@ if (enable_pdf) {
if (pdf_engine == 0) {
configs += [ "//v8:external_startup_data" ]
deps += [
# Explicitly depend on PDFium to pick up its public configs, which are
# not transitive, possibly because the "pdf" target is a static_library.
"//gin",
"//third_party/pdfium",
]
sources += [
@ -230,8 +226,10 @@ if (enable_pdf) {
}
}
} else {
# Dummy group when PDF support is disabled so targets can unconditionally
# Dummy groups when PDF support is disabled so targets can unconditionally
# depend on it.
group("features") {
}
group("pdf") {
}
}