| 1 |
# This file will be copied into //third_party/externals/harfbuzz via the new_local_repository |
| 2 |
# rule in WORKSPACE.bazel, so all files should be relative to that path. |
| 3 |
|
| 4 |
load("@rules_cc//cc:cc_library.bzl", "cc_library") |
| 5 |
|
| 6 |
HARFBUZZ_HDRS = [ |
| 7 |
"src/hb-aat-layout.h", |
| 8 |
"src/hb-blob.h", |
| 9 |
"src/hb-buffer.h", |
| 10 |
"src/hb-common.h", |
| 11 |
"src/hb-deprecated.h", |
| 12 |
"src/hb-face.h", |
| 13 |
"src/hb-font.h", |
| 14 |
"src/hb-map.h", |
| 15 |
"src/hb-ot-font.h", |
| 16 |
"src/hb-ot-layout.h", |
| 17 |
"src/hb-ot-math.h", |
| 18 |
"src/hb-ot-metrics.h", |
| 19 |
"src/hb-ot-shape.h", |
| 20 |
"src/hb-ot-var.h", |
| 21 |
"src/hb-ot.h", |
| 22 |
"src/hb-script-list.h", |
| 23 |
"src/hb-set.h", |
| 24 |
"src/hb-shape-plan.h", |
| 25 |
"src/hb-shape.h", |
| 26 |
"src/hb-style.h", |
| 27 |
"src/hb-subset.h", |
| 28 |
"src/hb-subset-serialize.h", |
| 29 |
"src/hb-unicode.h", |
| 30 |
"src/hb-version.h", |
| 31 |
"src/hb.h", |
| 32 |
] |
| 33 |
|
| 34 |
HARFBUZZ_SRCS = [ |
| 35 |
"src/OT/Color/CBDT/CBDT.hh", |
| 36 |
"src/OT/Color/COLR/COLR.hh", |
| 37 |
"src/OT/Color/COLR/colrv1-closure.hh", |
| 38 |
"src/OT/Color/CPAL/CPAL.hh", |
| 39 |
"src/OT/Color/sbix/sbix.hh", |
| 40 |
"src/OT/Color/svg/svg.hh", |
| 41 |
"src/OT/Layout/Common/Coverage.hh", |
| 42 |
"src/OT/Layout/Common/CoverageFormat1.hh", |
| 43 |
"src/OT/Layout/Common/CoverageFormat2.hh", |
| 44 |
"src/OT/Layout/Common/RangeRecord.hh", |
| 45 |
"src/OT/Layout/GDEF/GDEF.hh", |
| 46 |
"src/OT/Layout/GPOS/Anchor.hh", |
| 47 |
"src/OT/Layout/GPOS/AnchorFormat1.hh", |
| 48 |
"src/OT/Layout/GPOS/AnchorFormat2.hh", |
| 49 |
"src/OT/Layout/GPOS/AnchorFormat3.hh", |
| 50 |
"src/OT/Layout/GPOS/AnchorMatrix.hh", |
| 51 |
"src/OT/Layout/GPOS/ChainContextPos.hh", |
| 52 |
"src/OT/Layout/GPOS/Common.hh", |
| 53 |
"src/OT/Layout/GPOS/ContextPos.hh", |
| 54 |
"src/OT/Layout/GPOS/CursivePos.hh", |
| 55 |
"src/OT/Layout/GPOS/CursivePosFormat1.hh", |
| 56 |
"src/OT/Layout/GPOS/ExtensionPos.hh", |
| 57 |
"src/OT/Layout/GPOS/GPOS.hh", |
| 58 |
"src/OT/Layout/GPOS/LigatureArray.hh", |
| 59 |
"src/OT/Layout/GPOS/MarkArray.hh", |
| 60 |
"src/OT/Layout/GPOS/MarkBasePos.hh", |
| 61 |
"src/OT/Layout/GPOS/MarkBasePosFormat1.hh", |
| 62 |
"src/OT/Layout/GPOS/MarkLigPos.hh", |
| 63 |
"src/OT/Layout/GPOS/MarkLigPosFormat1.hh", |
| 64 |
"src/OT/Layout/GPOS/MarkMarkPos.hh", |
| 65 |
"src/OT/Layout/GPOS/MarkMarkPosFormat1.hh", |
| 66 |
"src/OT/Layout/GPOS/MarkRecord.hh", |
| 67 |
"src/OT/Layout/GPOS/PairPos.hh", |
| 68 |
"src/OT/Layout/GPOS/PairPosFormat1.hh", |
| 69 |
"src/OT/Layout/GPOS/PairPosFormat2.hh", |
| 70 |
"src/OT/Layout/GPOS/PairSet.hh", |
| 71 |
"src/OT/Layout/GPOS/PairValueRecord.hh", |
| 72 |
"src/OT/Layout/GPOS/PosLookup.hh", |
| 73 |
"src/OT/Layout/GPOS/PosLookupSubTable.hh", |
| 74 |
"src/OT/Layout/GPOS/SinglePos.hh", |
| 75 |
"src/OT/Layout/GPOS/SinglePosFormat1.hh", |
| 76 |
"src/OT/Layout/GPOS/SinglePosFormat2.hh", |
| 77 |
"src/OT/Layout/GPOS/ValueFormat.hh", |
| 78 |
"src/OT/Layout/GSUB/AlternateSet.hh", |
| 79 |
"src/OT/Layout/GSUB/AlternateSubst.hh", |
| 80 |
"src/OT/Layout/GSUB/AlternateSubstFormat1.hh", |
| 81 |
"src/OT/Layout/GSUB/ChainContextSubst.hh", |
| 82 |
"src/OT/Layout/GSUB/Common.hh", |
| 83 |
"src/OT/Layout/GSUB/ContextSubst.hh", |
| 84 |
"src/OT/Layout/GSUB/ExtensionSubst.hh", |
| 85 |
"src/OT/Layout/GSUB/GSUB.hh", |
| 86 |
"src/OT/Layout/GSUB/Ligature.hh", |
| 87 |
"src/OT/Layout/GSUB/LigatureSet.hh", |
| 88 |
"src/OT/Layout/GSUB/LigatureSubst.hh", |
| 89 |
"src/OT/Layout/GSUB/LigatureSubstFormat1.hh", |
| 90 |
"src/OT/Layout/GSUB/MultipleSubst.hh", |
| 91 |
"src/OT/Layout/GSUB/MultipleSubstFormat1.hh", |
| 92 |
"src/OT/Layout/GSUB/ReverseChainSingleSubst.hh", |
| 93 |
"src/OT/Layout/GSUB/ReverseChainSingleSubstFormat1.hh", |
| 94 |
"src/OT/Layout/GSUB/Sequence.hh", |
| 95 |
"src/OT/Layout/GSUB/SingleSubst.hh", |
| 96 |
"src/OT/Layout/GSUB/SingleSubstFormat1.hh", |
| 97 |
"src/OT/Layout/GSUB/SingleSubstFormat2.hh", |
| 98 |
"src/OT/Layout/GSUB/SubstLookup.hh", |
| 99 |
"src/OT/Layout/GSUB/SubstLookupSubTable.hh", |
| 100 |
"src/OT/Layout/types.hh", |
| 101 |
"src/OT/Var/VARC/VARC.cc", |
| 102 |
"src/OT/Var/VARC/VARC.hh", |
| 103 |
"src/OT/Var/VARC/coord-setter.hh", |
| 104 |
"src/OT/glyf/CompositeGlyph.hh", |
| 105 |
"src/OT/glyf/Glyph.hh", |
| 106 |
"src/OT/glyf/GlyphHeader.hh", |
| 107 |
"src/OT/glyf/SimpleGlyph.hh", |
| 108 |
"src/OT/glyf/SubsetGlyph.hh", |
| 109 |
"src/OT/glyf/composite-iter.hh", |
| 110 |
"src/OT/glyf/glyf-helpers.hh", |
| 111 |
"src/OT/glyf/glyf.hh", |
| 112 |
"src/OT/glyf/loca.hh", |
| 113 |
"src/OT/glyf/path-builder.hh", |
| 114 |
"src/OT/name/name.hh", |
| 115 |
"src/graph/classdef-graph.hh", |
| 116 |
"src/graph/coverage-graph.hh", |
| 117 |
"src/graph/graph.hh", |
| 118 |
"src/graph/gsubgpos-context.cc", |
| 119 |
"src/graph/gsubgpos-context.hh", |
| 120 |
"src/graph/gsubgpos-graph.hh", |
| 121 |
"src/graph/ligature-graph.hh", |
| 122 |
"src/graph/markbasepos-graph.hh", |
| 123 |
"src/graph/pairpos-graph.hh", |
| 124 |
"src/graph/serialize.hh", |
| 125 |
"src/graph/split-helpers.hh", |
| 126 |
"src/hb-aat-layout-ankr-table.hh", |
| 127 |
"src/hb-aat-layout-bsln-table.hh", |
| 128 |
"src/hb-aat-layout-common.hh", |
| 129 |
"src/hb-aat-layout-feat-table.hh", |
| 130 |
"src/hb-aat-layout-just-table.hh", |
| 131 |
"src/hb-aat-layout-kerx-table.hh", |
| 132 |
"src/hb-aat-layout-morx-table.hh", |
| 133 |
"src/hb-aat-layout-opbd-table.hh", |
| 134 |
"src/hb-aat-layout-trak-table.hh", |
| 135 |
"src/hb-aat-layout.cc", |
| 136 |
"src/hb-aat-layout.hh", |
| 137 |
"src/hb-aat-ltag-table.hh", |
| 138 |
"src/hb-aat-map.cc", |
| 139 |
"src/hb-aat-map.hh", |
| 140 |
"src/hb-aat.h", |
| 141 |
"src/hb-algs.hh", |
| 142 |
"src/hb-alloc-pool.hh", |
| 143 |
"src/hb-array.hh", |
| 144 |
"src/hb-atomic.hh", |
| 145 |
"src/hb-bimap.hh", |
| 146 |
"src/hb-bit-page.hh", |
| 147 |
"src/hb-bit-set-invertible.hh", |
| 148 |
"src/hb-bit-set.hh", |
| 149 |
"src/hb-bit-vector.hh", |
| 150 |
"src/hb-blob.cc", |
| 151 |
"src/hb-blob.hh", |
| 152 |
"src/hb-buffer-deserialize-json.hh", |
| 153 |
"src/hb-buffer-deserialize-text-glyphs.hh", |
| 154 |
"src/hb-buffer-deserialize-text-unicode.hh", |
| 155 |
"src/hb-buffer-serialize.cc", |
| 156 |
"src/hb-buffer-verify.cc", |
| 157 |
"src/hb-buffer.cc", |
| 158 |
"src/hb-buffer.hh", |
| 159 |
"src/hb-cache.hh", |
| 160 |
"src/hb-cff-interp-common.hh", |
| 161 |
"src/hb-cff-interp-cs-common.hh", |
| 162 |
"src/hb-cff-interp-dict-common.hh", |
| 163 |
"src/hb-cff1-interp-cs.hh", |
| 164 |
"src/hb-cff2-interp-cs.hh", |
| 165 |
"src/hb-common.cc", |
| 166 |
"src/hb-config.hh", |
| 167 |
"src/hb-cplusplus.hh", |
| 168 |
"src/hb-debug.hh", |
| 169 |
"src/hb-decycler.hh", |
| 170 |
"src/hb-dispatch.hh", |
| 171 |
"src/hb-draw.cc", |
| 172 |
"src/hb-draw.h", |
| 173 |
"src/hb-draw.hh", |
| 174 |
"src/hb-face-builder.cc", |
| 175 |
"src/hb-face.cc", |
| 176 |
"src/hb-face.hh", |
| 177 |
"src/hb-font.cc", |
| 178 |
"src/hb-font.hh", |
| 179 |
"src/hb-free-pool.hh", |
| 180 |
"src/hb-geometry.hh", |
| 181 |
"src/hb-iter.hh", |
| 182 |
"src/hb-kern.hh", |
| 183 |
"src/hb-limits.hh", |
| 184 |
"src/hb-machinery.hh", |
| 185 |
"src/hb-map.cc", |
| 186 |
"src/hb-map.hh", |
| 187 |
"src/hb-meta.hh", |
| 188 |
"src/hb-ms-feature-ranges.hh", |
| 189 |
"src/hb-multimap.hh", |
| 190 |
"src/hb-mutex.hh", |
| 191 |
"src/hb-null.hh", |
| 192 |
"src/hb-number-parser.hh", |
| 193 |
"src/hb-number.cc", |
| 194 |
"src/hb-number.hh", |
| 195 |
"src/hb-object.hh", |
| 196 |
"src/hb-open-file.hh", |
| 197 |
"src/hb-open-type.hh", |
| 198 |
"src/hb-ot-cff-common.hh", |
| 199 |
"src/hb-ot-cff1-std-str.hh", |
| 200 |
"src/hb-ot-cff1-table.cc", |
| 201 |
"src/hb-ot-cff1-table.hh", |
| 202 |
"src/hb-ot-cff2-table.cc", |
| 203 |
"src/hb-ot-cff2-table.hh", |
| 204 |
"src/hb-ot-cmap-table.hh", |
| 205 |
"src/hb-ot-color.cc", |
| 206 |
"src/hb-ot-color.h", |
| 207 |
"src/hb-ot-deprecated.h", |
| 208 |
"src/hb-ot-face-table-list.hh", |
| 209 |
"src/hb-ot-face.cc", |
| 210 |
"src/hb-ot-face.hh", |
| 211 |
"src/hb-ot-font.cc", |
| 212 |
"src/hb-ot-gasp-table.hh", |
| 213 |
"src/hb-ot-glyf-table.hh", |
| 214 |
"src/hb-ot-hdmx-table.hh", |
| 215 |
"src/hb-ot-head-table.hh", |
| 216 |
"src/hb-ot-hhea-table.hh", |
| 217 |
"src/hb-ot-hmtx-table.hh", |
| 218 |
"src/hb-ot-kern-table.hh", |
| 219 |
"src/hb-ot-layout-base-table.hh", |
| 220 |
"src/hb-ot-layout-common.hh", |
| 221 |
"src/hb-ot-layout-gdef-table.hh", |
| 222 |
"src/hb-ot-layout-gpos-table.hh", |
| 223 |
"src/hb-ot-layout-gsub-table.hh", |
| 224 |
"src/hb-ot-layout-gsubgpos.hh", |
| 225 |
"src/hb-ot-layout-jstf-table.hh", |
| 226 |
"src/hb-ot-layout.cc", |
| 227 |
"src/hb-ot-layout.hh", |
| 228 |
"src/hb-ot-map.cc", |
| 229 |
"src/hb-ot-map.hh", |
| 230 |
"src/hb-ot-math-table.hh", |
| 231 |
"src/hb-ot-math.cc", |
| 232 |
"src/hb-ot-maxp-table.hh", |
| 233 |
"src/hb-ot-meta-table.hh", |
| 234 |
"src/hb-ot-meta.cc", |
| 235 |
"src/hb-ot-meta.h", |
| 236 |
"src/hb-ot-metrics.cc", |
| 237 |
"src/hb-ot-metrics.hh", |
| 238 |
"src/hb-ot-name-language-static.hh", |
| 239 |
"src/hb-ot-name-language.hh", |
| 240 |
"src/hb-ot-name-table.hh", |
| 241 |
"src/hb-ot-name.cc", |
| 242 |
"src/hb-ot-name.h", |
| 243 |
"src/hb-ot-os2-table.hh", |
| 244 |
"src/hb-ot-os2-unicode-ranges.hh", |
| 245 |
"src/hb-ot-post-macroman.hh", |
| 246 |
"src/hb-ot-post-table-v2subset.hh", |
| 247 |
"src/hb-ot-post-table.hh", |
| 248 |
"src/hb-ot-shape-fallback.cc", |
| 249 |
"src/hb-ot-shape-fallback.hh", |
| 250 |
"src/hb-ot-shape-normalize.cc", |
| 251 |
"src/hb-ot-shape-normalize.hh", |
| 252 |
"src/hb-ot-shape.cc", |
| 253 |
"src/hb-ot-shape.hh", |
| 254 |
"src/hb-ot-shaper-arabic-fallback.hh", |
| 255 |
"src/hb-ot-shaper-arabic-joining-list.hh", |
| 256 |
"src/hb-ot-shaper-arabic-pua.hh", |
| 257 |
"src/hb-ot-shaper-arabic-table.hh", |
| 258 |
"src/hb-ot-shaper-arabic.cc", |
| 259 |
"src/hb-ot-shaper-arabic.hh", |
| 260 |
"src/hb-ot-shaper-default.cc", |
| 261 |
"src/hb-ot-shaper-hangul.cc", |
| 262 |
"src/hb-ot-shaper-hebrew.cc", |
| 263 |
"src/hb-ot-shaper-indic-machine.hh", |
| 264 |
"src/hb-ot-shaper-indic-table.cc", |
| 265 |
"src/hb-ot-shaper-indic.cc", |
| 266 |
"src/hb-ot-shaper-indic.hh", |
| 267 |
"src/hb-ot-shaper-khmer-machine.hh", |
| 268 |
"src/hb-ot-shaper-khmer.cc", |
| 269 |
"src/hb-ot-shaper-myanmar-machine.hh", |
| 270 |
"src/hb-ot-shaper-myanmar.cc", |
| 271 |
"src/hb-ot-shaper-syllabic.cc", |
| 272 |
"src/hb-ot-shaper-syllabic.hh", |
| 273 |
"src/hb-ot-shaper-thai.cc", |
| 274 |
"src/hb-ot-shaper-use-machine.hh", |
| 275 |
"src/hb-ot-shaper-use-table.hh", |
| 276 |
"src/hb-ot-shaper-use.cc", |
| 277 |
"src/hb-ot-shaper-vowel-constraints.cc", |
| 278 |
"src/hb-ot-shaper-vowel-constraints.hh", |
| 279 |
"src/hb-ot-shaper.hh", |
| 280 |
"src/hb-ot-stat-table.hh", |
| 281 |
"src/hb-ot-tag-table.hh", |
| 282 |
"src/hb-ot-tag.cc", |
| 283 |
"src/hb-ot-var-avar-table.hh", |
| 284 |
"src/hb-ot-var-common.hh", |
| 285 |
"src/hb-ot-var-cvar-table.hh", |
| 286 |
"src/hb-ot-var-fvar-table.hh", |
| 287 |
"src/hb-ot-var-gvar-table.hh", |
| 288 |
"src/hb-ot-var-hvar-table.hh", |
| 289 |
"src/hb-ot-var-mvar-table.hh", |
| 290 |
"src/hb-ot-var-varc-table.hh", |
| 291 |
"src/hb-ot-var.cc", |
| 292 |
"src/hb-ot-vorg-table.hh", |
| 293 |
"src/hb-outline.cc", |
| 294 |
"src/hb-outline.hh", |
| 295 |
"src/hb-paint-extents.cc", |
| 296 |
"src/hb-paint-extents.hh", |
| 297 |
"src/hb-paint.cc", |
| 298 |
"src/hb-paint.h", |
| 299 |
"src/hb-paint.hh", |
| 300 |
"src/hb-paint-bounded.hh", |
| 301 |
"src/hb-paint-bounded.cc", |
| 302 |
"src/hb-priority-queue.hh", |
| 303 |
"src/hb-repacker.hh", |
| 304 |
"src/hb-sanitize.hh", |
| 305 |
"src/hb-serialize.hh", |
| 306 |
"src/hb-set-digest.hh", |
| 307 |
"src/hb-set.cc", |
| 308 |
"src/hb-set.hh", |
| 309 |
"src/hb-shape-plan.cc", |
| 310 |
"src/hb-shape-plan.hh", |
| 311 |
"src/hb-shape.cc", |
| 312 |
"src/hb-shaper-impl.hh", |
| 313 |
"src/hb-shaper-list.hh", |
| 314 |
"src/hb-shaper.cc", |
| 315 |
"src/hb-shaper.hh", |
| 316 |
"src/hb-static.cc", |
| 317 |
"src/hb-string-array.hh", |
| 318 |
"src/hb-subset-accelerator.hh", |
| 319 |
"src/hb-subset-cff-common.cc", |
| 320 |
"src/hb-subset-cff-common.hh", |
| 321 |
"src/hb-subset-cff1.cc", |
| 322 |
"src/hb-subset-cff2.cc", |
| 323 |
"src/hb-subset-input.cc", |
| 324 |
"src/hb-subset-input.hh", |
| 325 |
"src/hb-subset-instancer-iup.cc", |
| 326 |
"src/hb-subset-instancer-iup.hh", |
| 327 |
"src/hb-subset-instancer-solver.cc", |
| 328 |
"src/hb-subset-instancer-solver.hh", |
| 329 |
"src/hb-subset-plan-member-list.hh", |
| 330 |
"src/hb-subset-plan.cc", |
| 331 |
"src/hb-subset-plan.hh", |
| 332 |
"src/hb-subset-plan-layout.cc", |
| 333 |
"src/hb-subset-plan-var.cc", |
| 334 |
"src/hb-subset-serialize.cc", |
| 335 |
"src/hb-subset-table-cff.cc", |
| 336 |
"src/hb-subset-table-color.cc", |
| 337 |
"src/hb-subset-table-layout.cc", |
| 338 |
"src/hb-subset-table-other.cc", |
| 339 |
"src/hb-subset-table-var.cc", |
| 340 |
"src/hb-subset-table.hh", |
| 341 |
"src/hb-subset.cc", |
| 342 |
"src/hb-subset.hh", |
| 343 |
"src/hb-ucd-table.hh", |
| 344 |
"src/hb-ucd.cc", |
| 345 |
"src/hb-unicode-emoji-table.hh", |
| 346 |
"src/hb-unicode.cc", |
| 347 |
"src/hb-unicode.hh", |
| 348 |
"src/hb-utf.hh", |
| 349 |
"src/hb-vector.hh", |
| 350 |
"src/hb.hh", |
| 351 |
# We expect this to be copied in via the repository_rule that checks out harfbuzz |
| 352 |
"config-override.h", |
| 353 |
] |
| 354 |
|
| 355 |
cc_library( |
| 356 |
name = "harfbuzz", |
| 357 |
srcs = HARFBUZZ_SRCS, |
| 358 |
hdrs = HARFBUZZ_HDRS, |
| 359 |
defines = [ |
| 360 |
"HAVE_OT", |
| 361 |
"HAVE_CONFIG_OVERRIDE_H", |
| 362 |
"HB_NO_FALLBACK_SHAPE", |
| 363 |
"HB_NO_WIN1256", |
| 364 |
], |
| 365 |
includes = [ |
| 366 |
"src", |
| 367 |
], |
| 368 |
visibility = ["//visibility:public"], |
| 369 |
) |