2020-09-07 11:55:33 +02:00
|
|
|
hb_version_h = configure_file(
|
|
|
|
command: [find_program('gen-hb-version.py'), meson.project_version(), '@OUTPUT@', '@INPUT@'],
|
|
|
|
input: 'hb-version.h.in',
|
|
|
|
output: 'hb-version.h',
|
|
|
|
install: true,
|
2021-11-20 16:09:15 +01:00
|
|
|
install_dir: get_option('includedir') / meson.project_name())
|
2020-09-07 11:55:33 +02:00
|
|
|
|
2020-03-24 12:34:33 +01:00
|
|
|
# Base and default-included sources and headers
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_base_sources = files(
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-aat-layout-ankr-table.hh',
|
|
|
|
'hb-aat-layout-bsln-table.hh',
|
|
|
|
'hb-aat-layout-common.hh',
|
|
|
|
'hb-aat-layout-feat-table.hh',
|
|
|
|
'hb-aat-layout-just-table.hh',
|
|
|
|
'hb-aat-layout-kerx-table.hh',
|
|
|
|
'hb-aat-layout-morx-table.hh',
|
|
|
|
'hb-aat-layout-opbd-table.hh',
|
|
|
|
'hb-aat-layout-trak-table.hh',
|
|
|
|
'hb-aat-layout.cc',
|
|
|
|
'hb-aat-layout.hh',
|
|
|
|
'hb-aat-ltag-table.hh',
|
|
|
|
'hb-aat-map.cc',
|
|
|
|
'hb-aat-map.hh',
|
|
|
|
'hb-algs.hh',
|
|
|
|
'hb-array.hh',
|
|
|
|
'hb-atomic.hh',
|
2020-06-11 23:08:16 +02:00
|
|
|
'hb-bimap.hh',
|
2021-08-15 20:34:55 +02:00
|
|
|
'hb-bit-page.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-blob.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-blob.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-buffer-serialize.cc',
|
2022-01-28 21:45:25 +01:00
|
|
|
'hb-buffer-verify.cc',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-buffer.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-buffer.hh',
|
|
|
|
'hb-cache.hh',
|
|
|
|
'hb-cff-interp-common.hh',
|
|
|
|
'hb-cff-interp-cs-common.hh',
|
|
|
|
'hb-cff-interp-dict-common.hh',
|
|
|
|
'hb-cff1-interp-cs.hh',
|
|
|
|
'hb-cff2-interp-cs.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-common.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-config.hh',
|
|
|
|
'hb-debug.hh',
|
|
|
|
'hb-dispatch.hh',
|
|
|
|
'hb-draw.cc',
|
|
|
|
'hb-draw.hh',
|
2022-12-14 03:14:25 +01:00
|
|
|
'hb-paint.cc',
|
|
|
|
'hb-paint.hh',
|
2022-12-24 19:30:45 +01:00
|
|
|
'hb-paint-extents.cc',
|
2022-12-23 22:45:56 +01:00
|
|
|
'hb-paint-extents.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-face.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-face.hh',
|
2023-01-05 19:42:21 +01:00
|
|
|
'hb-face-builder.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-fallback-shape.cc',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-font.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-font.hh',
|
|
|
|
'hb-iter.hh',
|
|
|
|
'hb-kern.hh',
|
2022-12-26 20:30:39 +01:00
|
|
|
'hb-limits.hh',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-machinery.hh',
|
2018-11-14 23:25:41 +01:00
|
|
|
'hb-map.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-map.hh',
|
|
|
|
'hb-meta.hh',
|
2021-07-27 20:54:19 +02:00
|
|
|
'hb-ms-feature-ranges.hh',
|
2022-12-02 23:34:34 +01:00
|
|
|
'hb-multimap.hh',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-mutex.hh',
|
|
|
|
'hb-null.hh',
|
|
|
|
'hb-number.cc',
|
|
|
|
'hb-number.hh',
|
|
|
|
'hb-object.hh',
|
|
|
|
'hb-open-file.hh',
|
|
|
|
'hb-open-type.hh',
|
|
|
|
'hb-ot-cff-common.hh',
|
2020-06-11 23:08:16 +02:00
|
|
|
'hb-ot-cff1-std-str.hh',
|
2018-11-16 17:26:06 +01:00
|
|
|
'hb-ot-cff1-table.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-cff1-table.hh',
|
2018-11-16 17:26:06 +01:00
|
|
|
'hb-ot-cff2-table.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-cff2-table.hh',
|
|
|
|
'hb-ot-cmap-table.hh',
|
|
|
|
'hb-ot-color.cc',
|
2020-06-11 23:08:16 +02:00
|
|
|
'hb-ot-face-table-list.hh',
|
2018-11-14 23:25:41 +01:00
|
|
|
'hb-ot-face.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-face.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-ot-font.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-gasp-table.hh',
|
|
|
|
'hb-ot-glyf-table.hh',
|
|
|
|
'hb-ot-hdmx-table.hh',
|
|
|
|
'hb-ot-head-table.hh',
|
|
|
|
'hb-ot-hhea-table.hh',
|
|
|
|
'hb-ot-hmtx-table.hh',
|
|
|
|
'hb-ot-kern-table.hh',
|
|
|
|
'hb-ot-layout-base-table.hh',
|
|
|
|
'hb-ot-layout-common.hh',
|
|
|
|
'hb-ot-layout-gdef-table.hh',
|
|
|
|
'hb-ot-layout-gpos-table.hh',
|
|
|
|
'hb-ot-layout-gsub-table.hh',
|
2023-02-02 00:24:44 +01:00
|
|
|
'hb-outline.hh',
|
|
|
|
'hb-outline.cc',
|
2023-01-01 15:46:11 +01:00
|
|
|
'OT/Color/CBDT/CBDT.hh',
|
|
|
|
'OT/Color/COLR/COLR.hh',
|
|
|
|
'OT/Color/CPAL/CPAL.hh',
|
|
|
|
'OT/Color/sbix/sbix.hh',
|
|
|
|
'OT/Color/svg/svg.hh',
|
2022-06-25 22:38:43 +02:00
|
|
|
'OT/glyf/glyf.hh',
|
2022-06-26 02:19:09 +02:00
|
|
|
'OT/glyf/glyf-helpers.hh',
|
2022-06-25 22:41:51 +02:00
|
|
|
'OT/glyf/loca.hh',
|
2022-06-26 02:07:49 +02:00
|
|
|
'OT/glyf/path-builder.hh',
|
2022-06-26 00:38:50 +02:00
|
|
|
'OT/glyf/Glyph.hh',
|
2022-06-26 01:53:13 +02:00
|
|
|
'OT/glyf/GlyphHeader.hh',
|
2022-06-26 01:55:16 +02:00
|
|
|
'OT/glyf/SimpleGlyph.hh',
|
2022-06-26 02:03:15 +02:00
|
|
|
'OT/glyf/CompositeGlyph.hh',
|
2022-06-26 01:11:04 +02:00
|
|
|
'OT/glyf/SubsetGlyph.hh',
|
2022-07-14 01:03:54 +02:00
|
|
|
'OT/Layout/types.hh',
|
|
|
|
'OT/Layout/Common/Coverage.hh',
|
|
|
|
'OT/Layout/Common/CoverageFormat1.hh',
|
|
|
|
'OT/Layout/Common/CoverageFormat2.hh',
|
|
|
|
'OT/Layout/Common/RangeRecord.hh',
|
2023-01-28 06:10:47 +01:00
|
|
|
'OT/Layout/GDEF/GDEF.hh',
|
2022-06-29 01:55:32 +02:00
|
|
|
'OT/Layout/GPOS/AnchorFormat1.hh',
|
2022-07-07 22:07:45 +02:00
|
|
|
'OT/Layout/GPOS/AnchorFormat2.hh',
|
|
|
|
'OT/Layout/GPOS/AnchorFormat3.hh',
|
|
|
|
'OT/Layout/GPOS/Anchor.hh',
|
|
|
|
'OT/Layout/GPOS/AnchorMatrix.hh',
|
2022-06-29 01:55:32 +02:00
|
|
|
'OT/Layout/GPOS/ChainContextPos.hh',
|
|
|
|
'OT/Layout/GPOS/Common.hh',
|
2022-07-07 22:07:45 +02:00
|
|
|
'OT/Layout/GPOS/ContextPos.hh',
|
|
|
|
'OT/Layout/GPOS/CursivePosFormat1.hh',
|
|
|
|
'OT/Layout/GPOS/CursivePos.hh',
|
|
|
|
'OT/Layout/GPOS/ExtensionPos.hh',
|
|
|
|
'OT/Layout/GPOS/GPOS.hh',
|
2022-07-08 19:58:43 +02:00
|
|
|
'OT/Layout/GPOS/LigatureArray.hh',
|
2022-07-07 22:07:45 +02:00
|
|
|
'OT/Layout/GPOS/MarkArray.hh',
|
2022-06-29 01:55:32 +02:00
|
|
|
'OT/Layout/GPOS/MarkBasePosFormat1.hh',
|
|
|
|
'OT/Layout/GPOS/MarkBasePos.hh',
|
2022-07-07 22:07:45 +02:00
|
|
|
'OT/Layout/GPOS/MarkLigPosFormat1.hh',
|
|
|
|
'OT/Layout/GPOS/MarkLigPos.hh',
|
2022-06-29 01:55:32 +02:00
|
|
|
'OT/Layout/GPOS/MarkMarkPosFormat1.hh',
|
2022-07-07 22:07:45 +02:00
|
|
|
'OT/Layout/GPOS/MarkMarkPos.hh',
|
2022-06-29 01:55:32 +02:00
|
|
|
'OT/Layout/GPOS/MarkRecord.hh',
|
2022-07-07 22:07:45 +02:00
|
|
|
'OT/Layout/GPOS/PairPosFormat1.hh',
|
|
|
|
'OT/Layout/GPOS/PairPosFormat2.hh',
|
|
|
|
'OT/Layout/GPOS/PairPos.hh',
|
|
|
|
'OT/Layout/GPOS/PairSet.hh',
|
|
|
|
'OT/Layout/GPOS/PairValueRecord.hh',
|
|
|
|
'OT/Layout/GPOS/PosLookup.hh',
|
|
|
|
'OT/Layout/GPOS/PosLookupSubTable.hh',
|
2022-06-29 01:55:32 +02:00
|
|
|
'OT/Layout/GPOS/SinglePosFormat1.hh',
|
2022-07-07 22:07:45 +02:00
|
|
|
'OT/Layout/GPOS/SinglePosFormat2.hh',
|
|
|
|
'OT/Layout/GPOS/SinglePos.hh',
|
|
|
|
'OT/Layout/GPOS/ValueFormat.hh',
|
|
|
|
'OT/Layout/GSUB/AlternateSet.hh',
|
|
|
|
'OT/Layout/GSUB/AlternateSubstFormat1.hh',
|
|
|
|
'OT/Layout/GSUB/AlternateSubst.hh',
|
|
|
|
'OT/Layout/GSUB/ChainContextSubst.hh',
|
|
|
|
'OT/Layout/GSUB/Common.hh',
|
|
|
|
'OT/Layout/GSUB/ContextSubst.hh',
|
|
|
|
'OT/Layout/GSUB/ExtensionSubst.hh',
|
|
|
|
'OT/Layout/GSUB/GSUB.hh',
|
|
|
|
'OT/Layout/GSUB/Ligature.hh',
|
|
|
|
'OT/Layout/GSUB/LigatureSet.hh',
|
|
|
|
'OT/Layout/GSUB/LigatureSubstFormat1.hh',
|
|
|
|
'OT/Layout/GSUB/LigatureSubst.hh',
|
|
|
|
'OT/Layout/GSUB/MultipleSubstFormat1.hh',
|
|
|
|
'OT/Layout/GSUB/MultipleSubst.hh',
|
|
|
|
'OT/Layout/GSUB/ReverseChainSingleSubstFormat1.hh',
|
|
|
|
'OT/Layout/GSUB/ReverseChainSingleSubst.hh',
|
|
|
|
'OT/Layout/GSUB/Sequence.hh',
|
|
|
|
'OT/Layout/GSUB/SingleSubstFormat1.hh',
|
|
|
|
'OT/Layout/GSUB/SingleSubstFormat2.hh',
|
|
|
|
'OT/Layout/GSUB/SingleSubst.hh',
|
|
|
|
'OT/Layout/GSUB/SubstLookup.hh',
|
|
|
|
'OT/Layout/GSUB/SubstLookupSubTable.hh',
|
2023-01-28 05:54:34 +01:00
|
|
|
'OT/name/name.hh',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-layout-gsubgpos.hh',
|
|
|
|
'hb-ot-layout-jstf-table.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-ot-layout.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-layout.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-ot-map.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-map.hh',
|
|
|
|
'hb-ot-math-table.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-ot-math.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-maxp-table.hh',
|
|
|
|
'hb-ot-meta-table.hh',
|
|
|
|
'hb-ot-meta.cc',
|
|
|
|
'hb-ot-metrics.cc',
|
|
|
|
'hb-ot-metrics.hh',
|
|
|
|
'hb-ot-name-language-static.hh',
|
|
|
|
'hb-ot-name-language.hh',
|
|
|
|
'hb-ot-name-table.hh',
|
|
|
|
'hb-ot-name.cc',
|
|
|
|
'hb-ot-os2-table.hh',
|
|
|
|
'hb-ot-os2-unicode-ranges.hh',
|
|
|
|
'hb-ot-post-macroman.hh',
|
|
|
|
'hb-ot-post-table.hh',
|
2022-06-03 10:56:41 +02:00
|
|
|
'hb-ot-shaper-arabic-fallback.hh',
|
|
|
|
'hb-ot-shaper-arabic-joining-list.hh',
|
2022-06-16 19:04:13 +02:00
|
|
|
'hb-ot-shaper-arabic-pua.hh',
|
2022-06-03 10:56:41 +02:00
|
|
|
'hb-ot-shaper-arabic-table.hh',
|
|
|
|
'hb-ot-shaper-arabic-win1256.hh',
|
|
|
|
'hb-ot-shaper-arabic.cc',
|
|
|
|
'hb-ot-shaper-arabic.hh',
|
|
|
|
'hb-ot-shaper-default.cc',
|
|
|
|
'hb-ot-shaper-hangul.cc',
|
|
|
|
'hb-ot-shaper-hebrew.cc',
|
|
|
|
'hb-ot-shaper-indic-table.cc',
|
|
|
|
'hb-ot-shaper-indic.cc',
|
|
|
|
'hb-ot-shaper-indic.hh',
|
|
|
|
'hb-ot-shaper-khmer.cc',
|
|
|
|
'hb-ot-shaper-myanmar.cc',
|
|
|
|
'hb-ot-shaper-syllabic.cc',
|
|
|
|
'hb-ot-shaper-syllabic.hh',
|
|
|
|
'hb-ot-shaper-thai.cc',
|
|
|
|
'hb-ot-shaper-use-table.hh',
|
|
|
|
'hb-ot-shaper-use.cc',
|
|
|
|
'hb-ot-shaper-vowel-constraints.cc',
|
|
|
|
'hb-ot-shaper-vowel-constraints.hh',
|
|
|
|
'hb-ot-shaper.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-ot-shape-fallback.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-shape-fallback.hh',
|
|
|
|
'hb-ot-shape-normalize.cc',
|
|
|
|
'hb-ot-shape-normalize.hh',
|
|
|
|
'hb-ot-shape.cc',
|
|
|
|
'hb-ot-shape.hh',
|
|
|
|
'hb-ot-stat-table.hh',
|
|
|
|
'hb-ot-tag-table.hh',
|
|
|
|
'hb-ot-tag.cc',
|
|
|
|
'hb-ot-var-avar-table.hh',
|
2021-10-14 22:39:45 +02:00
|
|
|
'hb-ot-var-common.hh',
|
2023-02-10 18:49:09 +01:00
|
|
|
'hb-ot-var-cvar-table.hh',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-var-fvar-table.hh',
|
|
|
|
'hb-ot-var-gvar-table.hh',
|
|
|
|
'hb-ot-var-hvar-table.hh',
|
|
|
|
'hb-ot-var-mvar-table.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-ot-var.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-vorg-table.hh',
|
|
|
|
'hb-pool.hh',
|
|
|
|
'hb-sanitize.hh',
|
|
|
|
'hb-serialize.hh',
|
|
|
|
'hb-set-digest.hh',
|
|
|
|
'hb-set.cc',
|
|
|
|
'hb-set.hh',
|
|
|
|
'hb-shape-plan.cc',
|
|
|
|
'hb-shape-plan.hh',
|
|
|
|
'hb-shape.cc',
|
|
|
|
'hb-shaper-impl.hh',
|
|
|
|
'hb-shaper-list.hh',
|
|
|
|
'hb-shaper.cc',
|
|
|
|
'hb-shaper.hh',
|
|
|
|
'hb-static.cc',
|
|
|
|
'hb-string-array.hh',
|
2020-04-21 14:03:50 +02:00
|
|
|
'hb-style.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ucd-table.hh',
|
|
|
|
'hb-ucd.cc',
|
|
|
|
'hb-unicode-emoji-table.hh',
|
|
|
|
'hb-unicode.cc',
|
|
|
|
'hb-unicode.hh',
|
|
|
|
'hb-utf.hh',
|
|
|
|
'hb-vector.hh',
|
2023-02-22 20:19:06 +01:00
|
|
|
'hb-wasm-shape.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb.hh',
|
2020-07-03 23:38:30 +02:00
|
|
|
)
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_base_ragel_generated_sources = files(
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-buffer-deserialize-json.hh',
|
2023-01-24 04:49:19 +01:00
|
|
|
'hb-buffer-deserialize-text-glyphs.hh',
|
2023-01-24 05:06:27 +01:00
|
|
|
'hb-buffer-deserialize-text-unicode.hh',
|
2020-03-24 15:45:09 +01:00
|
|
|
'hb-number-parser.hh',
|
2022-06-03 10:56:41 +02:00
|
|
|
'hb-ot-shaper-indic-machine.hh',
|
|
|
|
'hb-ot-shaper-khmer-machine.hh',
|
|
|
|
'hb-ot-shaper-myanmar-machine.hh',
|
|
|
|
'hb-ot-shaper-use-machine.hh',
|
2020-07-03 23:38:30 +02:00
|
|
|
)
|
2020-03-24 12:34:33 +01:00
|
|
|
hb_base_ragel_sources = [
|
|
|
|
'hb-buffer-deserialize-json.rl',
|
2023-01-24 04:49:19 +01:00
|
|
|
'hb-buffer-deserialize-text-glyphs.rl',
|
2023-01-24 05:06:27 +01:00
|
|
|
'hb-buffer-deserialize-text-unicode.rl',
|
2020-03-24 15:45:09 +01:00
|
|
|
'hb-number-parser.rl',
|
2022-06-03 10:56:41 +02:00
|
|
|
'hb-ot-shaper-indic-machine.rl',
|
|
|
|
'hb-ot-shaper-khmer-machine.rl',
|
|
|
|
'hb-ot-shaper-myanmar-machine.rl',
|
|
|
|
'hb-ot-shaper-use-machine.rl',
|
2020-03-24 12:34:33 +01:00
|
|
|
]
|
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_base_headers = files(
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-aat-layout.h',
|
|
|
|
'hb-aat.h',
|
|
|
|
'hb-blob.h',
|
|
|
|
'hb-buffer.h',
|
|
|
|
'hb-common.h',
|
2022-06-01 19:51:43 +02:00
|
|
|
'hb-cplusplus.hh',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-deprecated.h',
|
|
|
|
'hb-draw.h',
|
2022-12-14 03:14:25 +01:00
|
|
|
'hb-paint.h',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-face.h',
|
|
|
|
'hb-font.h',
|
|
|
|
'hb-map.h',
|
2018-11-14 23:25:41 +01:00
|
|
|
'hb-ot-color.h',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-deprecated.h',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-ot-font.h',
|
|
|
|
'hb-ot-layout.h',
|
|
|
|
'hb-ot-math.h',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot-meta.h',
|
|
|
|
'hb-ot-metrics.h',
|
2018-11-14 23:25:41 +01:00
|
|
|
'hb-ot-name.h',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-ot-shape.h',
|
|
|
|
'hb-ot-var.h',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-ot.h',
|
|
|
|
'hb-set.h',
|
|
|
|
'hb-shape-plan.h',
|
|
|
|
'hb-shape.h',
|
2020-04-21 14:03:50 +02:00
|
|
|
'hb-style.h',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-unicode.h',
|
|
|
|
'hb.h',
|
2020-07-03 23:38:30 +02:00
|
|
|
)
|
2020-09-07 11:55:33 +02:00
|
|
|
hb_base_headers += hb_version_h
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-03-24 12:34:33 +01:00
|
|
|
# Optional Sources and Headers with external deps
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2022-12-22 23:50:43 +01:00
|
|
|
hb_ft_sources = files('hb-ft.cc', 'hb-ft-colr.hh')
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_ft_headers = files('hb-ft.h')
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_glib_sources = files('hb-glib.cc')
|
|
|
|
hb_glib_headers = files('hb-glib.h')
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_graphite2_sources = files('hb-graphite2.cc')
|
|
|
|
hb_graphite2_headers = files('hb-graphite2.h')
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-03-24 12:34:33 +01:00
|
|
|
# System-dependent sources and headers
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_coretext_sources = files('hb-coretext.cc')
|
|
|
|
hb_coretext_headers = files('hb-coretext.h')
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_directwrite_sources = files('hb-directwrite.cc')
|
|
|
|
hb_directwrite_headers = files('hb-directwrite.h')
|
2020-03-24 12:34:33 +01:00
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_gdi_sources = files('hb-gdi.cc')
|
|
|
|
hb_gdi_headers = files('hb-gdi.h')
|
2020-03-24 12:34:33 +01:00
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_uniscribe_sources = files('hb-uniscribe.cc')
|
|
|
|
hb_uniscribe_headers = files('hb-uniscribe.h')
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-03-24 12:34:33 +01:00
|
|
|
# Sources for libharfbuzz-gobject and libharfbuzz-icu
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_icu_sources = files('hb-icu.cc')
|
|
|
|
hb_icu_headers = files('hb-icu.h')
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-03-24 12:34:33 +01:00
|
|
|
# Sources for libharfbuzz-subset
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_subset_sources = files(
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-number.cc',
|
|
|
|
'hb-number.hh',
|
2018-11-16 17:26:06 +01:00
|
|
|
'hb-ot-cff1-table.cc',
|
|
|
|
'hb-ot-cff2-table.cc',
|
2018-11-14 23:25:41 +01:00
|
|
|
'hb-static.cc',
|
2022-10-13 21:40:31 +02:00
|
|
|
'hb-subset-accelerator.hh',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-subset-cff-common.cc',
|
|
|
|
'hb-subset-cff-common.hh',
|
2018-11-16 17:26:06 +01:00
|
|
|
'hb-subset-cff1.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-subset-cff1.hh',
|
2018-11-16 17:26:06 +01:00
|
|
|
'hb-subset-cff2.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-subset-cff2.hh',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-subset-input.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-subset-input.hh',
|
2023-01-25 19:36:47 +01:00
|
|
|
'hb-subset-instancer-solver.cc',
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-subset-plan.cc',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-subset-plan.hh',
|
2022-02-02 19:30:34 +01:00
|
|
|
'hb-subset-repacker.cc',
|
2022-07-27 20:58:41 +02:00
|
|
|
'graph/gsubgpos-context.cc',
|
2022-07-29 21:58:51 +02:00
|
|
|
'graph/gsubgpos-context.hh',
|
|
|
|
'graph/gsubgpos-graph.hh',
|
|
|
|
'graph/pairpos-graph.hh',
|
2022-08-11 21:08:04 +02:00
|
|
|
'graph/markbasepos-graph.hh',
|
2022-07-29 21:58:51 +02:00
|
|
|
'graph/coverage-graph.hh',
|
2022-08-02 22:58:35 +02:00
|
|
|
'graph/classdef-graph.hh',
|
2022-08-04 03:37:21 +02:00
|
|
|
'graph/split-helpers.hh',
|
2020-03-24 12:34:33 +01:00
|
|
|
'hb-subset.cc',
|
|
|
|
'hb-subset.hh',
|
2020-07-03 23:38:30 +02:00
|
|
|
)
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2022-02-02 19:30:34 +01:00
|
|
|
hb_subset_headers = files(
|
|
|
|
'hb-subset.h',
|
|
|
|
'hb-subset-repacker.h'
|
|
|
|
)
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_gobject_sources = files(
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-gobject-structs.cc'
|
2020-07-03 23:38:30 +02:00
|
|
|
)
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-07-03 23:38:30 +02:00
|
|
|
hb_gobject_headers = files(
|
2018-05-17 01:28:53 +02:00
|
|
|
'hb-gobject.h',
|
|
|
|
'hb-gobject-structs.h',
|
2020-07-03 23:38:30 +02:00
|
|
|
)
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2021-09-14 07:07:00 +02:00
|
|
|
ragel = find_program('ragel', version: '6.10', required: false)
|
2021-09-15 14:02:52 +02:00
|
|
|
has_ragel = ragel.found()
|
|
|
|
if not has_ragel and get_option('ragel_subproject')
|
|
|
|
ragel = subproject('ragel').get_variable('ragel')
|
|
|
|
has_ragel = true
|
2021-09-14 12:34:25 +02:00
|
|
|
endif
|
2021-09-15 14:02:52 +02:00
|
|
|
if not has_ragel
|
2022-05-30 17:46:08 +02:00
|
|
|
if not meson.is_subproject()
|
|
|
|
warning('You have to install ragel if you are going to develop HarfBuzz itself')
|
|
|
|
endif
|
2020-04-21 09:49:16 +02:00
|
|
|
else
|
2020-07-14 17:58:06 +02:00
|
|
|
ragel_helper = find_program('gen-ragel-artifacts.py')
|
2020-07-03 23:38:30 +02:00
|
|
|
foreach rl : hb_base_ragel_sources
|
|
|
|
hh = rl.split('.')[0] + '.hh'
|
|
|
|
custom_target('@0@'.format(hh),
|
|
|
|
build_by_default: true,
|
|
|
|
input: rl,
|
|
|
|
output: hh,
|
2021-09-14 12:34:25 +02:00
|
|
|
command: [ragel_helper, ragel, '@OUTPUT@', meson.current_source_dir(), '@INPUT@'],
|
2020-07-03 23:38:30 +02:00
|
|
|
)
|
|
|
|
endforeach
|
2020-04-21 09:49:16 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
custom_target('harfbuzz.cc',
|
|
|
|
build_by_default: true,
|
|
|
|
output: 'harfbuzz.cc',
|
2020-07-04 09:58:06 +02:00
|
|
|
input: hb_base_sources + hb_glib_sources + hb_ft_sources +
|
|
|
|
hb_graphite2_sources + hb_uniscribe_sources + hb_gdi_sources +
|
|
|
|
hb_directwrite_sources + hb_coretext_sources,
|
|
|
|
command: [find_program('gen-harfbuzzcc.py'),
|
2020-11-24 02:29:24 +01:00
|
|
|
'@OUTPUT@', meson.current_source_dir(), '@INPUT@'],
|
2020-07-04 09:58:06 +02:00
|
|
|
)
|
2020-04-21 09:49:16 +02:00
|
|
|
|
2018-05-17 01:28:53 +02:00
|
|
|
incsrc = include_directories('.')
|
|
|
|
|
2020-03-24 12:34:33 +01:00
|
|
|
hb_sources = hb_base_sources + hb_base_ragel_generated_sources
|
|
|
|
hb_headers = hb_base_headers
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2020-06-03 23:52:10 +02:00
|
|
|
harfbuzz_deps = [thread_dep, m_dep] + harfbuzz_extra_deps
|
|
|
|
|
2020-09-01 03:44:01 +02:00
|
|
|
libharfbuzz_link_language = 'c'
|
|
|
|
|
2018-05-17 01:28:53 +02:00
|
|
|
if conf.get('HAVE_FREETYPE', 0) == 1
|
|
|
|
hb_sources += hb_ft_sources
|
|
|
|
hb_headers += hb_ft_headers
|
2020-06-03 23:52:10 +02:00
|
|
|
harfbuzz_deps += [freetype_dep]
|
2018-05-17 01:28:53 +02:00
|
|
|
endif
|
|
|
|
|
2022-12-31 23:41:55 +01:00
|
|
|
if conf.get('HAVE_GLIB', 0) == 1
|
|
|
|
hb_sources += hb_glib_sources
|
|
|
|
hb_headers += hb_glib_headers
|
|
|
|
harfbuzz_deps += [glib_dep]
|
|
|
|
endif
|
2023-01-22 22:01:34 +01:00
|
|
|
|
2022-12-31 23:41:55 +01:00
|
|
|
# We set those here to not include the sources below that are of no use to
|
|
|
|
# GObject Introspection
|
|
|
|
gir_sources = hb_sources + hb_gobject_sources
|
|
|
|
gir_headers = hb_headers + hb_gobject_headers
|
|
|
|
|
2020-03-13 11:01:17 +01:00
|
|
|
if conf.get('HAVE_GDI', 0) == 1
|
2020-03-24 12:34:33 +01:00
|
|
|
hb_sources += hb_gdi_sources
|
|
|
|
hb_headers += hb_gdi_headers
|
2020-06-03 23:52:10 +02:00
|
|
|
harfbuzz_deps += gdi_uniscribe_deps
|
2020-03-13 11:01:17 +01:00
|
|
|
endif
|
|
|
|
|
2018-05-17 01:28:53 +02:00
|
|
|
if conf.get('HAVE_GRAPHITE2', 0) == 1
|
|
|
|
hb_sources += hb_graphite2_sources
|
|
|
|
hb_headers += hb_graphite2_headers
|
2021-10-05 19:00:29 +02:00
|
|
|
harfbuzz_deps += [graphite2_dep, graphite_dep]
|
2018-05-17 01:28:53 +02:00
|
|
|
endif
|
|
|
|
|
2018-11-12 17:56:56 +01:00
|
|
|
if conf.get('HAVE_UNISCRIBE', 0) == 1
|
2020-03-24 12:34:33 +01:00
|
|
|
hb_sources += hb_uniscribe_sources
|
|
|
|
hb_headers += hb_uniscribe_headers
|
2018-11-12 17:56:56 +01:00
|
|
|
endif
|
|
|
|
|
2018-11-12 17:56:56 +01:00
|
|
|
if conf.get('HAVE_DIRECTWRITE', 0) == 1
|
2020-03-24 12:34:33 +01:00
|
|
|
hb_sources += hb_directwrite_sources
|
|
|
|
hb_headers += hb_directwrite_headers
|
2020-09-01 03:44:01 +02:00
|
|
|
# hb-directwrite needs a C++ linker
|
|
|
|
libharfbuzz_link_language = 'cpp'
|
2018-11-12 17:56:56 +01:00
|
|
|
endif
|
|
|
|
|
2018-11-12 17:56:56 +01:00
|
|
|
if conf.get('HAVE_CORETEXT', 0) == 1
|
2020-03-24 12:34:33 +01:00
|
|
|
hb_sources += hb_coretext_sources
|
|
|
|
hb_headers += hb_coretext_headers
|
2020-06-03 23:52:10 +02:00
|
|
|
harfbuzz_deps += coretext_deps
|
2018-11-12 17:56:56 +01:00
|
|
|
endif
|
|
|
|
|
2020-04-18 22:24:24 +02:00
|
|
|
have_icu = conf.get('HAVE_ICU', 0) == 1
|
|
|
|
have_icu_builtin = conf.get('HAVE_ICU_BUILTIN', 0) == 1
|
|
|
|
if have_icu and have_icu_builtin
|
|
|
|
hb_sources += hb_icu_sources
|
|
|
|
hb_headers += hb_icu_headers
|
2020-06-03 23:52:10 +02:00
|
|
|
harfbuzz_deps += [icu_dep]
|
2020-04-18 22:24:24 +02:00
|
|
|
endif
|
|
|
|
|
2023-01-23 23:07:45 +01:00
|
|
|
features = [
|
|
|
|
'CAIRO',
|
|
|
|
'CORETEXT',
|
|
|
|
'DIRECTWRITE',
|
|
|
|
'FREETYPE',
|
|
|
|
'GDI',
|
|
|
|
'GLIB',
|
|
|
|
'GOBJECT',
|
|
|
|
'GRAPHITE',
|
|
|
|
'ICU',
|
|
|
|
'UNISCRIBE',
|
|
|
|
]
|
2023-01-23 22:57:16 +01:00
|
|
|
|
2023-01-23 23:07:45 +01:00
|
|
|
hb_enabled_features = configuration_data()
|
2023-01-23 22:57:16 +01:00
|
|
|
hb_supported_features = configuration_data()
|
2023-01-23 23:07:45 +01:00
|
|
|
foreach feature : features
|
|
|
|
key = 'HB_HAS_@0@'.format(feature)
|
|
|
|
hb_enabled_features.set(key, conf.get('HAVE_@0@'.format(feature), false))
|
2023-01-23 22:57:16 +01:00
|
|
|
hb_supported_features.set(key, 1)
|
|
|
|
endforeach
|
2022-12-26 01:03:50 +01:00
|
|
|
|
2023-01-23 22:57:16 +01:00
|
|
|
# The enabled features. This file is installed.
|
2022-10-18 04:41:51 +02:00
|
|
|
hb_features_h = configure_file(input: 'hb-features.h.in',
|
|
|
|
output: 'hb-features.h',
|
2023-01-23 23:07:45 +01:00
|
|
|
configuration: hb_enabled_features,
|
2022-10-18 04:41:51 +02:00
|
|
|
install: true,
|
|
|
|
install_dir: get_option('includedir') / meson.project_name())
|
|
|
|
|
2023-01-23 22:41:11 +01:00
|
|
|
# This file is generated to convince gtk-doc to generate documentation for all
|
|
|
|
# HB_HAS_* macros, whether they are enabled for the current build or not.
|
|
|
|
# This file should not be installed.
|
|
|
|
hb_supported_features_h = configure_file(input: 'hb-features.h.in',
|
|
|
|
output: 'hb-supported-features.h',
|
|
|
|
configuration: hb_supported_features,
|
|
|
|
install: false)
|
|
|
|
|
2022-10-18 04:41:51 +02:00
|
|
|
# Base and default-included sources and headers
|
|
|
|
|
2018-11-12 20:41:39 +01:00
|
|
|
gen_def = find_program('gen-def.py')
|
2023-02-13 08:21:05 +01:00
|
|
|
gen_def_cmd = [gen_def, '@OUTPUT@', '@INPUT@']
|
2020-05-21 17:03:18 +02:00
|
|
|
if get_option('experimental_api')
|
2023-02-13 08:21:05 +01:00
|
|
|
gen_def_cmd += '--experimental-api'
|
2020-04-20 22:43:13 +02:00
|
|
|
endif
|
|
|
|
|
2023-02-13 08:21:05 +01:00
|
|
|
# harfbuzz
|
2018-11-12 20:41:39 +01:00
|
|
|
harfbuzz_def = custom_target('harfbuzz.def',
|
2023-02-13 08:21:05 +01:00
|
|
|
command: gen_def_cmd,
|
2018-11-12 20:41:39 +01:00
|
|
|
input: hb_headers,
|
|
|
|
output: 'harfbuzz.def')
|
2020-05-10 11:42:20 +02:00
|
|
|
defs_list = [harfbuzz_def]
|
2018-11-12 20:41:39 +01:00
|
|
|
|
2020-06-22 15:34:01 +02:00
|
|
|
version = '0.@0@.0'.format(hb_version_int)
|
2018-06-05 02:15:43 +02:00
|
|
|
|
2020-03-13 05:07:06 +01:00
|
|
|
extra_hb_cpp_args = []
|
2022-08-02 23:46:04 +02:00
|
|
|
if cpp.get_argument_syntax() == 'msvc'
|
2020-06-09 16:36:50 +02:00
|
|
|
if get_option('default_library') != 'static'
|
2020-03-13 09:00:09 +01:00
|
|
|
extra_hb_cpp_args += '-DHB_DLL_EXPORT'
|
|
|
|
endif
|
|
|
|
hb_so_version = ''
|
|
|
|
else
|
|
|
|
hb_so_version = '0'
|
2020-03-13 05:07:06 +01:00
|
|
|
endif
|
|
|
|
|
2020-07-14 16:59:58 +02:00
|
|
|
if get_option('fuzzer_ldflags') != ''
|
|
|
|
extra_hb_cpp_args += ['-DHB_CUSTOM_MALLOC']
|
|
|
|
hb_sources += 'failing-alloc.c'
|
|
|
|
hb_subset_sources += 'failing-alloc.c'
|
|
|
|
hb_icu_sources += 'failing-alloc.c'
|
|
|
|
hb_gobject_sources += 'failing-alloc.c'
|
|
|
|
endif
|
|
|
|
|
2020-07-30 12:24:00 +02:00
|
|
|
darwin_versions = [hb_version_int, '@0@.0.0'.format(hb_version_int)]
|
|
|
|
|
2018-05-17 01:28:53 +02:00
|
|
|
libharfbuzz = library('harfbuzz', hb_sources,
|
2020-03-24 12:34:33 +01:00
|
|
|
include_directories: incconfig,
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: harfbuzz_deps,
|
2020-03-13 05:07:06 +01:00
|
|
|
cpp_args: cpp_args + extra_hb_cpp_args,
|
2020-03-13 09:00:09 +01:00
|
|
|
soversion: hb_so_version,
|
2018-06-05 02:15:43 +02:00
|
|
|
version: version,
|
|
|
|
install: true,
|
2020-07-30 12:24:00 +02:00
|
|
|
darwin_versions: darwin_versions,
|
2020-09-01 03:21:12 +02:00
|
|
|
link_language: libharfbuzz_link_language,
|
2020-05-10 12:16:16 +02:00
|
|
|
)
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2018-10-12 16:11:49 +02:00
|
|
|
libharfbuzz_dep = declare_dependency(
|
|
|
|
link_with: libharfbuzz,
|
2020-03-24 12:34:33 +01:00
|
|
|
include_directories: incsrc,
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: harfbuzz_deps)
|
2022-12-18 02:40:32 +01:00
|
|
|
meson.override_dependency('harfbuzz', libharfbuzz_dep)
|
2018-10-12 16:11:49 +02:00
|
|
|
|
2020-03-26 10:04:28 +01:00
|
|
|
# harfbuzz-subset
|
|
|
|
harfbuzz_subset_def = custom_target('harfbuzz-subset.def',
|
2023-02-13 08:21:05 +01:00
|
|
|
command: gen_def_cmd,
|
2020-03-26 10:04:28 +01:00
|
|
|
input: hb_subset_headers,
|
|
|
|
output: 'harfbuzz-subset.def')
|
2020-05-10 11:42:20 +02:00
|
|
|
defs_list += [harfbuzz_subset_def]
|
2020-03-26 10:04:28 +01:00
|
|
|
|
|
|
|
libharfbuzz_subset = library('harfbuzz-subset', hb_subset_sources,
|
|
|
|
include_directories: incconfig,
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: [m_dep],
|
2020-03-26 10:04:28 +01:00
|
|
|
link_with: [libharfbuzz],
|
|
|
|
cpp_args: cpp_args + extra_hb_cpp_args,
|
|
|
|
soversion: hb_so_version,
|
|
|
|
version: version,
|
|
|
|
install: true,
|
2020-07-30 12:24:00 +02:00
|
|
|
darwin_versions: darwin_versions,
|
2020-06-05 23:18:23 +02:00
|
|
|
link_language: 'c',
|
2020-05-10 12:16:16 +02:00
|
|
|
)
|
2020-03-26 10:04:28 +01:00
|
|
|
|
2022-07-19 21:15:21 +02:00
|
|
|
custom_target('harfbuzz-subset.cc',
|
|
|
|
build_by_default: true,
|
|
|
|
output: 'harfbuzz-subset.cc',
|
2022-12-04 23:03:36 +01:00
|
|
|
input: hb_base_sources + hb_subset_sources,
|
2022-07-19 21:15:21 +02:00
|
|
|
command: [find_program('gen-harfbuzzcc.py'),
|
|
|
|
'@OUTPUT@', meson.current_source_dir(), '@INPUT@'],
|
|
|
|
)
|
|
|
|
|
2020-03-26 10:04:28 +01:00
|
|
|
libharfbuzz_subset_dep = declare_dependency(
|
|
|
|
link_with: libharfbuzz_subset,
|
|
|
|
include_directories: incsrc,
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: [m_dep])
|
2022-12-18 02:40:32 +01:00
|
|
|
meson.override_dependency('harfbuzz-subset', libharfbuzz_subset_dep)
|
2020-03-26 10:04:28 +01:00
|
|
|
|
2022-12-26 01:03:50 +01:00
|
|
|
libharfbuzz_cairo_dep = null_dep
|
|
|
|
if conf.get('HAVE_CAIRO', 0) == 1
|
|
|
|
hb_cairo_sources = [
|
|
|
|
'hb-cairo.cc',
|
2022-12-26 03:40:44 +01:00
|
|
|
'hb-cairo-utils.cc',
|
|
|
|
'hb-static.cc'
|
2022-12-26 01:03:50 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
hb_cairo_headers = [
|
|
|
|
'hb-cairo.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
cairo_dep = dependency('cairo')
|
|
|
|
|
|
|
|
libharfbuzz_cairo = library('harfbuzz-cairo', hb_cairo_sources,
|
|
|
|
include_directories: incconfig,
|
|
|
|
dependencies: [m_dep, cairo_dep],
|
|
|
|
link_with: [libharfbuzz],
|
|
|
|
cpp_args: cpp_args + extra_hb_cpp_args,
|
|
|
|
soversion: hb_so_version,
|
|
|
|
version: version,
|
|
|
|
install: true,
|
|
|
|
darwin_versions: darwin_versions,
|
|
|
|
link_language: 'c',
|
|
|
|
)
|
|
|
|
|
|
|
|
install_headers(hb_cairo_headers, subdir: meson.project_name())
|
|
|
|
|
|
|
|
libharfbuzz_cairo_dep = declare_dependency(
|
|
|
|
link_with: libharfbuzz_cairo,
|
|
|
|
include_directories: incsrc,
|
|
|
|
dependencies: [m_dep, cairo_dep])
|
|
|
|
meson.override_dependency('harfbuzz-cairo', libharfbuzz_cairo_dep)
|
2022-12-26 02:03:59 +01:00
|
|
|
|
2022-12-27 15:25:05 +01:00
|
|
|
harfbuzz_cairo_def = custom_target('harfbuzz-cairo.def',
|
2023-02-13 08:21:05 +01:00
|
|
|
command: gen_def_cmd,
|
2022-12-27 15:25:05 +01:00
|
|
|
input: hb_cairo_headers,
|
2022-12-28 14:51:27 +01:00
|
|
|
output: 'harfbuzz-cairo.def')
|
2022-12-27 15:25:05 +01:00
|
|
|
defs_list += [harfbuzz_cairo_def]
|
|
|
|
|
2022-12-26 02:03:59 +01:00
|
|
|
pkgmod.generate(libharfbuzz_cairo,
|
|
|
|
description: 'HarfBuzz cairo support',
|
|
|
|
requires: ['harfbuzz = @0@'.format(meson.project_version())],
|
|
|
|
subdirs: [meson.project_name()],
|
|
|
|
version: meson.project_version(),
|
|
|
|
)
|
2022-12-26 01:03:50 +01:00
|
|
|
endif
|
2022-12-25 16:32:33 +01:00
|
|
|
|
2020-04-23 10:06:20 +02:00
|
|
|
if get_option('tests').enabled()
|
2020-04-23 10:08:45 +02:00
|
|
|
# TODO: MSVC gives the following,
|
|
|
|
# error LNK2019: unresolved external symbol "unsigned __int64 const * const _hb_NullPool"
|
2022-08-02 23:46:04 +02:00
|
|
|
if cpp.get_argument_syntax() != 'msvc'
|
2020-04-23 10:08:45 +02:00
|
|
|
noinst_programs = {
|
|
|
|
'main': 'main.cc',
|
|
|
|
'test-basics': 'test.cc',
|
|
|
|
'test-buffer-serialize': 'test-buffer-serialize.cc',
|
|
|
|
'test-ot-meta': 'test-ot-meta.cc',
|
|
|
|
'test-ot-name': 'test-ot-name.cc',
|
|
|
|
'test-ot-glyphname': 'test-ot-glyphname.cc',
|
|
|
|
'test-ot-gpos-size-params': 'test-gpos-size-params.cc',
|
2023-03-08 04:56:56 +01:00
|
|
|
'test-ot-gsub-get-alternates': 'test-gsub-get-alternates.cc',
|
2020-04-23 10:08:45 +02:00
|
|
|
'test-ot-gsub-would-substitute': 'test-gsub-would-substitute.cc',
|
2022-08-02 20:18:18 +02:00
|
|
|
'test-use-table': 'test-use-table.cc',
|
2020-04-23 10:08:45 +02:00
|
|
|
}
|
|
|
|
foreach name, source : noinst_programs
|
|
|
|
executable(name, source,
|
|
|
|
include_directories: incconfig,
|
|
|
|
cpp_args: cpp_args,
|
|
|
|
dependencies: libharfbuzz_dep,
|
|
|
|
install: false,
|
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
endif
|
2020-05-10 11:42:20 +02:00
|
|
|
|
2020-04-23 10:08:45 +02:00
|
|
|
compiled_tests = {
|
2020-08-12 21:43:06 +02:00
|
|
|
'test-algs': ['test-algs.cc', 'hb-static.cc'],
|
2020-08-13 06:53:29 +02:00
|
|
|
'test-array': ['test-array.cc'],
|
2020-08-12 21:43:06 +02:00
|
|
|
'test-iter': ['test-iter.cc', 'hb-static.cc'],
|
2022-02-11 20:16:25 +01:00
|
|
|
'test-machinery': ['test-machinery.cc', 'hb-static.cc'],
|
2021-11-02 05:29:14 +01:00
|
|
|
'test-map': ['test-map.cc', 'hb-static.cc'],
|
2022-12-02 23:34:34 +01:00
|
|
|
'test-multimap': ['test-multimap.cc', 'hb-static.cc'],
|
2020-04-23 10:08:45 +02:00
|
|
|
'test-number': ['test-number.cc', 'hb-number.cc'],
|
2020-08-13 06:53:29 +02:00
|
|
|
'test-ot-tag': ['hb-ot-tag.cc'],
|
2022-02-11 20:16:25 +01:00
|
|
|
'test-priority-queue': ['test-priority-queue.cc', 'hb-static.cc'],
|
2022-07-27 20:58:41 +02:00
|
|
|
'test-repacker': ['test-repacker.cc', 'hb-static.cc', 'graph/gsubgpos-context.cc'],
|
2022-08-05 20:33:03 +02:00
|
|
|
'test-classdef-graph': ['graph/test-classdef-graph.cc', 'hb-static.cc', 'graph/gsubgpos-context.cc'],
|
2021-11-02 03:55:30 +01:00
|
|
|
'test-set': ['test-set.cc', 'hb-static.cc'],
|
2022-01-23 18:43:37 +01:00
|
|
|
'test-serialize': ['test-serialize.cc', 'hb-static.cc'],
|
2020-08-13 06:53:29 +02:00
|
|
|
'test-unicode-ranges': ['test-unicode-ranges.cc'],
|
2021-11-02 03:23:12 +01:00
|
|
|
'test-vector': ['test-vector.cc', 'hb-static.cc'],
|
2020-08-12 21:43:06 +02:00
|
|
|
'test-bimap': ['test-bimap.cc', 'hb-static.cc'],
|
2020-03-24 15:25:56 +01:00
|
|
|
}
|
2020-04-23 10:08:45 +02:00
|
|
|
foreach name, source : compiled_tests
|
2022-08-02 23:46:04 +02:00
|
|
|
if cpp.get_argument_syntax() == 'msvc' and source.contains('hb-static.cc')
|
2020-08-13 06:53:29 +02:00
|
|
|
# TODO: MSVC doesn't like tests having hb-static.cc, fix them
|
2020-08-12 21:43:06 +02:00
|
|
|
continue
|
|
|
|
endif
|
2020-04-23 10:08:45 +02:00
|
|
|
test(name, executable(name, source,
|
|
|
|
include_directories: incconfig,
|
|
|
|
cpp_args: cpp_args + ['-DMAIN', '-UNDEBUG'],
|
|
|
|
dependencies: libharfbuzz_dep,
|
|
|
|
install: false,
|
2020-05-30 11:47:56 +02:00
|
|
|
), suite: ['src'])
|
2020-03-24 12:34:33 +01:00
|
|
|
endforeach
|
2020-04-23 10:06:20 +02:00
|
|
|
endif
|
2018-10-12 16:11:49 +02:00
|
|
|
|
2018-06-05 02:15:43 +02:00
|
|
|
pkgmod.generate(libharfbuzz,
|
|
|
|
description: 'HarfBuzz text shaping library',
|
2018-06-05 18:19:29 +02:00
|
|
|
subdirs: [meson.project_name()],
|
2018-06-05 02:15:43 +02:00
|
|
|
version: meson.project_version(),
|
|
|
|
)
|
|
|
|
|
|
|
|
pkgmod.generate(libharfbuzz_subset,
|
|
|
|
description: 'HarfBuzz font subsetter',
|
2020-07-02 19:46:56 +02:00
|
|
|
requires: ['harfbuzz = @0@'.format(meson.project_version())],
|
2018-06-05 18:19:29 +02:00
|
|
|
subdirs: [meson.project_name()],
|
2018-06-05 02:15:43 +02:00
|
|
|
version: meson.project_version(),
|
|
|
|
)
|
|
|
|
|
2020-07-03 02:02:32 +02:00
|
|
|
libharfbuzz_icu_dep = null_dep
|
2020-04-18 22:24:24 +02:00
|
|
|
if have_icu and not have_icu_builtin
|
2020-05-10 11:42:20 +02:00
|
|
|
harfbuzz_icu_def = custom_target('harfbuzz-icu.def',
|
2023-02-13 08:21:05 +01:00
|
|
|
command: gen_def_cmd,
|
2020-05-10 11:42:20 +02:00
|
|
|
input: [hb_icu_headers],
|
|
|
|
output: 'harfbuzz-icu.def')
|
|
|
|
defs_list += [harfbuzz_icu_def]
|
|
|
|
|
2020-04-18 20:22:45 +02:00
|
|
|
libharfbuzz_icu = library('harfbuzz-icu', [hb_icu_sources, hb_icu_headers],
|
|
|
|
include_directories: incconfig,
|
|
|
|
dependencies: icu_dep,
|
|
|
|
link_with: [libharfbuzz],
|
|
|
|
cpp_args: cpp_args + extra_hb_cpp_args,
|
|
|
|
soversion: hb_so_version,
|
|
|
|
version: version,
|
|
|
|
install: true,
|
2020-07-30 12:24:00 +02:00
|
|
|
darwin_versions: darwin_versions,
|
2020-05-10 11:50:27 +02:00
|
|
|
# ICU links to stdc++ anyway so the default linker is good
|
2020-06-05 23:18:23 +02:00
|
|
|
# link_language: 'c',
|
2020-05-10 12:16:16 +02:00
|
|
|
)
|
2020-04-18 20:22:45 +02:00
|
|
|
|
|
|
|
libharfbuzz_icu_dep = declare_dependency(
|
|
|
|
link_with: libharfbuzz_icu,
|
|
|
|
include_directories: incsrc,
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: icu_dep)
|
2022-12-18 02:40:32 +01:00
|
|
|
meson.override_dependency('harfbuzz-icu', libharfbuzz_icu_dep)
|
2020-04-18 20:22:45 +02:00
|
|
|
|
|
|
|
pkgmod.generate(libharfbuzz_icu,
|
|
|
|
description: 'HarfBuzz text shaping library ICU integration',
|
2020-07-02 19:46:56 +02:00
|
|
|
requires: ['harfbuzz = @0@'.format(meson.project_version())],
|
2020-04-18 20:22:45 +02:00
|
|
|
subdirs: [meson.project_name()],
|
|
|
|
version: meson.project_version(),
|
|
|
|
)
|
2020-04-19 14:57:04 +02:00
|
|
|
|
|
|
|
install_headers(hb_icu_headers, subdir: meson.project_name())
|
2020-04-18 20:22:45 +02:00
|
|
|
endif
|
|
|
|
|
2018-12-03 20:51:06 +01:00
|
|
|
have_gobject = conf.get('HAVE_GOBJECT', 0) == 1
|
|
|
|
|
2020-08-11 22:20:33 +02:00
|
|
|
cmake_config = configuration_data()
|
2022-10-26 20:49:52 +02:00
|
|
|
cmake_config.set('libdir', get_option('prefix') / get_option('libdir'))
|
|
|
|
cmake_config.set('includedir', get_option('prefix') / get_option('includedir'))
|
2020-08-11 22:20:33 +02:00
|
|
|
cmake_config.set('HB_LIBTOOL_VERSION_INFO', hb_libtool_version_info)
|
2020-08-12 22:53:46 +02:00
|
|
|
cmake_config.set('have_gobject', '@0@'.format(have_gobject))
|
2020-08-11 22:20:33 +02:00
|
|
|
configure_file(input: 'harfbuzz-config.cmake.in',
|
|
|
|
output: 'harfbuzz-config.cmake',
|
|
|
|
configuration: cmake_config,
|
2021-11-20 16:09:15 +01:00
|
|
|
install_dir: get_option('libdir') / 'cmake' / 'harfbuzz',
|
2020-08-12 20:34:26 +02:00
|
|
|
)
|
2020-08-11 22:20:33 +02:00
|
|
|
|
2023-01-23 12:43:35 +01:00
|
|
|
gobject_enums_c = []
|
|
|
|
gobject_enums_h = []
|
2020-07-03 02:02:32 +02:00
|
|
|
libharfbuzz_gobject_dep = null_dep
|
2018-12-03 20:51:06 +01:00
|
|
|
if have_gobject
|
2018-05-17 01:28:53 +02:00
|
|
|
gnome = import('gnome')
|
|
|
|
|
|
|
|
h_templ = configure_file(
|
|
|
|
input: 'hb-gobject-enums.h.tmpl',
|
|
|
|
output: 'hb-gobject-enums-tmp.h.tmpl',
|
2021-11-20 16:09:15 +01:00
|
|
|
copy: true)
|
2018-05-17 01:28:53 +02:00
|
|
|
|
|
|
|
cc_templ = configure_file(
|
|
|
|
input: 'hb-gobject-enums.cc.tmpl',
|
|
|
|
output: 'hb-gobject-enums-tmp.cc.tmpl',
|
2021-11-20 16:09:15 +01:00
|
|
|
copy: true)
|
2018-05-17 01:28:53 +02:00
|
|
|
|
|
|
|
enums = gnome.mkenums('hb-gobject',
|
|
|
|
sources: hb_headers,
|
|
|
|
h_template: h_templ,
|
|
|
|
c_template: cc_templ,
|
|
|
|
identifier_prefix: 'hb_',
|
|
|
|
symbol_prefix: 'hb_gobject',
|
|
|
|
)
|
|
|
|
|
2023-01-23 12:43:35 +01:00
|
|
|
gobject_enums_c = custom_target('hb-gobject-enums.cc',
|
2018-05-17 01:28:53 +02:00
|
|
|
input: enums[0],
|
|
|
|
output: 'hb-gobject-enums.cc',
|
2020-05-21 17:32:47 +02:00
|
|
|
command: [find_program('fix_get_types.py'), '@INPUT@', '@OUTPUT@']
|
2018-05-17 01:28:53 +02:00
|
|
|
)
|
|
|
|
|
2023-01-23 12:43:35 +01:00
|
|
|
gobject_enums_h = custom_target('hb-gobject-enums.h',
|
2018-05-17 01:28:53 +02:00
|
|
|
input: enums[1],
|
|
|
|
output: 'hb-gobject-enums.h',
|
2020-05-21 17:32:47 +02:00
|
|
|
command: [find_program('fix_get_types.py'), '@INPUT@', '@OUTPUT@'],
|
2018-06-05 02:15:43 +02:00
|
|
|
install: true,
|
2021-11-20 16:09:15 +01:00
|
|
|
install_dir: get_option('prefix') / get_option('includedir') / meson.project_name(),
|
2018-05-17 01:28:53 +02:00
|
|
|
)
|
|
|
|
|
2023-01-23 12:43:35 +01:00
|
|
|
hb_gobject_sources += [gobject_enums_c]
|
2018-05-17 01:28:53 +02:00
|
|
|
|
2018-11-12 20:41:39 +01:00
|
|
|
harfbuzz_gobject_def = custom_target('harfbuzz-gobject.def',
|
2023-02-13 08:21:05 +01:00
|
|
|
command: gen_def_cmd,
|
2023-01-23 12:43:35 +01:00
|
|
|
input: [hb_gobject_headers, gobject_enums_h],
|
2018-11-12 20:41:39 +01:00
|
|
|
output: 'harfbuzz-gobject.def')
|
2020-05-10 11:42:20 +02:00
|
|
|
defs_list += [harfbuzz_gobject_def]
|
2018-11-12 20:41:39 +01:00
|
|
|
|
2023-01-23 12:43:35 +01:00
|
|
|
libharfbuzz_gobject = library('harfbuzz-gobject', [hb_gobject_sources, gobject_enums_c, gobject_enums_h],
|
2018-11-14 21:19:36 +01:00
|
|
|
include_directories: incconfig,
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: [glib_dep, gobject_dep],
|
2018-05-17 01:28:53 +02:00
|
|
|
link_with: [libharfbuzz],
|
2020-03-13 05:07:06 +01:00
|
|
|
cpp_args: cpp_args + extra_hb_cpp_args,
|
2020-03-13 09:00:09 +01:00
|
|
|
soversion: hb_so_version,
|
2018-06-05 02:15:43 +02:00
|
|
|
version: version,
|
|
|
|
install: true,
|
2020-07-30 12:24:00 +02:00
|
|
|
darwin_versions: darwin_versions,
|
2020-06-05 23:18:23 +02:00
|
|
|
link_language: 'c',
|
2020-05-10 12:16:16 +02:00
|
|
|
)
|
2018-06-05 02:15:43 +02:00
|
|
|
|
2018-11-14 14:49:03 +01:00
|
|
|
gir = find_program('g-ir-scanner', required: get_option('introspection'))
|
2020-09-24 21:00:34 +02:00
|
|
|
build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled())
|
2020-07-14 15:17:10 +02:00
|
|
|
|
|
|
|
build_gir = build_gir and get_option('default_library') != 'static'
|
|
|
|
if not build_gir and get_option('introspection').enabled()
|
|
|
|
error('Introspection support is requested but the default library option should be shared or both')
|
|
|
|
endif
|
2018-11-14 14:49:03 +01:00
|
|
|
|
|
|
|
if build_gir
|
2020-05-21 13:58:24 +02:00
|
|
|
conf.set('HAVE_INTROSPECTION', 1)
|
2020-08-12 06:40:23 +02:00
|
|
|
hb_gen_files_gir = gnome.generate_gir(libharfbuzz_gobject,
|
2023-01-23 12:43:35 +01:00
|
|
|
sources: [gir_headers, gir_sources, gobject_enums_h],
|
2020-08-12 06:40:23 +02:00
|
|
|
dependencies: libharfbuzz_dep,
|
2018-11-14 14:49:03 +01:00
|
|
|
namespace: 'HarfBuzz',
|
|
|
|
nsversion: '0.0',
|
|
|
|
identifier_prefix: 'hb_',
|
2020-04-18 14:37:03 +02:00
|
|
|
symbol_prefix: ['hb', 'hb_gobject'],
|
2022-05-30 04:46:02 +02:00
|
|
|
includes: ['GObject-2.0', 'freetype2-2.0'],
|
2020-04-18 14:37:03 +02:00
|
|
|
export_packages: ['harfbuzz-gobject'],
|
|
|
|
header: 'hb-gobject.h',
|
2018-11-14 14:49:03 +01:00
|
|
|
install: true,
|
|
|
|
extra_args: ['--cflags-begin',
|
2021-02-10 22:37:43 +01:00
|
|
|
'-DHB_NO_SINGLE_HEADER_ERROR',
|
|
|
|
'-DHAVE_GOBJECT',
|
2018-11-14 14:49:03 +01:00
|
|
|
'-DHB_EXTERN=',
|
|
|
|
'--cflags-end'])
|
|
|
|
endif
|
|
|
|
|
2018-10-12 16:11:49 +02:00
|
|
|
libharfbuzz_gobject_dep = declare_dependency(
|
|
|
|
link_with: libharfbuzz_gobject,
|
2018-11-14 20:05:47 +01:00
|
|
|
include_directories: incsrc,
|
2021-11-20 16:09:15 +01:00
|
|
|
sources: build_gir ? hb_gen_files_gir : hb_gobject_sources,
|
2020-06-03 23:52:10 +02:00
|
|
|
dependencies: [glib_dep, gobject_dep])
|
2022-12-18 02:40:32 +01:00
|
|
|
meson.override_dependency('harfbuzz-gobject', libharfbuzz_gobject_dep)
|
2018-10-12 16:11:49 +02:00
|
|
|
|
2018-06-05 02:15:43 +02:00
|
|
|
pkgmod.generate(libharfbuzz_gobject,
|
|
|
|
description: 'HarfBuzz text shaping library GObject integration',
|
2020-07-02 19:46:56 +02:00
|
|
|
requires: ['harfbuzz = @0@'.format(meson.project_version()), 'glib-2.0', 'gobject-2.0'],
|
2018-06-05 18:19:29 +02:00
|
|
|
subdirs: [meson.project_name()],
|
2018-06-05 02:15:43 +02:00
|
|
|
version: meson.project_version(),
|
|
|
|
)
|
2020-04-19 14:57:04 +02:00
|
|
|
|
|
|
|
install_headers(hb_gobject_headers, subdir: meson.project_name())
|
2018-10-12 16:11:49 +02:00
|
|
|
else
|
2020-05-16 09:27:05 +02:00
|
|
|
if get_option('introspection').enabled()
|
|
|
|
error('introspection requires gobject to be enabled')
|
|
|
|
endif
|
2018-05-17 01:28:53 +02:00
|
|
|
endif
|
2018-06-05 02:15:43 +02:00
|
|
|
|
2020-05-29 10:04:30 +02:00
|
|
|
if get_option('tests').enabled()
|
|
|
|
dist_check_script = [
|
|
|
|
'check-c-linkage-decls',
|
|
|
|
'check-externs',
|
|
|
|
'check-header-guards',
|
|
|
|
'check-includes',
|
|
|
|
]
|
|
|
|
|
|
|
|
env = environment()
|
|
|
|
env.set('srcdir', meson.current_source_dir())
|
2022-06-03 18:06:56 +02:00
|
|
|
env.set('base_srcdir', meson.source_root())
|
2020-05-29 10:04:30 +02:00
|
|
|
env.set('builddir', meson.current_build_dir())
|
|
|
|
env.set('libs', meson.current_build_dir()) # TODO: Merge this with builddir after autotools removal
|
2020-07-03 23:38:30 +02:00
|
|
|
HBSOURCES = []
|
|
|
|
foreach f : hb_sources
|
2020-07-04 00:43:32 +02:00
|
|
|
HBSOURCES += '@0@'.format(f)
|
2020-07-03 23:38:30 +02:00
|
|
|
endforeach
|
|
|
|
env.set('HBSOURCES', ' '.join(HBSOURCES))
|
|
|
|
HBHEADERS = []
|
|
|
|
foreach f : hb_headers
|
2020-07-04 00:43:32 +02:00
|
|
|
HBHEADERS += '@0@'.format(f)
|
2020-07-03 23:38:30 +02:00
|
|
|
endforeach
|
|
|
|
env.set('HBHEADERS', ' '.join(HBHEADERS))
|
2020-05-29 10:04:30 +02:00
|
|
|
|
2022-08-02 23:46:04 +02:00
|
|
|
if cpp.get_argument_syntax() != 'msvc' and not meson.is_cross_build() # ensure the local tools are usable
|
2021-11-20 16:09:15 +01:00
|
|
|
dist_check_script += ['check-libstdc++', 'check-static-inits', 'check-symbols']
|
2020-05-29 10:04:30 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
foreach name : dist_check_script
|
2020-05-30 11:47:56 +02:00
|
|
|
test(name, find_program(name + '.py'),
|
|
|
|
env: env,
|
2021-11-20 16:09:15 +01:00
|
|
|
depends: name == 'check-symbols' ? defs_list : [],
|
2020-08-12 20:34:26 +02:00
|
|
|
suite: ['src'],
|
2020-05-30 11:47:56 +02:00
|
|
|
)
|
2020-05-29 10:04:30 +02:00
|
|
|
endforeach
|
2020-05-10 11:42:20 +02:00
|
|
|
endif
|
|
|
|
|
2020-04-19 14:57:04 +02:00
|
|
|
install_headers(hb_headers + hb_subset_headers, subdir: meson.project_name())
|