1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/graphite2/src/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,79 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +# This should contain all of the _PUBLIC_HEADERS from files.mk 1.11 +EXPORTS.graphite2 += [ 1.12 + '../include/graphite2/Font.h', 1.13 + '../include/graphite2/Log.h', 1.14 + '../include/graphite2/Segment.h', 1.15 + '../include/graphite2/Types.h', 1.16 +] 1.17 + 1.18 +if CONFIG['GNU_CC']: 1.19 + UNIFIED_SOURCES += [ 1.20 + 'direct_machine.cpp' 1.21 + ] 1.22 +else: 1.23 + UNIFIED_SOURCES += [ 1.24 + 'call_machine.cpp' 1.25 + ] 1.26 + 1.27 +# This should contain all of the _SOURCES from files.mk, except *_machine.cpp 1.28 +UNIFIED_SOURCES += [ 1.29 + 'Bidi.cpp', 1.30 + 'CachedFace.cpp', 1.31 + 'CmapCache.cpp', 1.32 + 'Code.cpp', 1.33 + 'Face.cpp', 1.34 + 'FeatureMap.cpp', 1.35 + 'FileFace.cpp', 1.36 + 'Font.cpp', 1.37 + 'GlyphCache.cpp', 1.38 + 'GlyphFace.cpp', 1.39 + 'gr_char_info.cpp', 1.40 + 'gr_face.cpp', 1.41 + 'gr_features.cpp', 1.42 + 'gr_font.cpp', 1.43 + 'gr_logging.cpp', 1.44 + 'gr_segment.cpp', 1.45 + 'gr_slot.cpp', 1.46 + 'json.cpp', 1.47 + 'Justifier.cpp', 1.48 + 'NameTable.cpp', 1.49 + 'Pass.cpp', 1.50 + 'SegCache.cpp', 1.51 + 'SegCacheEntry.cpp', 1.52 + 'SegCacheStore.cpp', 1.53 + 'Segment.cpp', 1.54 + 'Silf.cpp', 1.55 + 'Slot.cpp', 1.56 + 'Sparse.cpp', 1.57 + 'TtfUtil.cpp', 1.58 + 'UtfCodec.cpp', 1.59 +] 1.60 + 1.61 +MSVC_ENABLE_PGO = True 1.62 + 1.63 +if CONFIG['GKMEDIAS_SHARED_LIBRARY']: 1.64 + NO_VISIBILITY_FLAGS = True 1.65 + DEFINES['GRAPHITE2_EXPORTING'] = True 1.66 +else: 1.67 + # tell graphite2 not to export symbols, we'll be linking it directly with 1.68 + # thebes 1.69 + DEFINES['GRAPHITE2_STATIC'] = True 1.70 + 1.71 +FINAL_LIBRARY = 'gkmedias' 1.72 + 1.73 +DEFINES['PACKAGE_VERSION'] = '"moz"' 1.74 +DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"' 1.75 + 1.76 +# disable features we don't need in the graphite2 code, to reduce code size 1.77 +for var in ('GRAPHITE2_NFILEFACE', 'GRAPHITE2_NTRACING', 'GRAPHITE2_NSEGCACHE'): 1.78 + DEFINES[var] = True 1.79 + 1.80 +# provide a custom header that overrides malloc() and friends, 1.81 +# to ensure safe OOM handling 1.82 +DEFINES['GRAPHITE2_CUSTOM_HEADER'] = '"MozGrMalloc.h"'