| OLD | NEW |
| 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 configs = [ "//third_party/pdfium:pdfium_core_config" ] | 8 configs = [ "//third_party/pdfium:pdfium_core_config" ] |
| 9 | 9 |
| 10 defines = [ | 10 defines = [ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 ] | 42 ] |
| 43 deps = [ | 43 deps = [ |
| 44 "//third_party/pdfium:pdfium", | 44 "//third_party/pdfium:pdfium", |
| 45 ] | 45 ] |
| 46 configs -= [ "//build/config/compiler:chromium_code" ] | 46 configs -= [ "//build/config/compiler:chromium_code" ] |
| 47 configs += [ | 47 configs += [ |
| 48 "//build/config/compiler:no_chromium_code", | 48 "//build/config/compiler:no_chromium_code", |
| 49 ":libfuzzer_config", | 49 ":libfuzzer_config", |
| 50 ] | 50 ] |
| 51 } | 51 } |
| 52 source_set("pdf_cfx_saxreader_fuzzer") { |
| 53 testonly = true |
| 54 sources = [ |
| 55 "pdf_cfx_saxreader_fuzzer.cc", |
| 56 ] |
| 57 deps = [ |
| 58 "//third_party/pdfium:pdfium", |
| 59 ] |
| 60 configs -= [ "//build/config/compiler:chromium_code" ] |
| 61 configs += [ |
| 62 "//build/config/compiler:no_chromium_code", |
| 63 ":libfuzzer_config", |
| 64 ] |
| 65 } |
| 52 source_set("pdf_codec_png_fuzzer") { | 66 source_set("pdf_codec_png_fuzzer") { |
| 53 testonly = true | 67 testonly = true |
| 54 sources = [ | 68 sources = [ |
| 55 "pdf_codec_png_fuzzer.cc", | 69 "pdf_codec_png_fuzzer.cc", |
| 56 "xfa_codec_fuzzer.h", | 70 "xfa_codec_fuzzer.h", |
| 57 ] | 71 ] |
| 58 deps = [ | 72 deps = [ |
| 59 "//third_party/pdfium:pdfium", | 73 "//third_party/pdfium:pdfium", |
| 60 ] | 74 ] |
| 61 configs -= [ "//build/config/compiler:chromium_code" ] | 75 configs -= [ "//build/config/compiler:chromium_code" ] |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 ] | 161 ] |
| 148 deps = [ | 162 deps = [ |
| 149 "//third_party/pdfium:pdfium", | 163 "//third_party/pdfium:pdfium", |
| 150 ] | 164 ] |
| 151 configs -= [ "//build/config/compiler:chromium_code" ] | 165 configs -= [ "//build/config/compiler:chromium_code" ] |
| 152 configs += [ | 166 configs += [ |
| 153 "//build/config/compiler:no_chromium_code", | 167 "//build/config/compiler:no_chromium_code", |
| 154 ":libfuzzer_config", | 168 ":libfuzzer_config", |
| 155 ] | 169 ] |
| 156 } | 170 } |
| OLD | NEW |