Bug 1891710: part 2) Enable <Element-outerHTML.html> WPT for Trusted Types. r=smaug
[gecko.git] / mobile / android / moz.build
blob48d52d9bffaf30f7d61a5fc565c0982c5edba638
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")
9     SCHEDULES.exclusive = ["android", "fenix", "focus-android"]
11 with Files("geckoview_example/**"):
12     BUG_COMPONENT = ("GeckoView", "GeckoViewExample")
14 with Files("fenix/**"):
15     BUG_COMPONENT = ("Fenix", "General")
16     SCHEDULES.exclusive = ["android", "fenix"]
18 with Files("focus-android/**"):
19     BUG_COMPONENT = ("Focus", "General")
20     SCHEDULES.exclusive = ["android", "focus-android"]
22 with Files("android-components/**"):
23     BUG_COMPONENT = ("Fenix", "General")
25 # The recursive make backend treats the first output specially: it's passed as
26 # an open FileAvoidWrite to the invoked script.  That doesn't work well with
27 # the Gradle task that generates all of the outputs, so we add a dummy first
28 # output.
29 t = ("android_apks",)
31 GENERATED_FILES += [t]
32 GENERATED_FILES[t].force = True
33 GENERATED_FILES[t].script = "/mobile/android/gradle.py:assemble_app"
35 # The Android APKs are assembled in the `export` tier, which usually occurs
36 # before the following files are generated. However, mechanisms in `recurse.mk`
37 # are used to pull the generated files into the `pre-export` tier, so do not
38 # require an explicit dependency here.
39 config_keys = (
40     "MOZ_ANDROID_CONTENT_SERVICE_COUNT",
41     "MOZ_ANDROID_CONTENT_SERVICE_ISOLATED_PROCESS",
43 flags = ["%s=%s" % (k, CONFIG[k] if CONFIG[k] else "") for k in config_keys]
45 GeneratedFile(
46     ("geckoview/src/main/AndroidManifest_overlay.xml",),
47     script="gen_from_jinja.py",
48     inputs=["geckoview/src/main/AndroidManifest_overlay.jinja"],
49     flags=flags,
52 GeneratedFile(
53     (
54         "geckoview/src/main/java/org/mozilla/gecko/process/GeckoChildProcessServices.java",
55     ),
56     script="gen_from_jinja.py",
57     inputs=[
58         "geckoview/src/main/java/org/mozilla/gecko/process/GeckoChildProcessServices.jinja"
59     ],
60     flags=flags,
63 GeneratedFile(
64     ("geckoview/src/main/java/org/mozilla/gecko/util/XPCOMError.java",),
65     script="/xpcom/base/ErrorList.py",
66     entry_point="gen_jinja",
67     inputs=["geckoview/src/main/java/org/mozilla/gecko/util/XPCOMError.jinja"],
70 CONFIGURE_SUBST_FILES += ["installer/Makefile"]
72 DIRS += [
73     "../locales",
74     "locales",
77 DIRS += [
78     "actors",
79     "chrome",
80     "components",
81     "modules",
82     "themes/geckoview",
83     "geckoview/src/androidTest/assets",
84     "app",
85     "fonts",
88 TEST_HARNESS_FILES.testing.mochitest.tests.junit += [
89     "geckoview/src/androidTest/assets/www/forms_iframe.html",
90     "geckoview/src/androidTest/assets/www/forms_xorigin.html",
91     "geckoview/src/androidTest/assets/www/hello.html",
92     "geckoview/src/androidTest/assets/www/hsts_header.sjs",
93     "geckoview/src/androidTest/assets/www/iframe_http_only.html",
94     "geckoview/src/androidTest/assets/www/simple_redirect.sjs",
95     "geckoview/src/androidTest/assets/www/update_manifest.json",
98 SPHINX_TREES["/mobile/android"] = "docs"
99 SPHINX_TREES["/mobile/android/fenix"] = "fenix/docs"
100 SPHINX_TREES["/mobile/android/focus-android"] = "focus-android/docs"
102 with Files("docs/**"):
103     SCHEDULES.exclusive = ["docs"]