Bug 1844495: Implement base of MDN Suggestions r=adw,dao
[gecko.git] / toolkit / toolkit.mozbuild
blobd2ccd8748228b04c84754f9a6dce2ca3bf991e47
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.ini',
11     '/testing/condprofile/condprof/tests/python.ini',
12     '/testing/marionette/harness/marionette_harness/tests/harness_unit/python.ini',
13     '/testing/mochitest/tests/python/python.ini',
14     '/testing/raptor/test/python.ini',
15     '/testing/talos/talos/unittests/python.ini'
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 DIRS += [
35     '/toolkit/library/rust',
38 if CONFIG['MOZ_SANDBOX']:
39     DIRS += ['/security/sandbox']
41 if CONFIG["MOZ_USING_WASM_SANDBOXING"] and CONFIG["COMPILE_ENVIRONMENT"]:
42     DIRS += ["/security/rlbox"]
44 # the signing related bits of libmar depend on nss
45 if CONFIG['MOZ_UPDATER']:
46     DIRS += ['/modules/libmar']
48 DIRS += [
49     '/config/external/freetype2',
50     '/xpcom',
51     '/modules/libpref',
52     '/intl',
53     '/netwerk',
56 if CONFIG['MOZ_AUTH_EXTENSION']:
57     DIRS += ['/extensions/auth']
59 if CONFIG['MOZ_UPDATER'] and CONFIG['OS_TARGET'] != 'Android':
60     DIRS += [
61         '/toolkit/mozapps/update/updater/bspatch',
62         '/other-licenses/bsdiff',
63     ]
65 # Gecko/Core components.
67 DIRS += [
68     '/ipc',
69     '/hal',
70     '/js/loader',
71     '/js/xpconnect',
72     '/modules/libjar',
73     '/storage',
76 if CONFIG['COMPILE_ENVIRONMENT']:
77     DIRS += [
78         '/media/libyuv',
79     ]
81 DIRS += [
82     '/extensions/permissions',
85 if CONFIG['MOZ_WEBRTC'] and CONFIG['COMPILE_ENVIRONMENT']:
86     DIRS += [
87         '/media/webrtc',
88         '/dom/media/webrtc/transport',
89     ]
91 if CONFIG['ENABLE_TESTS']:
92     DIRS += ['/testing/specialpowers']
94 DIRS += [
95     '/testing/gtest',
96     '/uriloader',
97     '/caps',
98     '/parser',
99     '/gfx',
100     '/image',
101     '/dom',
102     '/view',
103     '/widget',
104     '/editor',
105     '/layout',
106     '/docshell',
107     '/xpfe/appshell'
110 if CONFIG['MOZ_UNIVERSALCHARDET']:
111     DIRS += ['/extensions/universalchardet']
113 if CONFIG['ACCESSIBILITY']:
114     DIRS += ['/accessible']
115 else:
116     DIRS += ['/accessible/ipc']
118 # toolkit
120 # This must precede xpfe.
121 if CONFIG['MOZ_JPROF']:
122     DIRS += ['/tools/jprof']
124 DIRS += [
125     '/tools/code-coverage',
126     '/tools/performance',
127     '/tools/power',
128     '/tools/profiler',
129     '/extensions/spellcheck',
130     '/security/certverifier',
131     '/security/manager',
132     '/toolkit',
135 if CONFIG['MOZ_PREF_EXTENSIONS']:
136     DIRS += ['/extensions/pref']
138 DIRS += [
139     '/devtools',
140     '/toolkit/library',
141     '/services',
142     '/startupcache',
143     '/other-licenses/snappy',
146 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
147     DIRS += [
148         '/media/mozva',
149         '/toolkit/system/gnome',
150     ]
152 if CONFIG['ENABLE_WEBDRIVER']:
153     DIRS += [
154         '/remote',
155         '/testing/firefox-ui',
156         '/testing/marionette',
157         '/toolkit/components/telemetry/tests/marionette',
158     ]
160 if CONFIG['MOZ_GECKODRIVER'] and not CONFIG['MOZ_TSAN'] and not CONFIG['FUZZING_INTERFACES']:
161     DIRS += ['/testing/geckodriver']
163 DIRS += [
164     '/media/gmp-clearkey/0.1',
167 if CONFIG['ENABLE_TESTS']:
168     DIRS += [
169         '/testing/mochitest',
170         '/testing/xpcshell',
171         '/testing/tools/minidumpwriter',
172         '/testing/tools/screenshot',
173         '/testing/profiles',
174         '/testing/modules',
175         '/testing/runtimes',
176         '/testing/web-platform',
177         '/testing/extensions',
178     ]
180     if CONFIG['MOZ_MEMORY']:
181         DIRS += ['/memory/gtest']
183     if CONFIG['MOZ_WEBRTC']:
184         DIRS += [
185             '/dom/media/webrtc/transport/test',
186         ]
188 if CONFIG['FUZZING']:
189     DIRS += ['/tools/fuzzing']