Bug 1011562 - Ship Firefox OS fonts with the simulator. r=fabrice, r=mshal

This commit is contained in:
Jan Keromnes 2014-10-21 12:34:00 -04:00
parent af5c26e576
commit a031765db2
3 changed files with 21 additions and 0 deletions

View File

@ -20,6 +20,14 @@ INSTALL_TARGETS += UA_UPDATE
# Make sure the standalone glue doesn't try to get libxpcom.so from b2g/app.
NSDISTMODE = copy
# Copy the Firefox OS fonts if available
ifdef MOZTTDIR
include $(MOZTTDIR)/fonts.mk
MOZTT_DEST = $(FINAL_TARGET)/fonts
MOZTT_FILES = $(patsubst external/moztt/%,$(MOZTTDIR)/%,$(filter external/moztt/%,$(subst :, ,$(PRODUCT_COPY_FILES))))
INSTALL_TARGETS += MOZTT
endif
include $(topsrcdir)/config/rules.mk
APP_ICON = b2g

View File

@ -886,3 +886,7 @@ bin/components/@DLL_PREFIX@nkgnomevfs@DLL_SUFFIX@
@BINPATH@/gaia/*
@BINPATH@/b2g-bin@BIN_SUFFIX@
#endif
#ifdef PACKAGE_MOZTT
@BINPATH@/fonts/*
#endif

View File

@ -183,6 +183,15 @@ if test -n "$FXOS_SIMULATOR" ; then
AC_SUBST(FXOS_SIMULATOR)
fi
if test -n "$MOZTTDIR" -a ! -d "$MOZTTDIR" ; then
AC_MSG_ERROR([MOZTTDIR '$MOZTTDIR' isn't a valid directory])
fi
AC_SUBST(MOZTTDIR)
if test -n "$MOZTTDIR" ; then
AC_DEFINE(PACKAGE_MOZTT)
fi
MOZ_ARG_WITH_STRING(gonk,
[ --with-gonk=DIR
location of gonk dir],