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
44 'hb-buffer-serialize.cc',
45 'hb-buffer-verify.cc',
52 'hb-ot-cff1-table.cc',
53 'hb-ot-cff2-table.cc',
63 'hb-ot-shape-complex-arabic.cc',
64 'hb-ot-shape-complex-default.cc',
65 'hb-ot-shape-complex-hangul.cc',
66 'hb-ot-shape-complex-hebrew.cc',
67 'hb-ot-shape-complex-indic-table.cc',
68 'hb-ot-shape-complex-indic.cc',
69 'hb-ot-shape-complex-khmer.cc',
70 'hb-ot-shape-complex-myanmar.cc',
71 'hb-ot-shape-complex-syllabic.cc',
72 'hb-ot-shape-complex-thai.cc',
73 'hb-ot-shape-complex-use.cc',
74 'hb-ot-shape-complex-vowel-constraints.cc',
75 'hb-ot-shape-fallback.cc',
76 'hb-ot-shape-normalize.cc',
86 'hb-subset-cff-common.cc',
92 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
99 CXXFLAGS += CONFIG['GLIB_CFLAGS']
101 # We allow warnings for third-party code that can be updated from upstream.
102 AllowCompilerWarnings()
104 if CONFIG['CC_TYPE'] == 'clang-cl':
105 CXXFLAGS += ['-Wno-unused-variable']
107 FINAL_LIBRARY = 'gkmedias'
109 DEFINES['PACKAGE_VERSION'] = '"moz"'
110 DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"'
111 DEFINES['HAVE_OT'] = 1
112 DEFINES['HAVE_ROUND'] = 1
113 DEFINES['HB_NO_FALLBACK_SHAPE'] = True
114 DEFINES['HB_NO_MT'] = True
115 DEFINES['HB_NO_UCD'] = True
116 DEFINES['HB_NO_UNICODE_FUNCS'] = True
117 # Cancel the effect of the -DDEBUG macro if present,
118 # because harfbuzz uses that name for its own purposes
119 DEFINES['DEBUG'] = False
121 # On Android, we want to use harfbuzz's mmap support for file access,
122 # so we need to set the appropriate configuration flags as we're not
123 # running harfbuzz's own configure script.
124 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
125 DEFINES['HAVE_MMAP'] = 1
126 DEFINES['HAVE_SYS_MMAN_H'] = 1
128 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
129 DEFINES['UNICODE'] = True