1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 FILES_PER_UNIFIED_FILE = 100
53 'hb-ot-cff1-table.cc',
54 'hb-ot-cff2-table.cc',
63 'hb-ot-shape-fallback.cc',
64 'hb-ot-shape-normalize.cc',
66 'hb-ot-shaper-arabic.cc',
67 'hb-ot-shaper-default.cc',
68 'hb-ot-shaper-hangul.cc',
69 'hb-ot-shaper-hebrew.cc',
70 'hb-ot-shaper-indic-table.cc',
71 'hb-ot-shaper-indic.cc',
72 'hb-ot-shaper-khmer.cc',
73 'hb-ot-shaper-myanmar.cc',
74 'hb-ot-shaper-syllabic.cc',
75 'hb-ot-shaper-thai.cc',
76 'hb-ot-shaper-use.cc',
77 'hb-ot-shaper-vowel-constraints.cc',
81 'hb-paint-extents.cc',
94 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
101 CXXFLAGS += CONFIG['GLIB_CFLAGS']
103 # We allow warnings for third-party code that can be updated from upstream.
104 AllowCompilerWarnings()
106 FINAL_LIBRARY = 'gkmedias'
108 DEFINES['PACKAGE_VERSION'] = '"moz"'
109 DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"'
110 DEFINES['HAVE_OT'] = 1
111 DEFINES['HAVE_ROUND'] = 1
112 DEFINES['HB_NO_BUFFER_VERIFY'] = True
113 DEFINES['HB_NO_FALLBACK_SHAPE'] = True
114 DEFINES['HB_NO_UCD'] = True
115 DEFINES['HB_NO_UNICODE_FUNCS'] = True
117 # On Android, we want to use harfbuzz's mmap support for file access,
118 # so we need to set the appropriate configuration flags as we're not
119 # running harfbuzz's own configure script.
120 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
121 DEFINES['HAVE_MMAP'] = 1
122 DEFINES['HAVE_SYS_MMAN_H'] = 1
124 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
125 DEFINES['UNICODE'] = True