# 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/. DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk # 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 LIBRARY_NAME = mozgraphite2 # on Windows, we're going to link graphite with gkmedias instead of libxul ifeq (WINNT,$(OS_TARGET)) VISIBILITY_FLAGS = else LIBXUL_LIBRARY = 1 endif # MSVC doesn't like the paths in _SOURCES, so strip off the prefix # and leave bare filenames CPPSRCS = $(subst $($(_NS)_BASE)/src/,,$(_SOURCES)) EXPORTS_NAMESPACES = graphite2 EXPORTS_graphite2 = $(_PUBLIC_HEADERS) FORCE_STATIC_LIB = 1 FORCE_USE_PIC = 1 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\""