2016-08-03 22:08:04 +00:00
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2019-02-04 20:36:31 +00:00
|
|
|
import("../../gn/skia.gni")
|
2016-08-03 22:08:04 +00:00
|
|
|
import("../third_party.gni")
|
|
|
|
|
2019-02-22 20:55:39 +00:00
|
|
|
declare_args() {
|
|
|
|
skia_use_system_harfbuzz = is_official_build
|
|
|
|
}
|
|
|
|
|
|
|
|
if (skia_use_system_harfbuzz) {
|
|
|
|
system("harfbuzz") {
|
|
|
|
include_dirs = [ "/usr/include/harfbuzz" ]
|
|
|
|
libs = [ "harfbuzz" ]
|
|
|
|
}
|
|
|
|
} else {
|
2019-02-04 20:36:31 +00:00
|
|
|
third_party("harfbuzz") {
|
|
|
|
_src = "../externals/harfbuzz/src"
|
|
|
|
public_include_dirs = [
|
|
|
|
".",
|
|
|
|
_src,
|
|
|
|
]
|
|
|
|
defines = [
|
|
|
|
"HAVE_ICU",
|
|
|
|
"HAVE_ICU_BUILTIN",
|
2019-06-18 14:52:34 +00:00
|
|
|
"HAVE_INTEL_ATOMIC_PRIMITIVES",
|
2019-02-04 20:36:31 +00:00
|
|
|
"HAVE_OT",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
"//third_party/icu",
|
|
|
|
]
|
2019-06-18 14:52:34 +00:00
|
|
|
public = [
|
|
|
|
"$_src/hb-blob.h",
|
|
|
|
"$_src/hb-buffer.h",
|
|
|
|
"$_src/hb-common.h",
|
|
|
|
"$_src/hb-deprecated.h",
|
|
|
|
"$_src/hb-face.h",
|
|
|
|
"$_src/hb-font.h",
|
|
|
|
"$_src/hb-icu.h",
|
|
|
|
"$_src/hb-map.h",
|
|
|
|
"$_src/hb-ot-font.h",
|
|
|
|
"$_src/hb-ot-layout.h",
|
|
|
|
"$_src/hb-ot-math.h",
|
|
|
|
"$_src/hb-ot-shape.h",
|
|
|
|
"$_src/hb-ot-var.h",
|
|
|
|
"$_src/hb-ot.h",
|
|
|
|
"$_src/hb-set.h",
|
|
|
|
"$_src/hb-shape-plan.h",
|
|
|
|
"$_src/hb-shape.h",
|
|
|
|
"$_src/hb-subset.h",
|
|
|
|
"$_src/hb-unicode.h",
|
|
|
|
"$_src/hb-version.h",
|
|
|
|
"$_src/hb.h",
|
|
|
|
]
|
2019-02-04 20:36:31 +00:00
|
|
|
sources = [
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-aat-fdsc-table.hh",
|
|
|
|
"$_src/hb-aat-layout-ankr-table.hh",
|
|
|
|
"$_src/hb-aat-layout-bsln-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-aat-layout-common.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-aat-layout-feat-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-aat-layout-just-table.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-aat-layout-kerx-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-aat-layout-lcar-table.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-aat-layout-morx-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-aat-layout-opbd-table.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-aat-layout-trak-table.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-aat-layout.cc",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-aat-layout.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-aat-ltag-table.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-aat-map.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-aat-map.hh",
|
2019-06-18 14:52:34 +00:00
|
|
|
"$_src/hb-algs.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-array.hh",
|
|
|
|
"$_src/hb-atomic.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-bimap.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-blob.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-blob.hh",
|
|
|
|
"$_src/hb-buffer-deserialize-json.hh",
|
|
|
|
"$_src/hb-buffer-deserialize-text.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-buffer-serialize.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-buffer.cc",
|
|
|
|
"$_src/hb-buffer.hh",
|
|
|
|
"$_src/hb-cache.hh",
|
|
|
|
"$_src/hb-cff-interp-common.hh",
|
|
|
|
"$_src/hb-cff-interp-cs-common.hh",
|
|
|
|
"$_src/hb-cff-interp-dict-common.hh",
|
|
|
|
"$_src/hb-cff1-interp-cs.hh",
|
|
|
|
"$_src/hb-cff2-interp-cs.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-common.cc",
|
2019-06-18 14:52:34 +00:00
|
|
|
"$_src/hb-config.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-coretext.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-debug.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-directwrite.cc",
|
2019-06-18 14:52:34 +00:00
|
|
|
"$_src/hb-dispatch.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-face.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-face.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-fallback-shape.cc",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-font.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-font.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ft.cc",
|
|
|
|
"$_src/hb-gdi.cc",
|
|
|
|
"$_src/hb-glib.cc",
|
|
|
|
"$_src/hb-gobject-structs.cc",
|
|
|
|
"$_src/hb-graphite2.cc",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-icu.cc",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-iter.hh",
|
|
|
|
"$_src/hb-kern.hh",
|
|
|
|
"$_src/hb-machinery.hh",
|
2019-02-20 16:25:45 +00:00
|
|
|
"$_src/hb-map.cc",
|
2019-06-18 14:52:34 +00:00
|
|
|
"$_src/hb-map.hh",
|
|
|
|
"$_src/hb-meta.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-mutex.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-null.hh",
|
|
|
|
"$_src/hb-number-parser.hh",
|
|
|
|
"$_src/hb-number.cc",
|
|
|
|
"$_src/hb-number.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-object.hh",
|
|
|
|
"$_src/hb-open-file.hh",
|
|
|
|
"$_src/hb-open-type.hh",
|
|
|
|
"$_src/hb-ot-cff-common.hh",
|
|
|
|
"$_src/hb-ot-cff1-table.cc",
|
|
|
|
"$_src/hb-ot-cff1-table.hh",
|
|
|
|
"$_src/hb-ot-cff2-table.cc",
|
|
|
|
"$_src/hb-ot-cff2-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-cmap-table.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-color-cbdt-table.hh",
|
|
|
|
"$_src/hb-ot-color-colr-table.hh",
|
|
|
|
"$_src/hb-ot-color-cpal-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-color-sbix-table.hh",
|
|
|
|
"$_src/hb-ot-color-svg-table.hh",
|
|
|
|
"$_src/hb-ot-color.cc",
|
|
|
|
"$_src/hb-ot-face-table-list.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-face.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-face.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-font.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-gasp-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-glyf-table.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-hdmx-table.hh",
|
|
|
|
"$_src/hb-ot-head-table.hh",
|
|
|
|
"$_src/hb-ot-hhea-table.hh",
|
|
|
|
"$_src/hb-ot-hmtx-table.hh",
|
|
|
|
"$_src/hb-ot-kern-table.hh",
|
|
|
|
"$_src/hb-ot-layout-base-table.hh",
|
|
|
|
"$_src/hb-ot-layout-common.hh",
|
|
|
|
"$_src/hb-ot-layout-gdef-table.hh",
|
|
|
|
"$_src/hb-ot-layout-gpos-table.hh",
|
|
|
|
"$_src/hb-ot-layout-gsub-table.hh",
|
|
|
|
"$_src/hb-ot-layout-gsubgpos.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-layout-jstf-table.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-layout.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-layout.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-map.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-map.hh",
|
|
|
|
"$_src/hb-ot-math-table.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-math.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-maxp-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-meta-table.hh",
|
|
|
|
"$_src/hb-ot-meta.cc",
|
|
|
|
"$_src/hb-ot-metrics.cc",
|
|
|
|
"$_src/hb-ot-metrics.hh",
|
2019-06-18 14:52:34 +00:00
|
|
|
"$_src/hb-ot-name-language-static.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-name-language.hh",
|
|
|
|
"$_src/hb-ot-name-table.hh",
|
|
|
|
"$_src/hb-ot-name.cc",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-os2-table.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-os2-unicode-ranges.hh",
|
|
|
|
"$_src/hb-ot-post-macroman.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-post-table.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-complex-arabic-fallback.hh",
|
|
|
|
"$_src/hb-ot-shape-complex-arabic-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-shape-complex-arabic-win1256.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-complex-arabic.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-complex-arabic.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-complex-default.cc",
|
|
|
|
"$_src/hb-ot-shape-complex-hangul.cc",
|
|
|
|
"$_src/hb-ot-shape-complex-hebrew.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-complex-indic-machine.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-complex-indic-table.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-complex-indic.cc",
|
|
|
|
"$_src/hb-ot-shape-complex-indic.hh",
|
|
|
|
"$_src/hb-ot-shape-complex-khmer-machine.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-complex-khmer.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-complex-khmer.hh",
|
|
|
|
"$_src/hb-ot-shape-complex-myanmar-machine.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-complex-myanmar.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-complex-myanmar.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-complex-thai.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-complex-use-machine.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-complex-use-table.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-complex-use.cc",
|
|
|
|
"$_src/hb-ot-shape-complex-use.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-complex-vowel-constraints.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-complex-vowel-constraints.hh",
|
|
|
|
"$_src/hb-ot-shape-complex.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-fallback.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-fallback.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-shape-normalize.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-shape-normalize.hh",
|
|
|
|
"$_src/hb-ot-shape.cc",
|
|
|
|
"$_src/hb-ot-shape.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-stat-table.hh",
|
|
|
|
"$_src/hb-ot-tag-table.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-tag.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-var-avar-table.hh",
|
|
|
|
"$_src/hb-ot-var-fvar-table.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-var-gvar-table.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-ot-var-hvar-table.hh",
|
|
|
|
"$_src/hb-ot-var-mvar-table.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-ot-var.cc",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-ot-vorg-table.hh",
|
2019-06-18 14:52:34 +00:00
|
|
|
"$_src/hb-pool.hh",
|
|
|
|
"$_src/hb-sanitize.hh",
|
|
|
|
"$_src/hb-serialize.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-set-digest.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-set.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-set.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-shape-plan.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-shape-plan.hh",
|
|
|
|
"$_src/hb-shape.cc",
|
|
|
|
"$_src/hb-shaper-impl.hh",
|
|
|
|
"$_src/hb-shaper-list.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-shaper.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-shaper.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-static.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-string-array.hh",
|
|
|
|
"$_src/hb-subset-cff-common.cc",
|
|
|
|
"$_src/hb-subset-cff-common.hh",
|
|
|
|
"$_src/hb-subset-cff1.cc",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-subset-cff1.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-subset-cff2.cc",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-subset-cff2.hh",
|
2019-02-20 16:25:45 +00:00
|
|
|
"$_src/hb-subset-input.cc",
|
2019-06-18 14:52:34 +00:00
|
|
|
"$_src/hb-subset-input.hh",
|
2019-02-20 16:25:45 +00:00
|
|
|
"$_src/hb-subset-plan.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-subset-plan.hh",
|
2019-02-20 16:25:45 +00:00
|
|
|
"$_src/hb-subset.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-subset.hh",
|
2019-06-18 14:52:34 +00:00
|
|
|
"$_src/hb-ucd-table.hh",
|
|
|
|
"$_src/hb-ucd.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-unicode-emoji-table.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
"$_src/hb-unicode.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-unicode.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-uniscribe.cc",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb-utf.hh",
|
2019-12-26 17:41:28 +00:00
|
|
|
"$_src/hb-vector.hh",
|
2019-02-06 20:08:39 +00:00
|
|
|
"$_src/hb.hh",
|
2019-02-04 20:36:31 +00:00
|
|
|
]
|
2016-08-03 22:08:04 +00:00
|
|
|
}
|
|
|
|
}
|