Bug 1833854 - Part 2: Common up GCSchedulingTunables invariant checks r=sfink
[gecko.git] / mobile / android / moz.build
blob689ec829338b2b8be8dacf286de286badbd2f4ee
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"]
11 with Files("geckoview_example/**"):
12     BUG_COMPONENT = ("GeckoView", "GeckoViewExample")
14 # The recursive make backend treats the first output specially: it's passed as
15 # an open FileAvoidWrite to the invoked script.  That doesn't work well with
16 # the Gradle task that generates all of the outputs, so we add a dummy first
17 # output.
18 t = ("android_apks",)
20 GENERATED_FILES += [t]
21 GENERATED_FILES[t].force = True
22 GENERATED_FILES[t].script = "/mobile/android/gradle.py:assemble_app"
24 # The Android APKs are assembled in the `export` tier, which usually occurs
25 # before the following files are generated. However, mechanisms in `recurse.mk`
26 # are used to pull the generated files into the `pre-export` tier, so do not
27 # require an explicit dependency here.
28 config_keys = (
29     "MOZ_ANDROID_CONTENT_SERVICE_COUNT",
30     "MOZ_ANDROID_CONTENT_SERVICE_ISOLATED_PROCESS",
32 flags = ["%s=%s" % (k, CONFIG[k] if CONFIG[k] else "") for k in config_keys]
34 GeneratedFile(
35     ("geckoview/src/main/AndroidManifest_overlay.xml",),
36     script="gen_from_jinja.py",
37     inputs=["geckoview/src/main/AndroidManifest_overlay.jinja"],
38     flags=flags,
41 GeneratedFile(
42     (
43         "geckoview/src/main/java/org/mozilla/gecko/process/GeckoChildProcessServices.java",
44     ),
45     script="gen_from_jinja.py",
46     inputs=[
47         "geckoview/src/main/java/org/mozilla/gecko/process/GeckoChildProcessServices.jinja"
48     ],
49     flags=flags,
52 GeneratedFile(
53     ("geckoview/src/main/java/org/mozilla/gecko/util/XPCOMError.java",),
54     script="/xpcom/base/ErrorList.py",
55     entry_point="gen_jinja",
56     inputs=["geckoview/src/main/java/org/mozilla/gecko/util/XPCOMError.jinja"],
59 CONFIGURE_SUBST_FILES += ["installer/Makefile"]
61 DIRS += [
62     "../locales",
63     "locales",
66 DIRS += [
67     "actors",
68     "chrome",
69     "components",
70     "modules",
71     "themes/geckoview",
72     "geckoview/src/androidTest/assets",
73     "app",
74     "fonts",
77 TEST_HARNESS_FILES.testing.mochitest.tests.junit += [
78     "geckoview/src/androidTest/assets/www/forms_iframe.html",
79     "geckoview/src/androidTest/assets/www/forms_xorigin.html",
80     "geckoview/src/androidTest/assets/www/hello.html",
81     "geckoview/src/androidTest/assets/www/hsts_header.sjs",
82     "geckoview/src/androidTest/assets/www/iframe_http_only.html",
83     "geckoview/src/androidTest/assets/www/simple_redirect.sjs",
84     "geckoview/src/androidTest/assets/www/update_manifest.json",
87 SPHINX_TREES["/mobile/android"] = "docs"
89 with Files("docs/**"):
90     SCHEDULES.exclusive = ["docs"]