blob: b438711c1e180da8ea9d4120c1c0cb0f40174950 [file] [log] [blame]
bashi@chromium.org98897002014-06-29 05:59:14 +00001# Copyright 2014 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
5config("ots_config") {
6 include_dirs = [ "include" ]
7}
8
9source_set("ots") {
10 sources = [
11 "include/ots-memory-stream.h",
12 "include/opentype-sanitiser.h",
13 "src/cbdt.cc",
14 "src/cbdt.h",
15 "src/cblc.cc",
16 "src/cblc.h",
17 "src/cff.cc",
18 "src/cff.h",
19 "src/cff_type2_charstring.cc",
20 "src/cff_type2_charstring.h",
21 "src/cmap.cc",
22 "src/cmap.h",
23 "src/cvt.cc",
24 "src/cvt.h",
25 "src/fpgm.cc",
26 "src/fpgm.h",
27 "src/gasp.cc",
28 "src/gasp.h",
29 "src/gdef.cc",
30 "src/gdef.h",
31 "src/glyf.cc",
32 "src/glyf.h",
33 "src/gpos.cc",
34 "src/gpos.h",
35 "src/gsub.cc",
36 "src/gsub.h",
37 "src/hdmx.cc",
38 "src/hdmx.h",
39 "src/head.cc",
40 "src/head.h",
41 "src/hhea.cc",
42 "src/hhea.h",
43 "src/hmtx.cc",
44 "src/hmtx.h",
45 "src/kern.cc",
46 "src/kern.h",
47 "src/layout.cc",
48 "src/layout.h",
49 "src/loca.cc",
50 "src/loca.h",
51 "src/ltsh.cc",
52 "src/ltsh.h",
53 "src/maxp.cc",
54 "src/maxp.h",
55 "src/math.cc",
56 "src/math_.h",
57 "src/metrics.cc",
58 "src/metrics.h",
59 "src/name.cc",
60 "src/name.h",
61 "src/os2.cc",
62 "src/os2.h",
63 "src/ots.cc",
64 "src/ots.h",
65 "src/post.cc",
66 "src/post.h",
67 "src/prep.cc",
68 "src/prep.h",
69 "src/vdmx.cc",
70 "src/vdmx.h",
71 "src/vhea.cc",
72 "src/vhea.h",
73 "src/vmtx.cc",
74 "src/vmtx.h",
75 "src/vorg.cc",
76 "src/vorg.h",
77 "src/woff2.cc",
78 "src/woff2.h",
79 ]
80
81 direct_dependent_configs = [ ":ots_config" ]
82
83 deps = [
84 "//third_party/brotli",
85 "//third_party/zlib",
86 ]
87
88 if (is_win) {
89 cflags = [
90 "/wd4267", # Conversion from size_t to 'type'.
91 "/wd4334", # 32-bit shift implicitly converted to 64-bits.
92 ]
93 }
94}