moz.build (1621B)
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/. 6 7 EXPORTS += [ 8 '../include/opentype-sanitiser.h', 9 '../include/ots-memory-stream.h', 10 '../RLBoxWOFF2Types.h', 11 ] 12 13 UNIFIED_SOURCES += [ 14 '../RLBoxWOFF2Host.cpp' 15 ] 16 17 UNIFIED_SOURCES += [ 18 'avar.cc', 19 'cff.cc', 20 'cff_charstring.cc', 21 'cmap.cc', 22 'colr.cc', 23 'cpal.cc', 24 'cvar.cc', 25 'cvt.cc', 26 'feat.cc', 27 'fpgm.cc', 28 'fvar.cc', 29 'gasp.cc', 30 'gdef.cc', 31 'glat.cc', 32 'gloc.cc', 33 'glyf.cc', 34 'gpos.cc', 35 'gsub.cc', 36 'gvar.cc', 37 'hdmx.cc', 38 'head.cc', 39 'hhea.cc', 40 'hvar.cc', 41 'kern.cc', 42 'layout.cc', 43 'loca.cc', 44 'ltsh.cc', 45 'math.cc', 46 'maxp.cc', 47 'metrics.cc', 48 'mvar.cc', 49 'name.cc', 50 'os2.cc', 51 'ots.cc', 52 'post.cc', 53 'prep.cc', 54 'sile.cc', 55 'silf.cc', 56 'sill.cc', 57 'stat.cc', 58 'variations.cc', 59 'vdmx.cc', 60 'vhea.cc', 61 'vorg.cc', 62 'vvar.cc', 63 ] 64 65 # We allow warnings for third-party code that can be updated from upstream. 66 AllowCompilerWarnings() 67 68 FINAL_LIBRARY = 'xul' 69 70 DEFINES['PACKAGE_VERSION'] = '"moz"' 71 DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"' 72 DEFINES['OTS_GRAPHITE'] = 1 73 DEFINES['OTS_VARIATIONS'] = 1 74 DEFINES['OTS_SYNTHESIZE_MISSING_GVAR'] = 1 75 76 USE_LIBS += [ 77 'brotli', 78 'woff2', 79 ] 80 81 LOCAL_INCLUDES += [ 82 '!/security/rlbox', 83 '/modules/woff2/src', 84 ]