2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2008-04-18 06:41:49 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2010-12-15 12:10:08 -08:00
|
|
|
# overwrite mobile-l10n.js with a matchOS=true one for multi-locale builds
|
|
|
|
ifeq ($(AB_CD),multi)
|
|
|
|
PREF_JS_EXPORTS = $(srcdir)/mobile-l10n.js
|
|
|
|
endif
|
2010-10-19 15:28:10 -07:00
|
|
|
|
2010-12-15 12:10:08 -08:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2008-07-25 16:07:50 -07:00
|
|
|
|
2010-12-15 12:10:08 -08:00
|
|
|
MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in
|
2010-10-19 15:28:10 -07:00
|
|
|
|
2010-12-15 12:10:08 -08:00
|
|
|
MOZ_PKG_MANIFEST_P = $(srcdir)/package-manifest.in
|
|
|
|
|
|
|
|
MOZ_NONLOCALIZED_PKG_LIST = \
|
|
|
|
xpcom \
|
|
|
|
browser \
|
|
|
|
mobile \
|
2008-04-18 06:41:49 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2010-12-15 12:10:19 -08:00
|
|
|
MOZ_LOCALIZED_PKG_LIST = $(AB_CD) multilocale
|
2010-12-15 12:10:08 -08:00
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
-DAB_CD=$(AB_CD) \
|
|
|
|
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
|
|
|
|
-DPREF_DIR=$(PREF_DIR) \
|
2010-10-19 20:33:01 -07:00
|
|
|
$(NULL)
|
2010-10-19 15:28:10 -07:00
|
|
|
|
2013-01-23 02:23:15 -08:00
|
|
|
DEFINES += -DJAREXT=
|
2010-10-19 15:28:10 -07:00
|
|
|
|
2010-12-15 12:10:08 -08:00
|
|
|
include $(topsrcdir)/ipc/app/defs.mk
|
|
|
|
DEFINES += -DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME)
|
2008-04-18 06:41:49 -07:00
|
|
|
|
2011-01-07 07:30:58 -08:00
|
|
|
ifdef MOZ_PKG_MANIFEST_P
|
|
|
|
MOZ_PKG_MANIFEST = package-manifest
|
2010-12-15 12:10:19 -08:00
|
|
|
endif
|
|
|
|
|
2013-01-23 02:23:15 -08:00
|
|
|
MOZ_PACKAGER_MINIFY=1
|
2011-01-07 07:30:58 -08:00
|
|
|
|
|
|
|
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
|
|
|
|
|
2010-12-15 12:10:19 -08:00
|
|
|
ifeq (bundle, $(MOZ_FS_LAYOUT))
|
|
|
|
BINPATH = $(_BINPATH)
|
|
|
|
DEFINES += -DAPPNAME=$(_APPNAME)
|
|
|
|
else
|
|
|
|
# Every other platform just winds up in dist/bin
|
|
|
|
BINPATH = bin
|
|
|
|
endif
|
|
|
|
DEFINES += -DBINPATH=$(BINPATH)
|
|
|
|
|
2012-09-17 20:07:23 -07:00
|
|
|
ifdef ENABLE_MARIONETTE
|
|
|
|
DEFINES += -DENABLE_MARIONETTE=1
|
|
|
|
endif
|
|
|
|
|
2010-12-15 12:10:08 -08:00
|
|
|
ifdef MOZ_PKG_MANIFEST_P
|
2012-05-15 15:06:52 -07:00
|
|
|
$(MOZ_PKG_MANIFEST): $(MOZ_PKG_MANIFEST_P) $(GLOBAL_DEPS)
|
2010-12-15 12:10:08 -08:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $< > $@
|
2010-12-15 12:10:19 -08:00
|
|
|
ifdef MOZ_CHROME_MULTILOCALE
|
|
|
|
printf "\n[multilocale]\n" >> $@
|
2010-12-16 11:53:32 -08:00
|
|
|
for LOCALE in en-US $(MOZ_CHROME_MULTILOCALE) ;\
|
2010-12-15 12:10:19 -08:00
|
|
|
do \
|
|
|
|
printf "$(BINPATH)/chrome/$$LOCALE$(JAREXT)\n" >> $@; \
|
|
|
|
printf "$(BINPATH)/chrome/$$LOCALE.manifest\n" >> $@; \
|
|
|
|
done
|
2010-12-15 12:10:08 -08:00
|
|
|
endif
|
2010-10-19 20:33:01 -07:00
|
|
|
|
2010-12-15 12:10:19 -08:00
|
|
|
GARBAGE += $(MOZ_PKG_MANIFEST)
|
2008-04-18 06:41:49 -07:00
|
|
|
endif
|