b2g/installer/Makefile.in

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 STANDALONE_MAKEFILE := 1
michael@0 6
michael@0 7 include $(topsrcdir)/config/rules.mk
michael@0 8
michael@0 9 MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in
michael@0 10
michael@0 11 MOZ_PKG_MANIFEST_P = $(srcdir)/package-manifest.in
michael@0 12
michael@0 13 DEFINES += \
michael@0 14 -DAB_CD=$(AB_CD) \
michael@0 15 -DMOZ_APP_NAME=$(MOZ_APP_NAME) \
michael@0 16 -DPREF_DIR=$(PREF_DIR) \
michael@0 17 $(NULL)
michael@0 18
michael@0 19 DEFINES += -DJAREXT=
michael@0 20
michael@0 21 DEFINES += -DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME)
michael@0 22
michael@0 23 # Set MSVC dlls version to package, if any.
michael@0 24 ifdef WIN32_REDIST_DIR
michael@0 25 DEFINES += -DMOZ_MSVC_REDIST=$(_MSC_VER)
michael@0 26 endif
michael@0 27
michael@0 28 ifdef ENABLE_MARIONETTE
michael@0 29 DEFINES += -DENABLE_MARIONETTE=1
michael@0 30 endif
michael@0 31
michael@0 32 ifdef MOZ_PKG_MANIFEST_P
michael@0 33 MOZ_PKG_MANIFEST = package-manifest
michael@0 34 endif
michael@0 35
michael@0 36 MOZ_PACKAGER_MINIFY=1
michael@0 37
michael@0 38 include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
michael@0 39
michael@0 40 # Note that JS_BINARY can be defined in packager.mk, so this test must come after
michael@0 41 # including that file. MOZ_PACKAGER_MINIFY_JS is used in packager.mk, but since
michael@0 42 # recipe evaluation is deferred, we can set it here after the inclusion.
michael@0 43 ifneq (,$(JS_BINARY))
michael@0 44 MOZ_PACKAGER_MINIFY_JS=1
michael@0 45 endif
michael@0 46
michael@0 47 ifeq (bundle, $(MOZ_FS_LAYOUT))
michael@0 48 BINPATH = $(_BINPATH)
michael@0 49 DEFINES += -DAPPNAME=$(_APPNAME)
michael@0 50 else
michael@0 51 # Every other platform just winds up in dist/bin
michael@0 52 BINPATH = bin
michael@0 53 endif
michael@0 54 DEFINES += -DBINPATH=$(BINPATH)
michael@0 55
michael@0 56 ifneq (,$(filter WINNT Darwin Android,$(OS_TARGET)))
michael@0 57 DEFINES += -DMOZ_SHARED_MOZGLUE=1
michael@0 58 endif
michael@0 59
michael@0 60 ifneq (,$(filter rtsp,$(NECKO_PROTOCOLS)))
michael@0 61 DEFINES += -DMOZ_RTSP
michael@0 62 endif
michael@0 63
michael@0 64 ifdef GKMEDIAS_SHARED_LIBRARY
michael@0 65 DEFINES += -DGKMEDIAS_SHARED_LIBRARY
michael@0 66 endif
michael@0 67
michael@0 68 ifdef MOZ_PKG_MANIFEST_P
michael@0 69 $(MOZ_PKG_MANIFEST): $(MOZ_PKG_MANIFEST_P) FORCE
michael@0 70 $(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) $< -o $@)
michael@0 71 ifdef MOZ_CHROME_MULTILOCALE
michael@0 72 printf '\n[multilocale]\n' >> $@
michael@0 73 for LOCALE in $(MOZ_CHROME_MULTILOCALE) ;\
michael@0 74 do \
michael@0 75 printf '$(BINPATH)/chrome/'"$$LOCALE"'$(JAREXT)\n' >> $@; \
michael@0 76 printf '$(BINPATH)/chrome/'"$$LOCALE"'.manifest\n' >> $@; \
michael@0 77 done
michael@0 78 endif
michael@0 79
michael@0 80 GARBAGE += $(MOZ_PKG_MANIFEST)
michael@0 81 endif
michael@0 82
michael@0 83 ifdef FXOS_SIMULATOR
michael@0 84 .PHONY: simulator
michael@0 85 simulator: make-package
michael@0 86 @echo 'Building simulator addon...'
michael@0 87 $(PYTHON) $(topsrcdir)/b2g/simulator/build_xpi.py $(MOZ_PKG_PLATFORM)
michael@0 88
michael@0 89 default:: simulator
michael@0 90
michael@0 91 # Ensure copying Simulator xpi to ftp
michael@0 92 UPLOAD_EXTRA_FILES += fxos-simulator-*-*.xpi
michael@0 93 endif

mercurial