blob: 851d3fb5ac5b9df24ab2d1cc07b7602bab79d6f6 [file] [log] [blame]
halcanary19a97202016-08-03 15:08:04 -07001# 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("../third_party.gni")
10
11third_party("harfbuzz") {
12 public_include_dirs = [
13 ".",
14 "../externals/harfbuzz/src",
15 ]
16 defines = [
17 "HAVE_ICU",
18 "HAVE_ICU_BUILTIN",
19 "HAVE_OT",
20 "HB_NO_MT",
21 ]
22 deps = [
23 "//third_party/icu",
24 ]
25 sources = [
26 "../externals/harfbuzz/src/hb-blob.cc",
27 "../externals/harfbuzz/src/hb-buffer-serialize.cc",
28 "../externals/harfbuzz/src/hb-buffer.cc",
29 "../externals/harfbuzz/src/hb-common.cc",
30 "../externals/harfbuzz/src/hb-face.cc",
31 "../externals/harfbuzz/src/hb-fallback-shape.cc",
32 "../externals/harfbuzz/src/hb-font.cc",
33 "../externals/harfbuzz/src/hb-icu.cc",
34 "../externals/harfbuzz/src/hb-ot-font.cc",
35 "../externals/harfbuzz/src/hb-ot-layout.cc",
36 "../externals/harfbuzz/src/hb-ot-map.cc",
37 "../externals/harfbuzz/src/hb-ot-shape-complex-arabic.cc",
38 "../externals/harfbuzz/src/hb-ot-shape-complex-default.cc",
39 "../externals/harfbuzz/src/hb-ot-shape-complex-hangul.cc",
40 "../externals/harfbuzz/src/hb-ot-shape-complex-hebrew.cc",
41 "../externals/harfbuzz/src/hb-ot-shape-complex-indic-table.cc",
42 "../externals/harfbuzz/src/hb-ot-shape-complex-indic.cc",
43 "../externals/harfbuzz/src/hb-ot-shape-complex-myanmar.cc",
44 "../externals/harfbuzz/src/hb-ot-shape-complex-thai.cc",
45 "../externals/harfbuzz/src/hb-ot-shape-complex-tibetan.cc",
46 "../externals/harfbuzz/src/hb-ot-shape-complex-use-table.cc",
47 "../externals/harfbuzz/src/hb-ot-shape-complex-use.cc",
48 "../externals/harfbuzz/src/hb-ot-shape-fallback.cc",
49 "../externals/harfbuzz/src/hb-ot-shape-normalize.cc",
50 "../externals/harfbuzz/src/hb-ot-shape.cc",
51 "../externals/harfbuzz/src/hb-ot-tag.cc",
Hal Canary6d75d112017-01-27 14:12:32 -050052 "../externals/harfbuzz/src/hb-ot-var.cc",
halcanary19a97202016-08-03 15:08:04 -070053 "../externals/harfbuzz/src/hb-set.cc",
54 "../externals/harfbuzz/src/hb-shape-plan.cc",
55 "../externals/harfbuzz/src/hb-shape.cc",
56 "../externals/harfbuzz/src/hb-shaper.cc",
57 "../externals/harfbuzz/src/hb-unicode.cc",
58 "../externals/harfbuzz/src/hb-warning.cc",
59 ]
60 if (is_mac) {
61 sources += [ "../externals/harfbuzz/src/hb-coretext.cc" ]
62 defines += [ "HAVE_CORETEXT" ]
63 }
halcanary19a97202016-08-03 15:08:04 -070064}