Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / toolkit / toolkit.mozbuild
blobd9ea1f06e55875cdc93e301ffee2e3838b241513
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     "/js/src/tests/test/python.toml",
11     "/layout/tools/reftest/selftest/python.toml",
12     "/testing/condprofile/condprof/tests/python.toml",
13     "/testing/marionette/harness/marionette_harness/tests/harness_unit/python.toml",
14     "/testing/mochitest/tests/python/python.toml",
15     "/testing/raptor/test/python.toml",
16     "/testing/talos/talos/unittests/python.toml",
19 DIRS += [
20     "/tools",
21     "/xpcom/xpidl",
24 if CONFIG["COMPILE_ENVIRONMENT"]:
25     DIRS += [
26         "/config/external",
27         "/security",
28     ]
30 if CONFIG["ENABLE_TESTS"]:
31     DIRS += [
32         "/toolkit/library/gtest/rust",
33     ]
35 if not CONFIG["MOZ_OVERRIDE_GKRUST"]:
36     DIRS += [
37         "/toolkit/library/rust",
38     ]
40 if CONFIG["MOZ_SANDBOX"]:
41     DIRS += ["/security/sandbox"]
43 if CONFIG["MOZ_USING_WASM_SANDBOXING"] and CONFIG["COMPILE_ENVIRONMENT"]:
44     DIRS += ["/security/rlbox"]
46 # the signing related bits of libmar depend on nss
47 if CONFIG["MOZ_UPDATER"]:
48     DIRS += ["/modules/libmar"]
50 DIRS += [
51     "/config/external/freetype2",
52     "/xpcom",
53     "/modules/libpref",
54     "/intl",
55     "/netwerk",
58 if CONFIG["MOZ_AUTH_EXTENSION"]:
59     DIRS += ["/extensions/auth"]
61 if CONFIG["MOZ_UPDATER"] and CONFIG["OS_TARGET"] != "Android":
62     DIRS += [
63         "/toolkit/mozapps/update/updater/bspatch",
64         "/other-licenses/bsdiff",
65     ]
67 # Gecko/Core components.
69 DIRS += [
70     "/ipc",
71     "/hal",
72     "/js/loader",
73     "/js/xpconnect",
74     "/modules/libjar",
75     "/storage",
78 if CONFIG["COMPILE_ENVIRONMENT"]:
79     DIRS += [
80         "/media/libyuv",
81     ]
83 DIRS += [
84     "/extensions/permissions",
87 if CONFIG["MOZ_WEBRTC"] and CONFIG["COMPILE_ENVIRONMENT"]:
88     DIRS += [
89         "/media/webrtc",
90         "/dom/media/webrtc/transport",
91     ]
93 if CONFIG["ENABLE_TESTS"]:
94     DIRS += ["/testing/specialpowers"]
96 DIRS += [
97     "/testing/gtest",
98     "/uriloader",
99     "/caps",
100     "/parser",
101     "/gfx",
102     "/image",
103     "/dom",
104     "/view",
105     "/widget",
106     "/editor",
107     "/layout",
108     "/docshell",
109     "/xpfe/appshell",
112 if CONFIG["MOZ_UNIVERSALCHARDET"]:
113     DIRS += ["/extensions/universalchardet"]
115 if CONFIG["ACCESSIBILITY"]:
116     DIRS += ["/accessible"]
117 else:
118     DIRS += ["/accessible/ipc"]
120 # toolkit
122 # This must precede xpfe.
123 if CONFIG["MOZ_JPROF"]:
124     DIRS += ["/tools/jprof"]
126 DIRS += [
127     "/tools/code-coverage",
128     "/tools/performance",
129     "/tools/power",
130     "/tools/profiler",
131     "/extensions/spellcheck",
132     "/security/certverifier",
133     "/security/manager",
134     "/toolkit",
137 if CONFIG["MOZ_PREF_EXTENSIONS"]:
138     DIRS += ["/extensions/pref"]
140 DIRS += [
141     "/devtools",
142     "/toolkit/library",
143     "/services",
144     "/startupcache",
145     "/other-licenses/snappy",
148 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
149     DIRS += [
150         "/media/mozva",
151         "/toolkit/system/gnome",
152     ]
154 if CONFIG["ENABLE_WEBDRIVER"]:
155     DIRS += [
156         "/remote",
157         "/testing/firefox-ui",
158         "/testing/marionette",
159         "/toolkit/components/telemetry/tests/marionette",
160     ]
162 if (
163     CONFIG["MOZ_GECKODRIVER"]
164     and not CONFIG["MOZ_TSAN"]
165     and not CONFIG["FUZZING_INTERFACES"]
167     DIRS += ["/testing/geckodriver"]
169 DIRS += [
170     "/media/gmp-clearkey/0.1",
173 if CONFIG["MOZ_WMF_CDM"] and CONFIG["ENABLE_TESTS"]:
174     DIRS += [
175         "/media/wmf-clearkey",
176     ]
178 if CONFIG["ENABLE_TESTS"]:
179     DIRS += [
180         "/testing/mochitest",
181         "/testing/xpcshell",
182         "/testing/tools/minidumpwriter",
183         "/testing/tools/screenshot",
184         "/testing/profiles",
185         "/testing/modules",
186         "/testing/runtimes",
187         "/testing/web-platform",
188         "/testing/extensions",
189     ]
191     if CONFIG["MOZ_MEMORY"]:
192         DIRS += ["/memory/gtest"]
194     if CONFIG["MOZ_WEBRTC"]:
195         DIRS += [
196             "/dom/media/webrtc/transport/test",
197         ]
199 if CONFIG["FUZZING"]:
200     DIRS += ["/tools/fuzzing"]