| # Copyright 2014 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//testing/libfuzzer/fuzzer_test.gni") |
| |
| config("ots_config") { |
| include_dirs = [ "src/include" ] |
| } |
| |
| static_library("ots") { |
| sources = [ |
| "src/include/opentype-sanitiser.h", |
| "src/include/ots-memory-stream.h", |
| "src/src/avar.cc", |
| "src/src/avar.h", |
| "src/src/cff.cc", |
| "src/src/cff.h", |
| "src/src/cff_charstring.cc", |
| "src/src/cff_charstring.h", |
| "src/src/cmap.cc", |
| "src/src/cmap.h", |
| "src/src/cvar.cc", |
| "src/src/cvar.h", |
| "src/src/cvt.cc", |
| "src/src/cvt.h", |
| "src/src/fpgm.cc", |
| "src/src/fpgm.h", |
| "src/src/fvar.cc", |
| "src/src/fvar.h", |
| "src/src/gasp.cc", |
| "src/src/gasp.h", |
| "src/src/gdef.cc", |
| "src/src/gdef.h", |
| "src/src/glyf.cc", |
| "src/src/glyf.h", |
| "src/src/gpos.cc", |
| "src/src/gpos.h", |
| "src/src/gsub.cc", |
| "src/src/gsub.h", |
| "src/src/gvar.cc", |
| "src/src/gvar.h", |
| "src/src/hdmx.cc", |
| "src/src/hdmx.h", |
| "src/src/head.cc", |
| "src/src/head.h", |
| "src/src/hhea.cc", |
| "src/src/hhea.h", |
| "src/src/hmtx.h", |
| "src/src/hvar.cc", |
| "src/src/hvar.h", |
| "src/src/kern.cc", |
| "src/src/kern.h", |
| "src/src/layout.cc", |
| "src/src/layout.h", |
| "src/src/loca.cc", |
| "src/src/loca.h", |
| "src/src/ltsh.cc", |
| "src/src/ltsh.h", |
| "src/src/math.cc", |
| "src/src/math_.h", |
| "src/src/maxp.cc", |
| "src/src/maxp.h", |
| "src/src/metrics.cc", |
| "src/src/metrics.h", |
| "src/src/mvar.cc", |
| "src/src/mvar.h", |
| "src/src/name.cc", |
| "src/src/name.h", |
| "src/src/os2.cc", |
| "src/src/os2.h", |
| "src/src/ots.cc", |
| "src/src/ots.h", |
| "src/src/post.cc", |
| "src/src/post.h", |
| "src/src/prep.cc", |
| "src/src/prep.h", |
| "src/src/stat.cc", |
| "src/src/stat.h", |
| "src/src/variations.cc", |
| "src/src/variations.h", |
| "src/src/vdmx.cc", |
| "src/src/vdmx.h", |
| "src/src/vhea.cc", |
| "src/src/vhea.h", |
| "src/src/vmtx.h", |
| "src/src/vorg.cc", |
| "src/src/vorg.h", |
| "src/src/vvar.cc", |
| "src/src/vvar.h", |
| ] |
| |
| public_configs = [ ":ots_config" ] |
| |
| deps = [ |
| "//third_party/brotli:dec", |
| "//third_party/woff2:woff2_dec", |
| "//third_party/zlib", |
| ] |
| |
| configs -= [ "//build/config/compiler:chromium_code" ] |
| configs += [ "//build/config/compiler:no_chromium_code" ] |
| } |