Bug 1776802 - Remove obsolete lines from harfbuzz moz.build and enable warnings-as-errors. r=jfkthame

Depends on D150437

Differential Revision: https://phabricator.services.mozilla.com/D150438
This commit is contained in:
Ryan VanderMeulen 2022-07-11 16:28:05 +00:00
parent 7a7c344e74
commit 9cc54fa7a9

View File

@ -42,7 +42,6 @@ UNIFIED_SOURCES += [
'hb-aat-map.cc',
'hb-blob.cc',
'hb-buffer-serialize.cc',
'hb-buffer-verify.cc',
'hb-buffer.cc',
'hb-common.cc',
'hb-draw.cc',
@ -96,24 +95,16 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
]
CXXFLAGS += CONFIG['GLIB_CFLAGS']
# We allow warnings for third-party code that can be updated from upstream.
AllowCompilerWarnings()
if CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += ['-Wno-unused-variable']
FINAL_LIBRARY = 'gkmedias'
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
# Cancel the effect of the -DDEBUG macro if present,
# because harfbuzz uses that name for its own purposes
DEFINES['DEBUG'] = False
# On Android, we want to use harfbuzz's mmap support for file access,
# so we need to set the appropriate configuration flags as we're not