Home | History | Annotate | Download | only in sfntly
      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 
      6 declare_args() {
      7 }
      8 
      9 import("../../gn/skia.gni")
     10 import("../third_party.gni")
     11 
     12 if (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 = [
     18       "//third_party/icu",
     19     ]
     20     deps = []
     21     if (is_win) {
     22       defines += [ "WIN32", ]
     23     }
     24     sources = [
     25       "$_src/sample/chromium/font_subsetter.cc",
     26       "$_src/sample/chromium/subsetter_impl.cc",
     27       "$_src/sfntly/data/byte_array.cc",
     28       "$_src/sfntly/data/font_data.cc",
     29       "$_src/sfntly/data/font_input_stream.cc",
     30       "$_src/sfntly/data/font_output_stream.cc",
     31       "$_src/sfntly/data/growable_memory_byte_array.cc",
     32       "$_src/sfntly/data/memory_byte_array.cc",
     33       "$_src/sfntly/data/readable_font_data.cc",
     34       "$_src/sfntly/data/writable_font_data.cc",
     35       "$_src/sfntly/font.cc",
     36       "$_src/sfntly/font_factory.cc",
     37       "$_src/sfntly/port/file_input_stream.cc",
     38       "$_src/sfntly/port/lock.cc",
     39       "$_src/sfntly/port/memory_input_stream.cc",
     40       "$_src/sfntly/port/memory_output_stream.cc",
     41       "$_src/sfntly/table/bitmap/big_glyph_metrics.cc",
     42       "$_src/sfntly/table/bitmap/bitmap_glyph.cc",
     43       "$_src/sfntly/table/bitmap/bitmap_glyph_info.cc",
     44       "$_src/sfntly/table/bitmap/bitmap_size_table.cc",
     45       "$_src/sfntly/table/bitmap/composite_bitmap_glyph.cc",
     46       "$_src/sfntly/table/bitmap/ebdt_table.cc",
     47       "$_src/sfntly/table/bitmap/eblc_table.cc",
     48       "$_src/sfntly/table/bitmap/ebsc_table.cc",
     49       "$_src/sfntly/table/bitmap/glyph_metrics.cc",
     50       "$_src/sfntly/table/bitmap/index_sub_table.cc",
     51       "$_src/sfntly/table/bitmap/index_sub_table_format1.cc",
     52       "$_src/sfntly/table/bitmap/index_sub_table_format2.cc",
     53       "$_src/sfntly/table/bitmap/index_sub_table_format3.cc",
     54       "$_src/sfntly/table/bitmap/index_sub_table_format4.cc",
     55       "$_src/sfntly/table/bitmap/index_sub_table_format5.cc",
     56       "$_src/sfntly/table/bitmap/simple_bitmap_glyph.cc",
     57       "$_src/sfntly/table/bitmap/small_glyph_metrics.cc",
     58       "$_src/sfntly/table/byte_array_table_builder.cc",
     59       "$_src/sfntly/table/core/cmap_table.cc",
     60       "$_src/sfntly/table/core/font_header_table.cc",
     61       "$_src/sfntly/table/core/horizontal_device_metrics_table.cc",
     62       "$_src/sfntly/table/core/horizontal_header_table.cc",
     63       "$_src/sfntly/table/core/horizontal_metrics_table.cc",
     64       "$_src/sfntly/table/core/maximum_profile_table.cc",
     65       "$_src/sfntly/table/core/name_table.cc",
     66       "$_src/sfntly/table/core/os2_table.cc",
     67       "$_src/sfntly/table/font_data_table.cc",
     68       "$_src/sfntly/table/generic_table_builder.cc",
     69       "$_src/sfntly/table/header.cc",
     70       "$_src/sfntly/table/subtable.cc",
     71       "$_src/sfntly/table/table.cc",
     72       "$_src/sfntly/table/table_based_table_builder.cc",
     73       "$_src/sfntly/table/truetype/glyph_table.cc",
     74       "$_src/sfntly/table/truetype/loca_table.cc",
     75       "$_src/sfntly/tag.cc",
     76       "$_src/sfntly/tools/subsetter/glyph_table_subsetter.cc",
     77       "$_src/sfntly/tools/subsetter/subsetter.cc",
     78       "$_src/sfntly/tools/subsetter/table_subsetter_impl.cc",
     79     ]
     80   }
     81 }
     82