tor-browser

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

moz.build (3880B)


      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     SCHEDULES.exclusive = ["android", "fenix", "focus-android"]
     10 
     11 with Files("geckoview_example/**"):
     12     BUG_COMPONENT = ("GeckoView", "GeckoViewExample")
     13 
     14 with Files("fenix/**"):
     15     BUG_COMPONENT = ("Firefox for Android", "General")
     16     SCHEDULES.exclusive = ["android", "fenix"]
     17 
     18 with Files("focus-android/**"):
     19     BUG_COMPONENT = ("Focus", "General")
     20     SCHEDULES.exclusive = ["android", "focus-android"]
     21 
     22 with Files("android-components/**"):
     23     BUG_COMPONENT = ("Firefox for Android", "General")
     24 
     25 # The Android APKs are assembled in the `export` tier, which usually occurs
     26 # before the following files are generated. However, mechanisms in `recurse.mk`
     27 # are used to pull the generated files into the `pre-export` tier, so do not
     28 # require an explicit dependency here.
     29 config_keys = (
     30     "MOZ_ANDROID_CONTENT_SERVICE_COUNT",
     31     "MOZ_ANDROID_CONTENT_SERVICE_ISOLATED_PROCESS",
     32 )
     33 flags = ["%s=%s" % (k, CONFIG[k] if CONFIG[k] else "") for k in config_keys]
     34 
     35 GeneratedFile(
     36     ("geckoview/src/main/AndroidManifest_overlay.xml",),
     37     script="gen_from_jinja.py",
     38     inputs=["geckoview/src/main/AndroidManifest_overlay.jinja"],
     39     flags=flags,
     40 )
     41 
     42 GeneratedFile(
     43     (
     44         "geckoview/src/main/java/org/mozilla/gecko/process/GeckoChildProcessServices.java",
     45     ),
     46     script="gen_from_jinja.py",
     47     inputs=[
     48         "geckoview/src/main/java/org/mozilla/gecko/process/GeckoChildProcessServices.jinja"
     49     ],
     50     flags=flags,
     51 )
     52 
     53 GeneratedFile(
     54     ("geckoview/src/main/java/org/mozilla/gecko/util/XPCOMError.java",),
     55     script="/xpcom/base/ErrorList.py",
     56     entry_point="gen_jinja",
     57     inputs=["geckoview/src/main/java/org/mozilla/gecko/util/XPCOMError.jinja"],
     58 )
     59 
     60 GeneratedFile(
     61     "geckoview/src/main/java/org/mozilla/geckoview/CrashReport.java",
     62     script="/toolkit/crashreporter/annotations/generate.py",
     63     inputs=["!/toolkit/crashreporter/annotations/validated.yaml"],
     64 )
     65 
     66 GeneratedFile(
     67     "android-components/components/lib/crash/src/main/java/mozilla/components/lib/crash/service/CrashReport.kt",
     68     script="/toolkit/crashreporter/annotations/generate.py",
     69     inputs=["!/toolkit/crashreporter/annotations/validated.yaml"],
     70 )
     71 
     72 CONFIGURE_SUBST_FILES += ["installer/Makefile"]
     73 
     74 DIRS += [
     75     "../locales",
     76     "locales",
     77 ]
     78 
     79 DIRS += [
     80     "../shared",
     81     "components",
     82     "modules",
     83     "themes/geckoview",
     84     "geckoview/src/androidTest/assets",
     85     "app",
     86     "fonts",
     87 ]
     88 
     89 TEST_HARNESS_FILES.testing.mochitest.tests.junit += [
     90     "geckoview/src/androidTest/assets/www/forms_iframe.html",
     91     "geckoview/src/androidTest/assets/www/forms_xorigin.html",
     92     "geckoview/src/androidTest/assets/www/framebusting_child.html",
     93     "geckoview/src/androidTest/assets/www/framebusting_parent.html",
     94     "geckoview/src/androidTest/assets/www/hello.html",
     95     "geckoview/src/androidTest/assets/www/hsts_header.sjs",
     96     "geckoview/src/androidTest/assets/www/iframe_http_only.html",
     97     "geckoview/src/androidTest/assets/www/simple_redirect.sjs",
     98     "geckoview/src/androidTest/assets/www/update_manifest.json",
     99     "geckoview/src/androidTest/assets/www/worker/open_window.html",
    100     "geckoview/src/androidTest/assets/www/worker/open_window.js",
    101     "geckoview/src/androidTest/assets/www/worker/open_window_target.html",
    102     "geckoview/src/androidTest/assets/www/worker/service-worker.js",
    103 ]
    104 
    105 SPHINX_TREES["/mobile/android"] = "docs"
    106 SPHINX_TREES["/mobile/android/fenix"] = "fenix/docs"
    107 SPHINX_TREES["/mobile/android/focus-android"] = "focus-android/docs"
    108 
    109 with Files("docs/**"):
    110     SCHEDULES.exclusive = ["docs"]