# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. FILES_PER_UNIFIED_FILE = 100 EXPORTS.harfbuzz += [ 'hb-aat-layout.h', 'hb-aat.h', 'hb-blob.h', 'hb-buffer.h', 'hb-common.h', 'hb-deprecated.h', 'hb-draw.h', 'hb-face.h', 'hb-font.h', 'hb-map.h', 'hb-ot-color.h', 'hb-ot-deprecated.h', 'hb-ot-font.h', 'hb-ot-layout.h', 'hb-ot-math.h', 'hb-ot-meta.h', 'hb-ot-metrics.h', 'hb-ot-name.h', 'hb-ot-shape.h', 'hb-ot-var.h', 'hb-ot.h', 'hb-paint.h', 'hb-script-list.h', 'hb-set.h', 'hb-shape-plan.h', 'hb-shape.h', 'hb-style.h', 'hb-unicode.h', 'hb-version.h', 'hb.h', ] UNIFIED_SOURCES += [ 'graph/gsubgpos-context.cc', 'hb-aat-layout.cc', 'hb-aat-map.cc', 'hb-blob.cc', 'hb-buffer.cc', 'hb-common.cc', 'hb-coretext-font.cc', 'hb-coretext-shape.cc', 'hb-coretext.cc', 'hb-directwrite-font.cc', 'hb-directwrite-shape.cc', 'hb-draw.cc', 'hb-face-builder.cc', 'hb-face.cc', 'hb-font.cc', 'hb-harfrust.cc', 'hb-kbts.cc', 'hb-map.cc', 'hb-number.cc', 'hb-ot-cff1-table.cc', 'hb-ot-cff2-table.cc', 'hb-ot-color.cc', 'hb-ot-face.cc', 'hb-ot-font.cc', 'hb-ot-layout.cc', 'hb-ot-map.cc', 'hb-ot-math.cc', 'hb-ot-metrics.cc', 'hb-ot-name.cc', 'hb-ot-shape-fallback.cc', 'hb-ot-shape-normalize.cc', 'hb-ot-shape.cc', 'hb-ot-shaper-arabic.cc', '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-khmer.cc', 'hb-ot-shaper-myanmar.cc', 'hb-ot-shaper-syllabic.cc', 'hb-ot-shaper-thai.cc', 'hb-ot-shaper-use.cc', 'hb-ot-shaper-vowel-constraints.cc', 'hb-ot-tag.cc', 'hb-ot-var.cc', 'hb-outline.cc', 'hb-paint-bounded.cc', 'hb-paint-extents.cc', 'hb-paint.cc', 'hb-raster-draw.cc', 'hb-raster-image.cc', 'hb-raster-paint.cc', 'hb-raster-svg-base.cc', 'hb-raster-svg-bbox.cc', 'hb-raster-svg-clip.cc', 'hb-raster-svg-color.cc', 'hb-raster-svg-defs-scan.cc', 'hb-raster-svg-defs.cc', 'hb-raster-svg-fill.cc', 'hb-raster-svg-gradient.cc', 'hb-raster-svg-parse.cc', 'hb-raster-svg-render.cc', 'hb-raster-svg-use.cc', 'hb-raster.cc', 'hb-set.cc', 'hb-shape-plan.cc', 'hb-shape.cc', 'hb-shaper.cc', 'hb-static.cc', 'hb-style.cc', 'hb-subset-cff-common.cc', 'hb-subset-cff1.cc', 'hb-subset-cff2-to-cff1.cc', 'hb-subset-cff2.cc', 'hb-subset-input.cc', 'hb-subset-instancer-iup.cc', 'hb-subset-instancer-solver.cc', 'hb-subset-plan-layout.cc', 'hb-subset-plan-var.cc', 'hb-subset-plan.cc', 'hb-subset-serialize.cc', 'hb-subset-table-cff.cc', 'hb-subset-table-color.cc', 'hb-subset-table-layout.cc', 'hb-subset-table-other.cc', 'hb-subset-table-var.cc', 'hb-subset.cc', 'hb-unicode.cc', 'hb-vector-svg-draw.cc', 'hb-vector-svg-paint.cc', 'hb-vector-svg-path.cc', 'hb-vector-svg-subset.cc', 'hb-vector-svg-utils.cc', 'hb-vector.cc', 'hb-zlib.cc', ] if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk': EXPORTS.harfbuzz += [ 'hb-glib.h', ] UNIFIED_SOURCES += [ 'hb-glib.cc', ] CXXFLAGS += CONFIG['GLIB_CFLAGS'] # We allow warnings for third-party code that can be updated from upstream. AllowCompilerWarnings() FINAL_LIBRARY = 'xul' DEFINES['PACKAGE_VERSION'] = '"moz"' DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"' DEFINES['HAVE_OT'] = 1 DEFINES['HAVE_ROUND'] = 1 DEFINES['HB_NO_BUFFER_VERIFY'] = True DEFINES['HB_NO_FALLBACK_SHAPE'] = True DEFINES['HB_NO_UCD'] = True DEFINES['HB_NO_UNICODE_FUNCS'] = True DEFINES['HB_NO_VAR_COMPOSITES'] = True # We want to use harfbuzz's mmap support for file access, # so we need to set the appropriate configuration flags as we're not # running harfbuzz's own configure script. if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'windows': DEFINES['HAVE_MMAP'] = 1 DEFINES['HAVE_SYS_MMAN_H'] = 1 DEFINES['HAVE_UNISTD_H'] = 1 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': DEFINES['UNICODE'] = True