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

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

Issue 2045613002: Add GIF, BMP, JPEG and TIFF XFA fuzzers (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | 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
1 # Copyright 2016 The PDFium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("../../pdfium.gni") 5 import("../../pdfium.gni")
6 6
7 config("libfuzzer_config") { 7 config("libfuzzer_config") {
8 defines = [ 8 defines = [
9 "PNG_PREFIX", 9 "PNG_PREFIX",
10 "PNG_USE_READ_MACROS", 10 "PNG_USE_READ_MACROS",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 configs -= [ "//build/config/compiler:chromium_code" ] 44 configs -= [ "//build/config/compiler:chromium_code" ]
45 configs += [ 45 configs += [
46 "//build/config/compiler:no_chromium_code", 46 "//build/config/compiler:no_chromium_code",
47 ":libfuzzer_config", 47 ":libfuzzer_config",
48 ] 48 ]
49 } 49 }
50 source_set("pdf_codec_png_fuzzer") { 50 source_set("pdf_codec_png_fuzzer") {
51 testonly = true 51 testonly = true
52 sources = [ 52 sources = [
53 "pdf_codec_png_fuzzer.cc", 53 "pdf_codec_png_fuzzer.cc",
54 "xfa_codec_fuzzer.h",
54 ] 55 ]
55 deps = [ 56 deps = [
56 "//third_party/pdfium:pdfium", 57 "//third_party/pdfium:pdfium",
58 ]
59 configs -= [ "//build/config/compiler:chromium_code" ]
60 configs += [
61 "//build/config/compiler:no_chromium_code",
62 ":libfuzzer_config",
63 ]
64 }
65 source_set("pdf_codec_jpeg_fuzzer") {
66 testonly = true
67 sources = [
68 "pdf_codec_jpeg_fuzzer.cc",
69 "xfa_codec_fuzzer.h",
70 ]
71 deps = [
72 "//third_party/pdfium:pdfium",
73 ]
74 configs -= [ "//build/config/compiler:chromium_code" ]
75 configs += [
76 "//build/config/compiler:no_chromium_code",
77 ":libfuzzer_config",
78 ]
79 }
80 source_set("pdf_codec_gif_fuzzer") {
81 testonly = true
82 sources = [
83 "pdf_codec_gif_fuzzer.cc",
84 "xfa_codec_fuzzer.h",
85 ]
86 deps = [
87 "//third_party/pdfium:pdfium",
88 ]
89 configs -= [ "//build/config/compiler:chromium_code" ]
90 configs += [
91 "//build/config/compiler:no_chromium_code",
92 ":libfuzzer_config",
93 ]
94 }
95 source_set("pdf_codec_bmp_fuzzer") {
96 testonly = true
97 sources = [
98 "pdf_codec_bmp_fuzzer.cc",
99 "xfa_codec_fuzzer.h",
100 ]
101 deps = [
102 "//third_party/pdfium:pdfium",
103 ]
104 configs -= [ "//build/config/compiler:chromium_code" ]
105 configs += [
106 "//build/config/compiler:no_chromium_code",
107 ":libfuzzer_config",
108 ]
109 }
110 source_set("pdf_codec_tiff_fuzzer") {
111 testonly = true
112 sources = [
113 "pdf_codec_tiff_fuzzer.cc",
114 "xfa_codec_fuzzer.h",
115 ]
116 deps = [
117 "//third_party/pdfium:pdfium",
57 ] 118 ]
58 configs -= [ "//build/config/compiler:chromium_code" ] 119 configs -= [ "//build/config/compiler:chromium_code" ]
59 configs += [ 120 configs += [
60 "//build/config/compiler:no_chromium_code", 121 "//build/config/compiler:no_chromium_code",
61 ":libfuzzer_config", 122 ":libfuzzer_config",
62 ] 123 ]
63 } 124 }
64 } 125 }
65 126
66 source_set("pdf_jpx_fuzzer") { 127 source_set("pdf_jpx_fuzzer") {
67 testonly = true 128 testonly = true
68 sources = [ 129 sources = [
69 "pdf_jpx_fuzzer.cc", 130 "pdf_jpx_fuzzer.cc",
70 ] 131 ]
71 deps = [ 132 deps = [
72 "//third_party/pdfium:pdfium", 133 "//third_party/pdfium:pdfium",
73 ] 134 ]
74 configs -= [ "//build/config/compiler:chromium_code" ] 135 configs -= [ "//build/config/compiler:chromium_code" ]
75 configs += [ 136 configs += [
76 "//build/config/compiler:no_chromium_code", 137 "//build/config/compiler:no_chromium_code",
77 ":libfuzzer_config", 138 ":libfuzzer_config",
78 ] 139 ]
79 } 140 }
OLDNEW
« no previous file with comments | « no previous file | testing/libfuzzer/fuzzers.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698