2019-03-11 03:26:37 -07:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
|
|
# 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/.
|
|
|
|
|
|
|
|
EXPORTS += [
|
|
|
|
'../include/opentype-sanitiser.h',
|
|
|
|
'../include/ots-memory-stream.h',
|
|
|
|
]
|
|
|
|
|
2020-06-10 11:11:54 -07:00
|
|
|
SOURCES += [
|
2019-12-25 04:45:57 -08:00
|
|
|
'avar.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'cff.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'cff_charstring.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'cmap.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'cvar.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'cvt.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'feat.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'fpgm.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'fvar.cc',
|
|
|
|
'gasp.cc',
|
|
|
|
'gdef.cc',
|
|
|
|
'glat.cc',
|
|
|
|
'gloc.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'glyf.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'gpos.cc',
|
|
|
|
'gsub.cc',
|
|
|
|
'gvar.cc',
|
|
|
|
'hdmx.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'head.cc',
|
|
|
|
'hhea.cc',
|
|
|
|
'hmtx.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'hvar.cc',
|
|
|
|
'kern.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'layout.cc',
|
|
|
|
'loca.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'ltsh.cc',
|
|
|
|
'math.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'maxp.cc',
|
|
|
|
'metrics.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'mvar.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'name.cc',
|
|
|
|
'os2.cc',
|
|
|
|
'ots.cc',
|
|
|
|
'post.cc',
|
|
|
|
'prep.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'sile.cc',
|
|
|
|
'silf.cc',
|
|
|
|
'sill.cc',
|
|
|
|
'stat.cc',
|
|
|
|
'variations.cc',
|
|
|
|
'vdmx.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
'vhea.cc',
|
|
|
|
'vmtx.cc',
|
2019-12-25 04:45:57 -08:00
|
|
|
'vorg.cc',
|
|
|
|
'vvar.cc',
|
2019-03-11 03:26:37 -07:00
|
|
|
]
|
|
|
|
|
2021-01-17 06:11:08 -08:00
|
|
|
if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
|
|
|
|
NO_VISIBILITY_FLAGS = True
|
|
|
|
|
2019-03-11 03:26:37 -07:00
|
|
|
# We allow warnings for third-party code that can be updated from upstream.
|
|
|
|
ALLOW_COMPILER_WARNINGS = True
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'gkmedias'
|
|
|
|
|
|
|
|
DEFINES['PACKAGE_VERSION'] = '"moz"'
|
|
|
|
DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"'
|
2019-12-25 04:45:57 -08:00
|
|
|
DEFINES['OTS_GRAPHITE'] = 1
|
|
|
|
DEFINES['OTS_VARIATIONS'] = 1
|
2019-03-11 03:26:37 -07:00
|
|
|
|
2021-01-17 06:11:08 -08:00
|
|
|
if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
|
|
|
|
DEFINES['OTS_DLL'] = True
|
|
|
|
DEFINES['OTS_DLL_EXPORTS'] = True
|
|
|
|
|
2019-03-11 03:26:37 -07:00
|
|
|
USE_LIBS += [
|
|
|
|
'brotli',
|
|
|
|
'woff2',
|
|
|
|
]
|
2019-12-25 04:45:57 -08:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/modules/woff2/src',
|
|
|
|
]
|