Bug 1880704 - Crop more PDF rendering and wait differently for rendering r=mboldan
[gecko.git] / toolkit / toolkit.mozbuild
blobb697eb1e3b02b0ffcc95a6e492dc23eb888488cc
1 # -*- Mode: python; c-basic-offset: 4; 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 include("/js/app.mozbuild")
9 PYTHON_UNITTEST_MANIFESTS += [
10     "/layout/tools/reftest/selftest/python.toml",
11     "/testing/condprofile/condprof/tests/python.toml",
12     "/testing/marionette/harness/marionette_harness/tests/harness_unit/python.toml",
13     "/testing/mochitest/tests/python/python.toml",
14     "/testing/raptor/test/python.toml",
15     "/testing/talos/talos/unittests/python.toml",
18 DIRS += [
19     "/tools",
20     "/xpcom/xpidl",
23 if CONFIG["COMPILE_ENVIRONMENT"]:
24     DIRS += [
25         "/config/external",
26         "/security",
27     ]
29 if CONFIG["ENABLE_TESTS"]:
30     DIRS += [
31         "/toolkit/library/gtest/rust",
32     ]
34 if not CONFIG["MOZ_OVERRIDE_GKRUST"]:
35     DIRS += [
36         "/toolkit/library/rust",
37     ]
39 if CONFIG["MOZ_SANDBOX"]:
40     DIRS += ["/security/sandbox"]
42 if CONFIG["MOZ_USING_WASM_SANDBOXING"] and CONFIG["COMPILE_ENVIRONMENT"]:
43     DIRS += ["/security/rlbox"]
45 # the signing related bits of libmar depend on nss
46 if CONFIG["MOZ_UPDATER"]:
47     DIRS += ["/modules/libmar"]
49 DIRS += [
50     "/config/external/freetype2",
51     "/xpcom",
52     "/modules/libpref",
53     "/intl",
54     "/netwerk",
57 if CONFIG["MOZ_AUTH_EXTENSION"]:
58     DIRS += ["/extensions/auth"]
60 if CONFIG["MOZ_UPDATER"] and CONFIG["OS_TARGET"] != "Android":
61     DIRS += [
62         "/toolkit/mozapps/update/updater/bspatch",
63         "/other-licenses/bsdiff",
64     ]
66 # Gecko/Core components.
68 DIRS += [
69     "/ipc",
70     "/hal",
71     "/js/loader",
72     "/js/xpconnect",
73     "/modules/libjar",
74     "/storage",
77 if CONFIG["COMPILE_ENVIRONMENT"]:
78     DIRS += [
79         "/media/libyuv",
80     ]
82 DIRS += [
83     "/extensions/permissions",
86 if CONFIG["MOZ_WEBRTC"] and CONFIG["COMPILE_ENVIRONMENT"]:
87     DIRS += [
88         "/media/webrtc",
89         "/dom/media/webrtc/transport",
90     ]
92 if CONFIG["ENABLE_TESTS"]:
93     DIRS += ["/testing/specialpowers"]
95 DIRS += [
96     "/testing/gtest",
97     "/uriloader",
98     "/caps",
99     "/parser",
100     "/gfx",
101     "/image",
102     "/dom",
103     "/view",
104     "/widget",
105     "/editor",
106     "/layout",
107     "/docshell",
108     "/xpfe/appshell",
111 if CONFIG["MOZ_UNIVERSALCHARDET"]:
112     DIRS += ["/extensions/universalchardet"]
114 if CONFIG["ACCESSIBILITY"]:
115     DIRS += ["/accessible"]
116 else:
117     DIRS += ["/accessible/ipc"]
119 # toolkit
121 # This must precede xpfe.
122 if CONFIG["MOZ_JPROF"]:
123     DIRS += ["/tools/jprof"]
125 DIRS += [
126     "/tools/code-coverage",
127     "/tools/performance",
128     "/tools/power",
129     "/tools/profiler",
130     "/extensions/spellcheck",
131     "/security/certverifier",
132     "/security/manager",
133     "/toolkit",
136 if CONFIG["MOZ_PREF_EXTENSIONS"]:
137     DIRS += ["/extensions/pref"]
139 DIRS += [
140     "/devtools",
141     "/toolkit/library",
142     "/services",
143     "/startupcache",
144     "/other-licenses/snappy",
147 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
148     DIRS += [
149         "/media/mozva",
150         "/toolkit/system/gnome",
151     ]
153 if CONFIG["ENABLE_WEBDRIVER"]:
154     DIRS += [
155         "/remote",
156         "/testing/firefox-ui",
157         "/testing/marionette",
158         "/toolkit/components/telemetry/tests/marionette",
159     ]
161 if (
162     CONFIG["MOZ_GECKODRIVER"]
163     and not CONFIG["MOZ_TSAN"]
164     and not CONFIG["FUZZING_INTERFACES"]
166     DIRS += ["/testing/geckodriver"]
168 DIRS += [
169     "/media/gmp-clearkey/0.1",
172 if CONFIG["MOZ_WMF_CDM"] and CONFIG["ENABLE_TESTS"]:
173     DIRS += [
174         "/media/wmf-clearkey",
175     ]
177 if CONFIG["ENABLE_TESTS"]:
178     DIRS += [
179         "/testing/mochitest",
180         "/testing/xpcshell",
181         "/testing/tools/minidumpwriter",
182         "/testing/tools/screenshot",
183         "/testing/profiles",
184         "/testing/modules",
185         "/testing/runtimes",
186         "/testing/web-platform",
187         "/testing/extensions",
188     ]
190     if CONFIG["MOZ_MEMORY"]:
191         DIRS += ["/memory/gtest"]
193     if CONFIG["MOZ_WEBRTC"]:
194         DIRS += [
195             "/dom/media/webrtc/transport/test",
196         ]
198 if CONFIG["FUZZING"]:
199     DIRS += ["/tools/fuzzing"]