| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 "CoreText.framework", | 195 "CoreText.framework", |
| 196 ] | 196 ] |
| 197 } | 197 } |
| 198 | 198 |
| 199 # When without -fvisibility=hidden for pango to use the harfbuzz | 199 # When without -fvisibility=hidden for pango to use the harfbuzz |
| 200 # in the tree, all symbols pango needs must be included, or | 200 # in the tree, all symbols pango needs must be included, or |
| 201 # pango uses mixed versions of harfbuzz and leads to crash. | 201 # pango uses mixed versions of harfbuzz and leads to crash. |
| 202 # See crbug.com/462689. | 202 # See crbug.com/462689. |
| 203 if (is_linux && use_pango && !is_chromeos && !is_official_build && | 203 if (is_linux && use_pango && !is_chromeos && !is_official_build && |
| 204 current_cpu != "arm" && current_cpu != "mipsel") { | 204 current_cpu != "arm" && current_cpu != "mipsel") { |
| 205 deps += [ "//build/linux:freetype2" ] | 205 deps += [ "//build/config/freetype" ] |
| 206 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 206 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
| 207 configs += [ "//build/config/gcc:symbol_visibility_default" ] | 207 configs += [ "//build/config/gcc:symbol_visibility_default" ] |
| 208 sources += [ | 208 sources += [ |
| 209 "src/hb-ft.cc", | 209 "src/hb-ft.cc", |
| 210 "src/hb-ft.h", | 210 "src/hb-ft.h", |
| 211 ] | 211 ] |
| 212 } | 212 } |
| 213 if (use_glib) { | 213 if (use_glib) { |
| 214 configs += [ "//build/config/linux:glib" ] | 214 configs += [ "//build/config/linux:glib" ] |
| 215 sources += [ | 215 sources += [ |
| 216 "src/hb-glib.cc", | 216 "src/hb-glib.cc", |
| 217 "src/hb-glib.h", | 217 "src/hb-glib.h", |
| 218 ] | 218 ] |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 | 222 |
| 223 fuzzer_test("harfbuzz_fuzzer") { | 223 fuzzer_test("harfbuzz_fuzzer") { |
| 224 sources = [ | 224 sources = [ |
| 225 "fuzz/harfbuzz_fuzzer.cc", | 225 "fuzz/harfbuzz_fuzzer.cc", |
| 226 ] | 226 ] |
| 227 deps = [ | 227 deps = [ |
| 228 ":harfbuzz-ng", | 228 ":harfbuzz-ng", |
| 229 ] | 229 ] |
| 230 libfuzzer_options = [ "max_len=16800" ] | 230 libfuzzer_options = [ "max_len=16800" ] |
| 231 seed_corpus = "fuzz/seed_corpus" | 231 seed_corpus = "fuzz/seed_corpus" |
| 232 } | 232 } |
| OLD | NEW |