Add missing dependencies to fuzzers
This is necessary to fix "gn gen --check" when is_component_build=true
BUG=chromium:960288
R=thestig
Change-Id: I9fce7d27ec063081bd1e7f4cc67db8b602a247ca
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/54390
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
diff --git a/core/fxcrt/BUILD.gn b/core/fxcrt/BUILD.gn
index 88337ff..3ccf31b 100644
--- a/core/fxcrt/BUILD.gn
+++ b/core/fxcrt/BUILD.gn
@@ -88,6 +88,8 @@
"../../fpdfsdk/*",
"../../fxbarcode:*",
"../../fxjs:*",
+ "../../testing:test_support",
+ "../../testing/fuzzers/*",
"../../third_party:fx_agg",
"../../third_party:fx_lcms2",
"../../third_party:fx_tiff",
diff --git a/testing/fuzzers/BUILD.gn b/testing/fuzzers/BUILD.gn
index c2b501f..a283927 100644
--- a/testing/fuzzers/BUILD.gn
+++ b/testing/fuzzers/BUILD.gn
@@ -196,6 +196,7 @@
"pdf_cjs_util_fuzzer.cc",
]
deps = [
+ "../../core/fxcrt",
"../../fxjs",
]
}
@@ -204,6 +205,7 @@
"pdf_fx_date_helpers_fuzzer.cc",
]
deps = [
+ "../../core/fxcrt",
"../../fxjs",
]
}
@@ -215,6 +217,7 @@
]
deps = [
"../../:freetype_common",
+ "../../core/fxcrt",
"../../core/fxge",
"../../xfa/fgas",
"../../xfa/fgas/layout",
@@ -227,6 +230,7 @@
"pdf_cfgas_stringformatter_fuzzer.cc",
]
deps = [
+ "../../core/fxcrt",
"../../xfa/fgas",
"../../xfa/fxfa/parser",
]
@@ -237,6 +241,7 @@
"pdf_cfx_barcode_fuzzer.cc",
]
deps = [
+ "../../core/fxcrt",
"../../xfa/fwl",
"//third_party/icu:icuuc",
]
@@ -250,7 +255,9 @@
]
deps = [
"../../core/fxcodec",
+ "../../core/fxcrt",
"../../core/fxge",
+ "../../third_party:pdfium_base",
]
}
}
@@ -263,7 +270,9 @@
]
deps = [
"../../core/fxcodec",
+ "../../core/fxcrt",
"../../core/fxge",
+ "../../third_party:pdfium_base",
]
}
@@ -273,6 +282,7 @@
]
deps = [
"../../core/fxcodec",
+ "../../third_party:pdfium_base",
]
}
}
@@ -284,7 +294,9 @@
]
deps = [
"../../core/fxcodec",
+ "../../core/fxcrt",
"../../core/fxge",
+ "../../third_party:pdfium_base",
]
}
@@ -296,7 +308,9 @@
]
deps = [
"../../core/fxcodec",
+ "../../core/fxcrt",
"../../core/fxge",
+ "../../third_party:pdfium_base",
]
}
}
@@ -309,7 +323,9 @@
]
deps = [
"../../core/fxcodec",
+ "../../core/fxcrt",
"../../core/fxge",
+ "../../third_party:pdfium_base",
]
}
}
@@ -319,6 +335,7 @@
"pdf_css_fuzzer.cc",
]
deps = [
+ "../../core/fxcrt",
"../../core/fxcrt/css",
]
}
@@ -328,6 +345,7 @@
"pdf_fm2js_fuzzer.cc",
]
deps = [
+ "../../core/fxcrt",
"../../fxjs",
]
}
@@ -337,6 +355,8 @@
"pdf_formcalc_context_fuzzer.cc",
]
deps = [
+ "../../:pdfium_public_headers",
+ "../../core/fxcrt",
"../../fpdfsdk",
"../../fpdfsdk/fpdfxfa",
"../../fxjs",
@@ -349,6 +369,7 @@
"pdf_formcalc_fuzzer.cc",
]
deps = [
+ "../../core/fxcrt",
"../../xfa/fxfa/fm2js",
]
}
@@ -357,6 +378,9 @@
sources = [
"pdfium_xfa_fuzzer.cc",
]
+ deps = [
+ "../../:pdfium_public_headers",
+ ]
}
}
}
@@ -368,6 +392,7 @@
deps = [
"../../:freetype_common",
"../../core/fpdfapi/font",
+ "../../third_party:pdfium_base",
]
}
@@ -377,6 +402,7 @@
]
deps = [
"../../core/fxcodec",
+ "../../core/fxcrt",
]
}
@@ -396,6 +422,7 @@
]
deps = [
"../../core/fxcodec",
+ "../../third_party:pdfium_base",
"../../third_party/:lcms2",
]
}
@@ -408,16 +435,19 @@
":utils",
"../../core/fpdfapi/parser",
"../../core/fxcodec",
+ "../../core/fxcrt",
"../../core/fxge",
]
}
pdfium_fuzzer("pdf_codec_rle_fuzzer") {
sources = [
+ "../../core/fxcrt",
"pdf_codec_rle_fuzzer.cc",
]
deps = [
"../../core/fxcodec",
+ "../../core/fxcrt",
]
}
@@ -425,6 +455,9 @@
sources = [
"pdf_font_fuzzer.cc",
]
+ deps = [
+ "../../:pdfium_public_headers",
+ ]
}
pdfium_fuzzer("pdf_hint_table_fuzzer") {
@@ -433,6 +466,8 @@
]
deps = [
"../../core/fpdfapi/parser",
+ "../../core/fxcrt",
+ "../../third_party:pdfium_base",
]
}
@@ -442,6 +477,7 @@
]
deps = [
"../../core/fxcodec",
+ "../../core/fxcrt",
"../../core/fxge",
]
}
@@ -452,6 +488,7 @@
]
deps = [
"../../core/fpdfapi/page",
+ "../../third_party:pdfium_base",
]
}
@@ -462,6 +499,7 @@
deps = [
"../../core/fpdfapi/page",
"../../core/fpdfapi/parser",
+ "../../third_party:pdfium_base",
]
}
@@ -469,6 +507,10 @@
sources = [
"pdf_xml_fuzzer.cc",
]
+ deps = [
+ "../../core/fxcrt",
+ "../../third_party:pdfium_base",
+ ]
}
pdfium_public_fuzzer("pdfium_fuzzer") {