Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: testing/libfuzzer/BUILD.gn

Issue 1701103002: Add initial libfuzzers for fm2js transpiling and XML parsing. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: don't build fuzzers on windows Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/all.gyp ('k') | testing/libfuzzer/fuzzers.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The PDFium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("../../pdfium.gni")
6
7 config("libfuzzer_config") {
8 defines = [
9 "PNG_PREFIX",
10 "PNGPREFIX_H",
11 "PNG_USE_READ_MACROS",
12 ]
13 include_dirs = [ "../.." ]
14 if (pdf_enable_v8) {
15 defines += [ "PDF_ENABLE_V8" ]
16 }
17 if (pdf_enable_xfa) {
18 defines += [ "PDF_ENABLE_XFA" ]
19 }
20 }
21
22 if (pdf_enable_xfa) {
23 source_set("pdf_fm2js_fuzzer") {
24 testonly = true
25 sources = [
26 "pdf_fm2js_fuzzer.cc",
27 ]
28 deps = [
29 "//third_party/pdfium:pdfium",
30 ]
31 configs -= [ "//build/config/compiler:chromium_code" ]
32 configs += [
33 "//build/config/compiler:no_chromium_code",
34 ":libfuzzer_config",
35 ]
36 }
37 source_set("pdf_xml_fuzzer") {
38 testonly = true
39 sources = [
40 "pdf_xml_fuzzer.cc",
41 ]
42 deps = [
43 "//third_party/pdfium:pdfium",
44 ]
45 configs -= [ "//build/config/compiler:chromium_code" ]
46 configs += [
47 "//build/config/compiler:no_chromium_code",
48 ":libfuzzer_config",
49 ]
50 }
51 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | testing/libfuzzer/fuzzers.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698