blob: 4becb6a953065700b4c914ac0e2c6fe4c22e05a7 [file] [log] [blame]
# This file will be copied into //third_party/externals/harfbuzz via the new_local_repository
# rule in WORKSPACE.bazel, so all files should be relative to that path.
genrule(
name = "copy_config_override",
srcs = [
"@harfbuzz_config//:config-override.h",
],
outs = [
# Putting this in the root of the harfbuzz directory makes it easiest to include.
"config-override.h",
],
# $< is the one and only input file.
# $@ is the one and only output location.
cmd = "cp $< $@",
)
HARFBUZZ_HDRS = [
"src/hb-aat-layout.h",
"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-map.h",
"src/hb-ot-font.h",
"src/hb-ot-layout.h",
"src/hb-ot-math.h",
"src/hb-ot-metrics.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-style.h",
"src/hb-subset.h",
"src/hb-unicode.h",
"src/hb-version.h",
"src/hb.h",
]
HARFBUZZ_SRCS = [
"config-override.h",
"src/OT/Color/CBDT/CBDT.hh",
"src/OT/Color/COLR/COLR.hh",
"src/OT/Color/COLR/colrv1-closure.hh",
"src/OT/Color/CPAL/CPAL.hh",
"src/OT/Color/sbix/sbix.hh",
"src/OT/Color/svg/svg.hh",
"src/OT/Layout/Common/Coverage.hh",
"src/OT/Layout/Common/CoverageFormat1.hh",
"src/OT/Layout/Common/CoverageFormat2.hh",
"src/OT/Layout/Common/RangeRecord.hh",
"src/OT/Layout/GDEF/GDEF.hh",
"src/OT/Layout/GPOS/Anchor.hh",
"src/OT/Layout/GPOS/AnchorFormat1.hh",
"src/OT/Layout/GPOS/AnchorFormat2.hh",
"src/OT/Layout/GPOS/AnchorFormat3.hh",
"src/OT/Layout/GPOS/AnchorMatrix.hh",
"src/OT/Layout/GPOS/ChainContextPos.hh",
"src/OT/Layout/GPOS/Common.hh",
"src/OT/Layout/GPOS/ContextPos.hh",
"src/OT/Layout/GPOS/CursivePos.hh",
"src/OT/Layout/GPOS/CursivePosFormat1.hh",
"src/OT/Layout/GPOS/ExtensionPos.hh",
"src/OT/Layout/GPOS/GPOS.hh",
"src/OT/Layout/GPOS/LigatureArray.hh",
"src/OT/Layout/GPOS/MarkArray.hh",
"src/OT/Layout/GPOS/MarkBasePos.hh",
"src/OT/Layout/GPOS/MarkBasePosFormat1.hh",
"src/OT/Layout/GPOS/MarkLigPos.hh",
"src/OT/Layout/GPOS/MarkLigPosFormat1.hh",
"src/OT/Layout/GPOS/MarkMarkPos.hh",
"src/OT/Layout/GPOS/MarkMarkPosFormat1.hh",
"src/OT/Layout/GPOS/MarkRecord.hh",
"src/OT/Layout/GPOS/PairPos.hh",
"src/OT/Layout/GPOS/PairPosFormat1.hh",
"src/OT/Layout/GPOS/PairPosFormat2.hh",
"src/OT/Layout/GPOS/PairSet.hh",
"src/OT/Layout/GPOS/PairValueRecord.hh",
"src/OT/Layout/GPOS/PosLookup.hh",
"src/OT/Layout/GPOS/PosLookupSubTable.hh",
"src/OT/Layout/GPOS/SinglePos.hh",
"src/OT/Layout/GPOS/SinglePosFormat1.hh",
"src/OT/Layout/GPOS/SinglePosFormat2.hh",
"src/OT/Layout/GPOS/ValueFormat.hh",
"src/OT/Layout/GSUB/AlternateSet.hh",
"src/OT/Layout/GSUB/AlternateSubst.hh",
"src/OT/Layout/GSUB/AlternateSubstFormat1.hh",
"src/OT/Layout/GSUB/ChainContextSubst.hh",
"src/OT/Layout/GSUB/Common.hh",
"src/OT/Layout/GSUB/ContextSubst.hh",
"src/OT/Layout/GSUB/ExtensionSubst.hh",
"src/OT/Layout/GSUB/GSUB.hh",
"src/OT/Layout/GSUB/Ligature.hh",
"src/OT/Layout/GSUB/LigatureSet.hh",
"src/OT/Layout/GSUB/LigatureSubst.hh",
"src/OT/Layout/GSUB/LigatureSubstFormat1.hh",
"src/OT/Layout/GSUB/MultipleSubst.hh",
"src/OT/Layout/GSUB/MultipleSubstFormat1.hh",
"src/OT/Layout/GSUB/ReverseChainSingleSubst.hh",
"src/OT/Layout/GSUB/ReverseChainSingleSubstFormat1.hh",
"src/OT/Layout/GSUB/Sequence.hh",
"src/OT/Layout/GSUB/SingleSubst.hh",
"src/OT/Layout/GSUB/SingleSubstFormat1.hh",
"src/OT/Layout/GSUB/SingleSubstFormat2.hh",
"src/OT/Layout/GSUB/SubstLookup.hh",
"src/OT/Layout/GSUB/SubstLookupSubTable.hh",
"src/OT/Layout/types.hh",
"src/OT/glyf/CompositeGlyph.hh",
"src/OT/glyf/Glyph.hh",
"src/OT/glyf/GlyphHeader.hh",
"src/OT/glyf/SimpleGlyph.hh",
"src/OT/glyf/SubsetGlyph.hh",
"src/OT/glyf/VarCompositeGlyph.hh",
"src/OT/glyf/composite-iter.hh",
"src/OT/glyf/coord-setter.hh",
"src/OT/glyf/glyf-helpers.hh",
"src/OT/glyf/glyf.hh",
"src/OT/glyf/loca.hh",
"src/OT/glyf/path-builder.hh",
"src/OT/name/name.hh",
"src/graph/classdef-graph.hh",
"src/graph/coverage-graph.hh",
"src/graph/graph.hh",
"src/graph/gsubgpos-context.cc",
"src/graph/gsubgpos-context.hh",
"src/graph/gsubgpos-graph.hh",
"src/graph/markbasepos-graph.hh",
"src/graph/pairpos-graph.hh",
"src/graph/serialize.hh",
"src/graph/split-helpers.hh",
"src/hb-aat-layout-ankr-table.hh",
"src/hb-aat-layout-bsln-table.hh",
"src/hb-aat-layout-common.hh",
"src/hb-aat-layout-feat-table.hh",
"src/hb-aat-layout-just-table.hh",
"src/hb-aat-layout-kerx-table.hh",
"src/hb-aat-layout-morx-table.hh",
"src/hb-aat-layout-opbd-table.hh",
"src/hb-aat-layout-trak-table.hh",
"src/hb-aat-layout.cc",
"src/hb-aat-layout.hh",
"src/hb-aat-ltag-table.hh",
"src/hb-aat-map.cc",
"src/hb-aat-map.hh",
"src/hb-aat.h",
"src/hb-algs.hh",
"src/hb-array.hh",
"src/hb-atomic.hh",
"src/hb-bimap.hh",
"src/hb-bit-page.hh",
"src/hb-bit-set-invertible.hh",
"src/hb-bit-set.hh",
"src/hb-blob.cc",
"src/hb-blob.hh",
"src/hb-buffer-deserialize-json.hh",
"src/hb-buffer-deserialize-text-glyphs.hh",
"src/hb-buffer-deserialize-text-unicode.hh",
"src/hb-buffer-serialize.cc",
"src/hb-buffer-verify.cc",
"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",
"src/hb-common.cc",
"src/hb-config.hh",
"src/hb-cplusplus.hh",
"src/hb-debug.hh",
"src/hb-dispatch.hh",
"src/hb-draw.cc",
"src/hb-draw.h",
"src/hb-draw.hh",
"src/hb-face-builder.cc",
"src/hb-face.cc",
"src/hb-face.hh",
"src/hb-font.cc",
"src/hb-font.hh",
"src/hb-iter.hh",
"src/hb-kern.hh",
"src/hb-limits.hh",
"src/hb-machinery.hh",
"src/hb-map.cc",
"src/hb-map.hh",
"src/hb-meta.hh",
"src/hb-ms-feature-ranges.hh",
"src/hb-multimap.hh",
"src/hb-mutex.hh",
"src/hb-null.hh",
"src/hb-number-parser.hh",
"src/hb-number.cc",
"src/hb-number.hh",
"src/hb-object.hh",
"src/hb-open-file.hh",
"src/hb-open-type.hh",
"src/hb-ot-cff-common.hh",
"src/hb-ot-cff1-std-str.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",
"src/hb-ot-cmap-table.hh",
"src/hb-ot-color.cc",
"src/hb-ot-color.h",
"src/hb-ot-deprecated.h",
"src/hb-ot-face-table-list.hh",
"src/hb-ot-face.cc",
"src/hb-ot-face.hh",
"src/hb-ot-font.cc",
"src/hb-ot-gasp-table.hh",
"src/hb-ot-glyf-table.hh",
"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",
"src/hb-ot-layout-jstf-table.hh",
"src/hb-ot-layout.cc",
"src/hb-ot-layout.hh",
"src/hb-ot-map.cc",
"src/hb-ot-map.hh",
"src/hb-ot-math-table.hh",
"src/hb-ot-math.cc",
"src/hb-ot-maxp-table.hh",
"src/hb-ot-meta-table.hh",
"src/hb-ot-meta.cc",
"src/hb-ot-meta.h",
"src/hb-ot-metrics.cc",
"src/hb-ot-metrics.hh",
"src/hb-ot-name-language-static.hh",
"src/hb-ot-name-language.hh",
"src/hb-ot-name-table.hh",
"src/hb-ot-name.cc",
"src/hb-ot-name.h",
"src/hb-ot-os2-table.hh",
"src/hb-ot-os2-unicode-ranges.hh",
"src/hb-ot-post-macroman.hh",
"src/hb-ot-post-table-v2subset.hh",
"src/hb-ot-post-table.hh",
"src/hb-ot-shape-fallback.cc",
"src/hb-ot-shape-fallback.hh",
"src/hb-ot-shape-normalize.cc",
"src/hb-ot-shape-normalize.hh",
"src/hb-ot-shape.cc",
"src/hb-ot-shape.hh",
"src/hb-ot-shaper-arabic-fallback.hh",
"src/hb-ot-shaper-arabic-joining-list.hh",
"src/hb-ot-shaper-arabic-pua.hh",
"src/hb-ot-shaper-arabic-table.hh",
"src/hb-ot-shaper-arabic.cc",
"src/hb-ot-shaper-arabic.hh",
"src/hb-ot-shaper-default.cc",
"src/hb-ot-shaper-hangul.cc",
"src/hb-ot-shaper-hebrew.cc",
"src/hb-ot-shaper-indic-machine.hh",
"src/hb-ot-shaper-indic-table.cc",
"src/hb-ot-shaper-indic.cc",
"src/hb-ot-shaper-indic.hh",
"src/hb-ot-shaper-khmer-machine.hh",
"src/hb-ot-shaper-khmer.cc",
"src/hb-ot-shaper-myanmar-machine.hh",
"src/hb-ot-shaper-myanmar.cc",
"src/hb-ot-shaper-syllabic.cc",
"src/hb-ot-shaper-syllabic.hh",
"src/hb-ot-shaper-thai.cc",
"src/hb-ot-shaper-use-machine.hh",
"src/hb-ot-shaper-use-table.hh",
"src/hb-ot-shaper-use.cc",
"src/hb-ot-shaper-vowel-constraints.cc",
"src/hb-ot-shaper-vowel-constraints.hh",
"src/hb-ot-shaper.hh",
"src/hb-ot-stat-table.hh",
"src/hb-ot-tag-table.hh",
"src/hb-ot-tag.cc",
"src/hb-ot-var-avar-table.hh",
"src/hb-ot-var-common.hh",
"src/hb-ot-var-cvar-table.hh",
"src/hb-ot-var-fvar-table.hh",
"src/hb-ot-var-gvar-table.hh",
"src/hb-ot-var-hvar-table.hh",
"src/hb-ot-var-mvar-table.hh",
"src/hb-ot-var.cc",
"src/hb-ot-vorg-table.hh",
"src/hb-outline.cc",
"src/hb-outline.hh",
"src/hb-paint-extents.cc",
"src/hb-paint-extents.hh",
"src/hb-paint.cc",
"src/hb-paint.h",
"src/hb-paint.hh",
"src/hb-pool.hh",
"src/hb-priority-queue.hh",
"src/hb-repacker.hh",
"src/hb-sanitize.hh",
"src/hb-serialize.hh",
"src/hb-set-digest.hh",
"src/hb-set.cc",
"src/hb-set.hh",
"src/hb-shape-plan.cc",
"src/hb-shape-plan.hh",
"src/hb-shape.cc",
"src/hb-shaper-impl.hh",
"src/hb-shaper-list.hh",
"src/hb-shaper.cc",
"src/hb-shaper.hh",
"src/hb-static.cc",
"src/hb-string-array.hh",
"src/hb-subset-accelerator.hh",
"src/hb-subset-cff-common.cc",
"src/hb-subset-cff-common.hh",
"src/hb-subset-cff1.cc",
"src/hb-subset-cff2.cc",
"src/hb-subset-input.cc",
"src/hb-subset-input.hh",
"src/hb-subset-instancer-iup.cc",
"src/hb-subset-instancer-iup.hh",
"src/hb-subset-instancer-solver.cc",
"src/hb-subset-instancer-solver.hh",
"src/hb-subset-plan-member-list.hh",
"src/hb-subset-plan.cc",
"src/hb-subset-plan.hh",
"src/hb-subset-repacker.cc",
"src/hb-subset-repacker.h",
"src/hb-subset.cc",
"src/hb-subset.hh",
"src/hb-ucd-table.hh",
"src/hb-ucd.cc",
"src/hb-unicode-emoji-table.hh",
"src/hb-unicode.cc",
"src/hb-unicode.hh",
"src/hb-utf.hh",
"src/hb-vector.hh",
"src/hb.hh",
]
cc_library(
name = "harfbuzz",
srcs = HARFBUZZ_SRCS,
hdrs = HARFBUZZ_HDRS,
defines = [
"HAVE_OT",
"HAVE_CONFIG_OVERRIDE_H",
"HB_NO_FALLBACK_SHAPE",
"HB_NO_WIN1256",
],
includes = [
"src",
],
visibility = ["//visibility:public"],
)