1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/b2g/installer/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,93 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +STANDALONE_MAKEFILE := 1 1.9 + 1.10 +include $(topsrcdir)/config/rules.mk 1.11 + 1.12 +MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in 1.13 + 1.14 +MOZ_PKG_MANIFEST_P = $(srcdir)/package-manifest.in 1.15 + 1.16 +DEFINES += \ 1.17 + -DAB_CD=$(AB_CD) \ 1.18 + -DMOZ_APP_NAME=$(MOZ_APP_NAME) \ 1.19 + -DPREF_DIR=$(PREF_DIR) \ 1.20 + $(NULL) 1.21 + 1.22 +DEFINES += -DJAREXT= 1.23 + 1.24 +DEFINES += -DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME) 1.25 + 1.26 +# Set MSVC dlls version to package, if any. 1.27 +ifdef WIN32_REDIST_DIR 1.28 +DEFINES += -DMOZ_MSVC_REDIST=$(_MSC_VER) 1.29 +endif 1.30 + 1.31 +ifdef ENABLE_MARIONETTE 1.32 +DEFINES += -DENABLE_MARIONETTE=1 1.33 +endif 1.34 + 1.35 +ifdef MOZ_PKG_MANIFEST_P 1.36 +MOZ_PKG_MANIFEST = package-manifest 1.37 +endif 1.38 + 1.39 +MOZ_PACKAGER_MINIFY=1 1.40 + 1.41 +include $(topsrcdir)/toolkit/mozapps/installer/packager.mk 1.42 + 1.43 +# Note that JS_BINARY can be defined in packager.mk, so this test must come after 1.44 +# including that file. MOZ_PACKAGER_MINIFY_JS is used in packager.mk, but since 1.45 +# recipe evaluation is deferred, we can set it here after the inclusion. 1.46 +ifneq (,$(JS_BINARY)) 1.47 +MOZ_PACKAGER_MINIFY_JS=1 1.48 +endif 1.49 + 1.50 +ifeq (bundle, $(MOZ_FS_LAYOUT)) 1.51 +BINPATH = $(_BINPATH) 1.52 +DEFINES += -DAPPNAME=$(_APPNAME) 1.53 +else 1.54 +# Every other platform just winds up in dist/bin 1.55 +BINPATH = bin 1.56 +endif 1.57 +DEFINES += -DBINPATH=$(BINPATH) 1.58 + 1.59 +ifneq (,$(filter WINNT Darwin Android,$(OS_TARGET))) 1.60 +DEFINES += -DMOZ_SHARED_MOZGLUE=1 1.61 +endif 1.62 + 1.63 +ifneq (,$(filter rtsp,$(NECKO_PROTOCOLS))) 1.64 +DEFINES += -DMOZ_RTSP 1.65 +endif 1.66 + 1.67 +ifdef GKMEDIAS_SHARED_LIBRARY 1.68 +DEFINES += -DGKMEDIAS_SHARED_LIBRARY 1.69 +endif 1.70 + 1.71 +ifdef MOZ_PKG_MANIFEST_P 1.72 +$(MOZ_PKG_MANIFEST): $(MOZ_PKG_MANIFEST_P) FORCE 1.73 + $(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) $< -o $@) 1.74 +ifdef MOZ_CHROME_MULTILOCALE 1.75 + printf '\n[multilocale]\n' >> $@ 1.76 + for LOCALE in $(MOZ_CHROME_MULTILOCALE) ;\ 1.77 + do \ 1.78 + printf '$(BINPATH)/chrome/'"$$LOCALE"'$(JAREXT)\n' >> $@; \ 1.79 + printf '$(BINPATH)/chrome/'"$$LOCALE"'.manifest\n' >> $@; \ 1.80 + done 1.81 +endif 1.82 + 1.83 +GARBAGE += $(MOZ_PKG_MANIFEST) 1.84 +endif 1.85 + 1.86 +ifdef FXOS_SIMULATOR 1.87 +.PHONY: simulator 1.88 +simulator: make-package 1.89 + @echo 'Building simulator addon...' 1.90 + $(PYTHON) $(topsrcdir)/b2g/simulator/build_xpi.py $(MOZ_PKG_PLATFORM) 1.91 + 1.92 +default:: simulator 1.93 + 1.94 +# Ensure copying Simulator xpi to ftp 1.95 +UPLOAD_EXTRA_FILES += fxos-simulator-*-*.xpi 1.96 +endif