tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (1337B)


      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/.
      6 
      7 with Files("**"):
      8     BUG_COMPONENT = ("GeckoView", "General")
      9 
     10 for var in ("APP_NAME", "APP_VERSION"):
     11     DEFINES[var] = CONFIG["MOZ_%s" % var]
     12 
     13 for var in ("MOZ_APP_UA_NAME", "TARGET_CPU"):
     14     DEFINES[var] = CONFIG[var]
     15 
     16 if CONFIG["MOZ_PKG_SPECIAL"]:
     17     DEFINES["MOZ_PKG_SPECIAL"] = CONFIG["MOZ_PKG_SPECIAL"]
     18 
     19 JS_PREFERENCE_PP_FILES += [
     20     "000-tor-browser-android.js",
     21 ]
     22 
     23 if not CONFIG["MOZ_ANDROID_FAT_AAR_ARCHITECTURES"]:
     24     # Equivalent to JS_PREFERENCE_PP_FILES[CONFIG['ANDROID_CPU_ARCH']],
     25     # which isn't supported out of the box.
     26     FINAL_TARGET_PP_FILES.defaults.pref[CONFIG["ANDROID_CPU_ARCH"]] += [
     27         "geckoview-prefs.js",
     28     ]
     29 else:
     30     for arch in CONFIG["MOZ_ANDROID_FAT_AAR_ARCHITECTURES"]:
     31         FINAL_TARGET_FILES.defaults.pref[arch] += [
     32             "!/dist/fat-aar/output/defaults/pref/{arch}/geckoview-prefs.js".format(
     33                 arch=arch
     34             ),
     35         ]
     36 
     37 if CONFIG["MOZ_ANDROID_GOOGLE_VR"]:
     38     FINAL_TARGET_FILES += [
     39         "/" + CONFIG["MOZ_ANDROID_GOOGLE_VR_LIBS"] + "libgvr.so",
     40     ]