DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (31ec81b5d7bb)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 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/.

# parameters for the Graphite2 files.mk fragment
_NS =
_BASE = $(srcdir)/..
ifdef GNU_CC
_MACHINE = direct
else
_MACHINE = call
endif

# get the lists of source files and exported headers
include $(srcdir)/files.mk

# on Windows, we're going to link graphite with gkmedias instead of libxul
ifeq (WINNT,$(OS_TARGET))
VISIBILITY_FLAGS =
FORCE_STATIC_LIB = 1
endif

ifeq (WINNT,$(OS_TARGET))
DEFINES += -DGRAPHITE2_EXPORTING
else
# tell graphite2 not to export symbols, we'll be linking it directly with thebes
DEFINES += -DGRAPHITE2_STATIC
endif

include $(topsrcdir)/config/rules.mk

DEFINES += -DPACKAGE_VERSION="\"moz\""
DEFINES += -DPACKAGE_BUGREPORT="\"http://bugzilla.mozilla.org/\""

# disable features we don't need in the graphite2 code, to reduce code size
DEFINES += -DGRAPHITE2_NFILEFACE -DGRAPHITE2_NTRACING -DGRAPHITE2_NSEGCACHE

# provide a custom header that overrides malloc() and friends,
# to ensure safe OOM handling
DEFINES += -DGRAPHITE2_CUSTOM_HEADER="\"MozGrMalloc.h\""