mobile/android/installer/Makefile.in
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Fri, 05 Mar 2021 19:00:18 +0000
changeset 635466 8de0bcd695eb843bfdf551ed86bccd612fbfba72
parent 611121 ea3bb0de40b3d45814585d80f578153d0281ff1a
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump cy -> 7c9ee1d240d733756ac1d57db603bb7ce1b31ac8 de -> fc79f430a1a2bbeaf5fc5e7c6007584eef4814d8 dsb -> c62b593074d828a01e14a10b7d5400f8161b684e en-GB -> 11251d0bee34b3970506646dab241af73caaf3ff es-AR -> 840ecc44aa14aa1f3c51e8307ecfdd9016fee53c fa -> 9122ab2a8c096c8e5d4aeb9792e13fe77812e5dc gn -> 54e05d70d159b502a983a22ef77a6e22f5a9c1d2 hsb -> 49797cdb8e1f9775bada8e2d85c3a098633aa5b0 ia -> f973e894eedb3c9f692632377c064cacd3a56165 it -> e80120436229ce8febc8ef5801bea5311a87d941 kab -> 42c13f4608f8c7a917d7abcdf36fc9da12c70e8c kk -> 54b061ce346c3cdaa9df23a5c2b1a2f5a5e9cd2a ko -> b312d7a036bd8b8716c4bb7ebd21369827bd2e18 nl -> 10ca045e001682fb7cf69c16beac98051209c893 oc -> 2e25e1e9273ec907071d3afee44d00ca35dc0617 rm -> 7f4d395a08e74859ff0fb947249dd7536f2a91a7 sv-SE -> 583d2dbb8fe04eafc5b4e927823736ecd07620ee tr -> 50700d3abdf3d019c54cd93f1f0af7bd7648e6b0 uk -> f88cf7af88a9d1962f11f073c406486cbb3bfe38 zh-CN -> 59df069c5736df81677f3988278f754b178eafd3

# 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/.

STANDALONE_MAKEFILE := 1

# overwrite mobile-l10n.js with a matchOS=true one for multi-locale builds
ifeq ($(AB_CD),multi)
L10N_PREF_JS_EXPORTS = $(srcdir)/mobile-l10n.js
L10N_PREF_JS_EXPORTS_PATH = $(FINAL_TARGET)/$(PREF_DIR)
L10N_PREF_JS_EXPORTS_FLAGS = $(PREF_PPFLAGS) --silence-missing-directive-warnings
PP_TARGETS += L10N_PREF_JS_EXPORTS
endif

include $(topsrcdir)/config/rules.mk

MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in

MOZ_PKG_MANIFEST = $(srcdir)/package-manifest.in
MOZ_PKG_DUPEFLAGS = -f $(srcdir)/allowed-dupes.mn

DEFINES += -DPKG_LOCALE_MANIFEST=$(topobjdir)/mobile/android/installer/locale-manifest.in
MOZ_CHROME_LOCALE_ENTRIES=@BINPATH@/chrome/

DEFINES += \
  -DMOZ_APP_NAME=$(MOZ_APP_NAME) \
  -DPREF_DIR=$(PREF_DIR) \
  -DJAREXT= \
  -DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME) \
  -DANDROID_CPU_ARCH=$(ANDROID_CPU_ARCH) \
  $(NULL)

ifdef MOZ_DEBUG
DEFINES += -DMOZ_DEBUG=1
endif

ifdef MOZ_ANDROID_EXCLUDE_FONTS
DEFINES += -DMOZ_ANDROID_EXCLUDE_FONTS=1
endif

ifdef MOZ_ARTIFACT_BUILDS
DEFINES += -DMOZ_ARTIFACT_BUILDS=1
endif

MOZ_PKG_DIR = geckoview

ifdef MOZ_ANDROID_FAT_AAR_ARCHITECTURES
DEFINES += -DMOZ_ANDROID_FAT_AAR_ARCHITECTURES=1
endif

MOZ_PACKAGER_MINIFY=1

include $(topsrcdir)/toolkit/mozapps/installer/packager.mk

# Note that JS_BINARY can be defined in packager.mk, so this test must come
# after including that file. MOZ_PACKAGER_MINIFY_JS is used in packager.mk, but
# since recipe evaluation is deferred, we can set it here after the inclusion.
ifneq (,$(JS_BINARY))
ifndef MOZ_DEBUG
ifndef NIGHTLY_BUILD
ifndef FENNEC_NIGHTLY
MOZ_PACKAGER_MINIFY_JS=1
endif
endif
endif
endif

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)

ifdef ENABLE_MARIONETTE
DEFINES += -DENABLE_MARIONETTE=1
endif

ifdef MOZ_CLANG_RT_ASAN_LIB_PATH
DEFINES += -DMOZ_CLANG_RT_ASAN_LIB=$(notdir $(MOZ_CLANG_RT_ASAN_LIB_PATH))
endif