Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / mobile / android / app / moz.build
blob631f18939af055d3b478bf42a1023c7e9fa32285
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/.
7 with Files("**"):
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"]] += [
23         "geckoview-prefs.js",
24     ]
25 else:
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(
29                 arch=arch
30             ),
31         ]
33 if CONFIG["MOZ_ANDROID_GOOGLE_VR"]:
34     FINAL_TARGET_FILES += [
35         "/" + CONFIG["MOZ_ANDROID_GOOGLE_VR_LIBS"] + "libgvr.so",
36     ]