1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 BUG_COMPONENT = ("GeckoView", "General")
10 for var in ("APP_NAME", "APP_VERSION"):
11 DEFINES[var] = CONFIG["MOZ_%s" % var]
13 for var in ("MOZ_UPDATER", "MOZ_APP_UA_NAME", "ANDROID_PACKAGE_NAME", "TARGET_CPU"):
14 DEFINES[var] = CONFIG[var]
16 if CONFIG["MOZ_PKG_SPECIAL"]:
17 DEFINES["MOZ_PKG_SPECIAL"] = CONFIG["MOZ_PKG_SPECIAL"]
19 if not CONFIG["MOZ_ANDROID_FAT_AAR_ARCHITECTURES"]:
20 # Equivalent to JS_PREFERENCE_PP_FILES[CONFIG['ANDROID_CPU_ARCH']],
21 # which isn't supported out of the box.
22 FINAL_TARGET_PP_FILES.defaults.pref[CONFIG["ANDROID_CPU_ARCH"]] += [
26 for arch in CONFIG["MOZ_ANDROID_FAT_AAR_ARCHITECTURES"]:
27 FINAL_TARGET_FILES.defaults.pref[arch] += [
28 "!/dist/fat-aar/output/defaults/pref/{arch}/geckoview-prefs.js".format(
33 if CONFIG["MOZ_ANDROID_GOOGLE_VR"]:
34 FINAL_TARGET_FILES += [
35 "/" + CONFIG["MOZ_ANDROID_GOOGLE_VR_LIBS"] + "libgvr.so",