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" ] |
| 9 |
8 defines = [ | 10 defines = [ |
9 "PNG_PREFIX", | 11 "PNG_PREFIX", |
10 "PNG_USE_READ_MACROS", | 12 "PNG_USE_READ_MACROS", |
11 ] | 13 ] |
12 include_dirs = [ "../.." ] | 14 include_dirs = [ "../.." ] |
13 if (pdf_enable_v8) { | 15 if (pdf_enable_v8) { |
14 defines += [ "PDF_ENABLE_V8" ] | 16 defines += [ "PDF_ENABLE_V8" ] |
15 } | 17 } |
16 if (pdf_enable_xfa) { | 18 if (pdf_enable_xfa) { |
17 defines += [ "PDF_ENABLE_XFA" ] | 19 defines += [ "PDF_ENABLE_XFA" ] |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 ] | 117 ] |
116 deps = [ | 118 deps = [ |
117 "//third_party/pdfium:pdfium", | 119 "//third_party/pdfium:pdfium", |
118 ] | 120 ] |
119 configs -= [ "//build/config/compiler:chromium_code" ] | 121 configs -= [ "//build/config/compiler:chromium_code" ] |
120 configs += [ | 122 configs += [ |
121 "//build/config/compiler:no_chromium_code", | 123 "//build/config/compiler:no_chromium_code", |
122 ":libfuzzer_config", | 124 ":libfuzzer_config", |
123 ] | 125 ] |
124 } | 126 } |
| 127 source_set("pdf_css_fuzzer") { |
| 128 testonly = true |
| 129 sources = [ |
| 130 "pdf_css_fuzzer.cc", |
| 131 ] |
| 132 deps = [ |
| 133 "//third_party/pdfium:pdfium", |
| 134 ] |
| 135 configs -= [ "//build/config/compiler:chromium_code" ] |
| 136 configs += [ |
| 137 "//build/config/compiler:no_chromium_code", |
| 138 ":libfuzzer_config", |
| 139 ] |
| 140 } |
125 } | 141 } |
126 | 142 |
127 source_set("pdf_jpx_fuzzer") { | 143 source_set("pdf_jpx_fuzzer") { |
128 testonly = true | 144 testonly = true |
129 sources = [ | 145 sources = [ |
130 "pdf_jpx_fuzzer.cc", | 146 "pdf_jpx_fuzzer.cc", |
131 ] | 147 ] |
132 deps = [ | 148 deps = [ |
133 "//third_party/pdfium:pdfium", | 149 "//third_party/pdfium:pdfium", |
134 ] | 150 ] |
135 configs -= [ "//build/config/compiler:chromium_code" ] | 151 configs -= [ "//build/config/compiler:chromium_code" ] |
136 configs += [ | 152 configs += [ |
137 "//build/config/compiler:no_chromium_code", | 153 "//build/config/compiler:no_chromium_code", |
138 ":libfuzzer_config", | 154 ":libfuzzer_config", |
139 ] | 155 ] |
140 } | 156 } |
OLD | NEW |