Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | # This should contain all of the _PUBLIC_HEADERS from files.mk |
michael@0 | 8 | EXPORTS.graphite2 += [ |
michael@0 | 9 | '../include/graphite2/Font.h', |
michael@0 | 10 | '../include/graphite2/Log.h', |
michael@0 | 11 | '../include/graphite2/Segment.h', |
michael@0 | 12 | '../include/graphite2/Types.h', |
michael@0 | 13 | ] |
michael@0 | 14 | |
michael@0 | 15 | if CONFIG['GNU_CC']: |
michael@0 | 16 | UNIFIED_SOURCES += [ |
michael@0 | 17 | 'direct_machine.cpp' |
michael@0 | 18 | ] |
michael@0 | 19 | else: |
michael@0 | 20 | UNIFIED_SOURCES += [ |
michael@0 | 21 | 'call_machine.cpp' |
michael@0 | 22 | ] |
michael@0 | 23 | |
michael@0 | 24 | # This should contain all of the _SOURCES from files.mk, except *_machine.cpp |
michael@0 | 25 | UNIFIED_SOURCES += [ |
michael@0 | 26 | 'Bidi.cpp', |
michael@0 | 27 | 'CachedFace.cpp', |
michael@0 | 28 | 'CmapCache.cpp', |
michael@0 | 29 | 'Code.cpp', |
michael@0 | 30 | 'Face.cpp', |
michael@0 | 31 | 'FeatureMap.cpp', |
michael@0 | 32 | 'FileFace.cpp', |
michael@0 | 33 | 'Font.cpp', |
michael@0 | 34 | 'GlyphCache.cpp', |
michael@0 | 35 | 'GlyphFace.cpp', |
michael@0 | 36 | 'gr_char_info.cpp', |
michael@0 | 37 | 'gr_face.cpp', |
michael@0 | 38 | 'gr_features.cpp', |
michael@0 | 39 | 'gr_font.cpp', |
michael@0 | 40 | 'gr_logging.cpp', |
michael@0 | 41 | 'gr_segment.cpp', |
michael@0 | 42 | 'gr_slot.cpp', |
michael@0 | 43 | 'json.cpp', |
michael@0 | 44 | 'Justifier.cpp', |
michael@0 | 45 | 'NameTable.cpp', |
michael@0 | 46 | 'Pass.cpp', |
michael@0 | 47 | 'SegCache.cpp', |
michael@0 | 48 | 'SegCacheEntry.cpp', |
michael@0 | 49 | 'SegCacheStore.cpp', |
michael@0 | 50 | 'Segment.cpp', |
michael@0 | 51 | 'Silf.cpp', |
michael@0 | 52 | 'Slot.cpp', |
michael@0 | 53 | 'Sparse.cpp', |
michael@0 | 54 | 'TtfUtil.cpp', |
michael@0 | 55 | 'UtfCodec.cpp', |
michael@0 | 56 | ] |
michael@0 | 57 | |
michael@0 | 58 | MSVC_ENABLE_PGO = True |
michael@0 | 59 | |
michael@0 | 60 | if CONFIG['GKMEDIAS_SHARED_LIBRARY']: |
michael@0 | 61 | NO_VISIBILITY_FLAGS = True |
michael@0 | 62 | DEFINES['GRAPHITE2_EXPORTING'] = True |
michael@0 | 63 | else: |
michael@0 | 64 | # tell graphite2 not to export symbols, we'll be linking it directly with |
michael@0 | 65 | # thebes |
michael@0 | 66 | DEFINES['GRAPHITE2_STATIC'] = True |
michael@0 | 67 | |
michael@0 | 68 | FINAL_LIBRARY = 'gkmedias' |
michael@0 | 69 | |
michael@0 | 70 | DEFINES['PACKAGE_VERSION'] = '"moz"' |
michael@0 | 71 | DEFINES['PACKAGE_BUGREPORT'] = '"http://bugzilla.mozilla.org/"' |
michael@0 | 72 | |
michael@0 | 73 | # disable features we don't need in the graphite2 code, to reduce code size |
michael@0 | 74 | for var in ('GRAPHITE2_NFILEFACE', 'GRAPHITE2_NTRACING', 'GRAPHITE2_NSEGCACHE'): |
michael@0 | 75 | DEFINES[var] = True |
michael@0 | 76 | |
michael@0 | 77 | # provide a custom header that overrides malloc() and friends, |
michael@0 | 78 | # to ensure safe OOM handling |
michael@0 | 79 | DEFINES['GRAPHITE2_CUSTOM_HEADER'] = '"MozGrMalloc.h"' |