OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium 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("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/linux/pkg_config.gni") | 7 import("//build/config/linux/pkg_config.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//testing/libfuzzer/fuzzer_test.gni") | 9 import("//testing/libfuzzer/fuzzer_test.gni") |
10 | 10 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 "CoreText.framework", | 188 "CoreText.framework", |
189 ] | 189 ] |
190 } | 190 } |
191 | 191 |
192 # When without -fvisibility=hidden for pango to use the harfbuzz | 192 # When without -fvisibility=hidden for pango to use the harfbuzz |
193 # in the tree, all symbols pango needs must be included, or | 193 # in the tree, all symbols pango needs must be included, or |
194 # pango uses mixed versions of harfbuzz and leads to crash. | 194 # pango uses mixed versions of harfbuzz and leads to crash. |
195 # See crbug.com/462689. | 195 # See crbug.com/462689. |
196 if (is_linux && use_pango && !is_chromeos && !is_official_build && | 196 if (is_linux && use_pango && !is_chromeos && !is_official_build && |
197 current_cpu != "arm" && current_cpu != "mipsel") { | 197 current_cpu != "arm" && current_cpu != "mipsel") { |
198 deps += [ "//build/linux:freetype2" ] | 198 deps += [ "//third_party/freetype2" ] |
199 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 199 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
200 configs += [ "//build/config/gcc:symbol_visibility_default" ] | 200 configs += [ "//build/config/gcc:symbol_visibility_default" ] |
201 sources += [ | 201 sources += [ |
202 "src/hb-ft.cc", | 202 "src/hb-ft.cc", |
203 "src/hb-ft.h", | 203 "src/hb-ft.h", |
204 ] | 204 ] |
205 } | 205 } |
206 if (use_glib) { | 206 if (use_glib) { |
207 configs += [ "//build/config/linux:glib" ] | 207 configs += [ "//build/config/linux:glib" ] |
208 sources += [ | 208 sources += [ |
209 "src/hb-glib.cc", | 209 "src/hb-glib.cc", |
210 "src/hb-glib.h", | 210 "src/hb-glib.h", |
211 ] | 211 ] |
212 } | 212 } |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 fuzzer_test("harfbuzz_fuzzer") { | 216 fuzzer_test("harfbuzz_fuzzer") { |
217 sources = [ | 217 sources = [ |
218 "fuzz/harfbuzz_fuzzer.cc", | 218 "fuzz/harfbuzz_fuzzer.cc", |
219 ] | 219 ] |
220 deps = [ | 220 deps = [ |
221 ":harfbuzz-ng", | 221 ":harfbuzz-ng", |
222 ] | 222 ] |
223 libfuzzer_options = [ "max_len=16800" ] | 223 libfuzzer_options = [ "max_len=16800" ] |
224 seed_corpus = "fuzz/seed_corpus" | 224 seed_corpus = "fuzz/seed_corpus" |
225 } | 225 } |
OLD | NEW |