Commit 7f4b6c80 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Enable gn check for //pdf.

Add dependencies and friends to make gn check pass. While enabling the
"//pdf/*" entry in //.gn, trim some excess blank lines in that file.

Bug: 1100400
Change-Id: I00fb6e80a48a778ae79531e8c2a328b92e041702
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2285325
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: default avatarThomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786331}
parent 92fb8491
...@@ -213,15 +213,12 @@ check_targets = [ ...@@ -213,15 +213,12 @@ check_targets = [
"//chrome/browser/webauthn/*", "//chrome/browser/webauthn/*",
"//chrome/browser/webshare/*", "//chrome/browser/webshare/*",
"//chrome/browser/win/*", "//chrome/browser/win/*",
"//chrome/build/*", "//chrome/build/*",
#"//chrome/child/*", # 1 error on Windows #"//chrome/child/*", # 1 error on Windows
"//chrome/chrome_elf/*", "//chrome/chrome_elf/*",
"//chrome/chrome_cleaner/*", "//chrome/chrome_cleaner/*",
"//chrome/common/*", "//chrome/common/*",
"//chrome/elevation_service/*", "//chrome/elevation_service/*",
#"//chrome/gpu/*", # 7 errors #"//chrome/gpu/*", # 7 errors
...@@ -240,7 +237,6 @@ check_targets = [ ...@@ -240,7 +237,6 @@ check_targets = [
"//chrome/tools/*", "//chrome/tools/*",
"//chrome/updater/*", "//chrome/updater/*",
"//chrome/utility/*", "//chrome/utility/*",
"//chromecast/*", "//chromecast/*",
"//chromeos/*", "//chromeos/*",
"//cloud_print/*", "//cloud_print/*",
...@@ -276,7 +272,6 @@ check_targets = [ ...@@ -276,7 +272,6 @@ check_targets = [
"//google_apis/*", "//google_apis/*",
"//google_update/*", "//google_update/*",
"//gpu/*", "//gpu/*",
"//ios/*", "//ios/*",
"//ios_internal/*", "//ios_internal/*",
"//ipc/*", "//ipc/*",
...@@ -285,14 +280,13 @@ check_targets = [ ...@@ -285,14 +280,13 @@ check_targets = [
"//libassistant/communication/*", "//libassistant/communication/*",
"//libinteraction/*", "//libinteraction/*",
"//media/*", "//media/*",
"//mojo/*", "//mojo/*",
#"//native_client/*", #"//native_client/*",
"//net/*", "//net/*",
"//pdf/*",
#"//pdf/*", # Medium-hard.
#"//ppapi/*", # Lots of errors. #"//ppapi/*", # Lots of errors.
"//ppapi/examples/*", "//ppapi/examples/*",
"//ppapi/tests/*", "//ppapi/tests/*",
...@@ -563,7 +557,6 @@ check_targets = [ ...@@ -563,7 +557,6 @@ check_targets = [
"//third_party/yasm/*", "//third_party/yasm/*",
"//third_party/zlib/*", "//third_party/zlib/*",
"//third_party/woff2/*", "//third_party/woff2/*",
"//tools/*", "//tools/*",
"//ui/*", "//ui/*",
"//url/*", "//url/*",
......
...@@ -31,6 +31,7 @@ if (enable_pdf) { ...@@ -31,6 +31,7 @@ if (enable_pdf) {
deps = [ deps = [
":features", ":features",
"//base", "//base",
"//base:i18n",
"//net", "//net",
"//ppapi/cpp:objects", "//ppapi/cpp:objects",
"//ppapi/cpp/private:internal_module", "//ppapi/cpp/private:internal_module",
...@@ -45,6 +46,11 @@ if (enable_pdf) { ...@@ -45,6 +46,11 @@ if (enable_pdf) {
"pdf_ppapi.h", "pdf_ppapi.h",
] ]
friend = [
":pdf_unittests",
":pdf_test_utils",
]
sources = [ sources = [
"accessibility.cc", "accessibility.cc",
"accessibility.h", "accessibility.h",
...@@ -160,7 +166,9 @@ if (enable_pdf) { ...@@ -160,7 +166,9 @@ if (enable_pdf) {
deps = [ deps = [
":pdf", ":pdf",
"//base", "//base",
"//ppapi/cpp:objects",
"//testing/gtest", "//testing/gtest",
"//ui/gfx/range",
] ]
} }
...@@ -179,14 +187,18 @@ if (enable_pdf) { ...@@ -179,14 +187,18 @@ if (enable_pdf) {
] ]
deps = [ deps = [
":features",
":pdf", ":pdf",
":pdf_test_utils", ":pdf_test_utils",
"//base", "//base",
"//base/test:run_all_unittests", "//base/test:run_all_unittests",
"//base/test:test_support", "//base/test:test_support",
"//ppapi/c", "//ppapi/c",
"//ppapi/cpp:objects",
"//printing",
"//testing/gmock", "//testing/gmock",
"//testing/gtest", "//testing/gtest",
"//ui/gfx/geometry",
"//ui/gfx/range", "//ui/gfx/range",
] ]
......
...@@ -281,10 +281,8 @@ if (pdf_enable_v8) { ...@@ -281,10 +281,8 @@ if (pdf_enable_v8) {
"pdfium_xfa_lpm_fuzzer/simple_xfa_pdf.cc", "pdfium_xfa_lpm_fuzzer/simple_xfa_pdf.cc",
"pdfium_xfa_lpm_fuzzer/simple_xfa_pdf.h", "pdfium_xfa_lpm_fuzzer/simple_xfa_pdf.h",
] ]
deps = [ deps = [ "//base" ]
":xfa_proto", public_deps = [ ":xfa_proto" ]
"//base",
]
} }
fuzzer_test("pdfium_xfa_lpm_fuzzer") { fuzzer_test("pdfium_xfa_lpm_fuzzer") {
...@@ -296,7 +294,11 @@ if (pdf_enable_v8) { ...@@ -296,7 +294,11 @@ if (pdf_enable_v8) {
"//third_party/pdfium", "//third_party/pdfium",
"//third_party/pdfium/testing/fuzzers:fuzzer_init_public", "//third_party/pdfium/testing/fuzzers:fuzzer_init_public",
] ]
if (!is_component_build) { if (is_component_build) {
deps += [
"//third_party/pdfium/testing/fuzzers:pdfium_xfa_lpm_fuzzer_impl",
]
} else {
deps += deps +=
[ "//third_party/pdfium/testing/fuzzers:pdfium_xfa_lpm_fuzzer_src" ] [ "//third_party/pdfium/testing/fuzzers:pdfium_xfa_lpm_fuzzer_src" ]
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment