• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6declare_args() {
7}
8
9import("../../gn/skia.gni")
10import("../third_party.gni")
11
12if (skia_use_icu) {
13  third_party("sfntly") {
14    _src = "../externals/sfntly/cpp/src"
15    public_include_dirs = [ _src ]
16    defines = [ "SFNTLY_NO_EXCEPTION" ]
17    public_deps = [ "//third_party/icu" ]
18    deps = []
19    if (is_win) {
20      defines += [ "WIN32" ]
21    }
22    sources = [
23      "$_src/sample/chromium/font_subsetter.cc",
24      "$_src/sample/chromium/subsetter_impl.cc",
25      "$_src/sfntly/data/byte_array.cc",
26      "$_src/sfntly/data/font_data.cc",
27      "$_src/sfntly/data/font_input_stream.cc",
28      "$_src/sfntly/data/font_output_stream.cc",
29      "$_src/sfntly/data/growable_memory_byte_array.cc",
30      "$_src/sfntly/data/memory_byte_array.cc",
31      "$_src/sfntly/data/readable_font_data.cc",
32      "$_src/sfntly/data/writable_font_data.cc",
33      "$_src/sfntly/font.cc",
34      "$_src/sfntly/font_factory.cc",
35      "$_src/sfntly/port/file_input_stream.cc",
36      "$_src/sfntly/port/lock.cc",
37      "$_src/sfntly/port/memory_input_stream.cc",
38      "$_src/sfntly/port/memory_output_stream.cc",
39      "$_src/sfntly/table/bitmap/big_glyph_metrics.cc",
40      "$_src/sfntly/table/bitmap/bitmap_glyph.cc",
41      "$_src/sfntly/table/bitmap/bitmap_glyph_info.cc",
42      "$_src/sfntly/table/bitmap/bitmap_size_table.cc",
43      "$_src/sfntly/table/bitmap/composite_bitmap_glyph.cc",
44      "$_src/sfntly/table/bitmap/ebdt_table.cc",
45      "$_src/sfntly/table/bitmap/eblc_table.cc",
46      "$_src/sfntly/table/bitmap/ebsc_table.cc",
47      "$_src/sfntly/table/bitmap/glyph_metrics.cc",
48      "$_src/sfntly/table/bitmap/index_sub_table.cc",
49      "$_src/sfntly/table/bitmap/index_sub_table_format1.cc",
50      "$_src/sfntly/table/bitmap/index_sub_table_format2.cc",
51      "$_src/sfntly/table/bitmap/index_sub_table_format3.cc",
52      "$_src/sfntly/table/bitmap/index_sub_table_format4.cc",
53      "$_src/sfntly/table/bitmap/index_sub_table_format5.cc",
54      "$_src/sfntly/table/bitmap/simple_bitmap_glyph.cc",
55      "$_src/sfntly/table/bitmap/small_glyph_metrics.cc",
56      "$_src/sfntly/table/byte_array_table_builder.cc",
57      "$_src/sfntly/table/core/cmap_table.cc",
58      "$_src/sfntly/table/core/font_header_table.cc",
59      "$_src/sfntly/table/core/horizontal_device_metrics_table.cc",
60      "$_src/sfntly/table/core/horizontal_header_table.cc",
61      "$_src/sfntly/table/core/horizontal_metrics_table.cc",
62      "$_src/sfntly/table/core/maximum_profile_table.cc",
63      "$_src/sfntly/table/core/name_table.cc",
64      "$_src/sfntly/table/core/os2_table.cc",
65      "$_src/sfntly/table/font_data_table.cc",
66      "$_src/sfntly/table/generic_table_builder.cc",
67      "$_src/sfntly/table/header.cc",
68      "$_src/sfntly/table/subtable.cc",
69      "$_src/sfntly/table/table.cc",
70      "$_src/sfntly/table/table_based_table_builder.cc",
71      "$_src/sfntly/table/truetype/glyph_table.cc",
72      "$_src/sfntly/table/truetype/loca_table.cc",
73      "$_src/sfntly/tag.cc",
74      "$_src/sfntly/tools/subsetter/glyph_table_subsetter.cc",
75      "$_src/sfntly/tools/subsetter/subsetter.cc",
76      "$_src/sfntly/tools/subsetter/table_subsetter_impl.cc",
77    ]
78  }
79}
80