- add sources.
[platform/framework/web/crosswalk.git] / src / tools / gn / secondary / third_party / sfntly / BUILD.gn
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 static_library("sfntly") {
6   sources = [
7     "cpp/src/sfntly/data/byte_array.cc",
8     "cpp/src/sfntly/data/byte_array.h",
9     "cpp/src/sfntly/data/font_data.cc",
10     "cpp/src/sfntly/data/font_data.h",
11     "cpp/src/sfntly/data/font_input_stream.cc",
12     "cpp/src/sfntly/data/font_input_stream.h",
13     "cpp/src/sfntly/data/font_output_stream.cc",
14     "cpp/src/sfntly/data/font_output_stream.h",
15     "cpp/src/sfntly/data/growable_memory_byte_array.cc",
16     "cpp/src/sfntly/data/growable_memory_byte_array.h",
17     "cpp/src/sfntly/data/memory_byte_array.cc",
18     "cpp/src/sfntly/data/memory_byte_array.h",
19     "cpp/src/sfntly/data/readable_font_data.cc",
20     "cpp/src/sfntly/data/readable_font_data.h",
21     "cpp/src/sfntly/data/writable_font_data.cc",
22     "cpp/src/sfntly/data/writable_font_data.h",
23     "cpp/src/sfntly/font.cc",
24     "cpp/src/sfntly/font.h",
25     "cpp/src/sfntly/font_factory.cc",
26     "cpp/src/sfntly/font_factory.h",
27     "cpp/src/sfntly/math/fixed1616.h",
28     "cpp/src/sfntly/math/font_math.h",
29     "cpp/src/sfntly/port/atomic.h",
30     "cpp/src/sfntly/port/config.h",
31     "cpp/src/sfntly/port/endian.h",
32     "cpp/src/sfntly/port/exception_type.h",
33     "cpp/src/sfntly/port/file_input_stream.cc",
34     "cpp/src/sfntly/port/file_input_stream.h",
35     "cpp/src/sfntly/port/input_stream.h",
36     "cpp/src/sfntly/port/lock.cc",
37     "cpp/src/sfntly/port/lock.h",
38     "cpp/src/sfntly/port/memory_input_stream.cc",
39     "cpp/src/sfntly/port/memory_input_stream.h",
40     "cpp/src/sfntly/port/memory_output_stream.cc",
41     "cpp/src/sfntly/port/memory_output_stream.h",
42     "cpp/src/sfntly/port/output_stream.h",
43     "cpp/src/sfntly/port/refcount.h",
44     "cpp/src/sfntly/port/type.h",
45     "cpp/src/sfntly/table/bitmap/big_glyph_metrics.cc",
46     "cpp/src/sfntly/table/bitmap/big_glyph_metrics.h",
47     "cpp/src/sfntly/table/bitmap/bitmap_glyph.cc",
48     "cpp/src/sfntly/table/bitmap/bitmap_glyph.h",
49     "cpp/src/sfntly/table/bitmap/bitmap_glyph_info.cc",
50     "cpp/src/sfntly/table/bitmap/bitmap_glyph_info.h",
51     "cpp/src/sfntly/table/bitmap/bitmap_size_table.cc",
52     "cpp/src/sfntly/table/bitmap/bitmap_size_table.h",
53     "cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.cc",
54     "cpp/src/sfntly/table/bitmap/composite_bitmap_glyph.h",
55     "cpp/src/sfntly/table/bitmap/ebdt_table.cc",
56     "cpp/src/sfntly/table/bitmap/ebdt_table.h",
57     "cpp/src/sfntly/table/bitmap/eblc_table.cc",
58     "cpp/src/sfntly/table/bitmap/eblc_table.h",
59     "cpp/src/sfntly/table/bitmap/ebsc_table.cc",
60     "cpp/src/sfntly/table/bitmap/ebsc_table.h",
61     "cpp/src/sfntly/table/bitmap/glyph_metrics.cc",
62     "cpp/src/sfntly/table/bitmap/glyph_metrics.h",
63     "cpp/src/sfntly/table/bitmap/index_sub_table.cc",
64     "cpp/src/sfntly/table/bitmap/index_sub_table.h",
65     "cpp/src/sfntly/table/bitmap/index_sub_table_format1.cc",
66     "cpp/src/sfntly/table/bitmap/index_sub_table_format1.h",
67     "cpp/src/sfntly/table/bitmap/index_sub_table_format2.cc",
68     "cpp/src/sfntly/table/bitmap/index_sub_table_format2.h",
69     "cpp/src/sfntly/table/bitmap/index_sub_table_format3.cc",
70     "cpp/src/sfntly/table/bitmap/index_sub_table_format3.h",
71     "cpp/src/sfntly/table/bitmap/index_sub_table_format4.cc",
72     "cpp/src/sfntly/table/bitmap/index_sub_table_format4.h",
73     "cpp/src/sfntly/table/bitmap/index_sub_table_format5.cc",
74     "cpp/src/sfntly/table/bitmap/index_sub_table_format5.h",
75     "cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.cc",
76     "cpp/src/sfntly/table/bitmap/simple_bitmap_glyph.h",
77     "cpp/src/sfntly/table/bitmap/small_glyph_metrics.cc",
78     "cpp/src/sfntly/table/bitmap/small_glyph_metrics.h",
79     "cpp/src/sfntly/table/byte_array_table_builder.cc",
80     "cpp/src/sfntly/table/byte_array_table_builder.h",
81     "cpp/src/sfntly/table/core/cmap_table.cc",
82     "cpp/src/sfntly/table/core/cmap_table.h",
83     "cpp/src/sfntly/table/core/font_header_table.cc",
84     "cpp/src/sfntly/table/core/font_header_table.h",
85     "cpp/src/sfntly/table/core/horizontal_device_metrics_table.cc",
86     "cpp/src/sfntly/table/core/horizontal_device_metrics_table.h",
87     "cpp/src/sfntly/table/core/horizontal_header_table.cc",
88     "cpp/src/sfntly/table/core/horizontal_header_table.h",
89     "cpp/src/sfntly/table/core/horizontal_metrics_table.cc",
90     "cpp/src/sfntly/table/core/horizontal_metrics_table.h",
91     "cpp/src/sfntly/table/core/maximum_profile_table.cc",
92     "cpp/src/sfntly/table/core/maximum_profile_table.h",
93     "cpp/src/sfntly/table/core/name_table.cc",
94     "cpp/src/sfntly/table/core/name_table.h",
95     "cpp/src/sfntly/table/core/os2_table.cc",
96     "cpp/src/sfntly/table/core/os2_table.h",
97     "cpp/src/sfntly/table/font_data_table.cc",
98     "cpp/src/sfntly/table/font_data_table.h",
99     "cpp/src/sfntly/table/generic_table_builder.cc",
100     "cpp/src/sfntly/table/generic_table_builder.h",
101     "cpp/src/sfntly/table/header.cc",
102     "cpp/src/sfntly/table/header.h",
103     "cpp/src/sfntly/table/subtable.cc",
104     "cpp/src/sfntly/table/subtable.h",
105     "cpp/src/sfntly/table/subtable_container_table.h",
106     "cpp/src/sfntly/table/table.cc",
107     "cpp/src/sfntly/table/table.h",
108     "cpp/src/sfntly/table/table_based_table_builder.cc",
109     "cpp/src/sfntly/table/table_based_table_builder.h",
110     "cpp/src/sfntly/table/truetype/glyph_table.cc",
111     "cpp/src/sfntly/table/truetype/glyph_table.h",
112     "cpp/src/sfntly/table/truetype/loca_table.cc",
113     "cpp/src/sfntly/table/truetype/loca_table.h",
114     "cpp/src/sfntly/tag.cc",
115     "cpp/src/sfntly/tag.h",
116     "cpp/src/sample/chromium/font_subsetter.cc",
117     "cpp/src/sample/chromium/font_subsetter.h",
118     "cpp/src/sample/chromium/subsetter_impl.cc",
119     "cpp/src/sample/chromium/subsetter_impl.h",
120   ]
121
122   defines = [ "SFNTLY_NO_EXCEPTION" ]
123   include_dirs = [ "cpp/src" ]
124
125   configs -= "//build/config/compiler:chromium_code"
126   configs += "//build/config/compiler:no_chromium_code"
127
128   deps = [ "//third_party/icu:icuuc" ]
129 }