Bug 1677597 [wpt PR 26544] - Update wpt metadata, a=testonly
[gecko.git] / toolkit / toolkit.mozbuild
blobbbc3c98e4885f23f03f83b7c2aa00e4eb4faaef5
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 CONFIGURE_SUBST_FILES += [
19     '/tools/update-packaging/Makefile',
22 DIRS += [
23     '/tools',
24     '/xpcom/xpidl',
27 if CONFIG['COMPILE_ENVIRONMENT']:
28     DIRS += [
29         '/config/external',
30         '/security',
31     ]
33 if CONFIG['ENABLE_TESTS']:
34     DIRS += [
35         '/toolkit/library/gtest/rust',
36     ]
38 DIRS += [
39     '/toolkit/library/rust',
42 if CONFIG['MOZ_SANDBOX']:
43     DIRS += ['/security/sandbox']
45 DIRS += [
46     # Depends on NSS and NSPR
47     '/security/certverifier',
48     # Depends on certverifier
49     '/security/apps',
52 # the signing related bits of libmar depend on nss
53 if CONFIG['MOZ_UPDATER']:
54     DIRS += ['/modules/libmar']
56 DIRS += [
57     '/config/external/freetype2',
58     '/xpcom',
59     '/modules/libpref',
60     '/intl',
61     '/netwerk',
64 if CONFIG['MOZ_AUTH_EXTENSION']:
65     DIRS += ['/extensions/auth']
67 if CONFIG['MOZ_UPDATER'] and CONFIG['OS_TARGET'] != 'Android':
68     DIRS += [
69         '/toolkit/mozapps/update/updater/bspatch',
70         '/other-licenses/bsdiff',
71     ]
73 # Gecko/Core components.
75 DIRS += [
76     '/ipc',
77     '/hal',
78     '/js/xpconnect',
79     '/modules/libjar',
80     '/storage',
83 if CONFIG['COMPILE_ENVIRONMENT']:
84     DIRS += [
85         '/media/libyuv',
86     ]
88 DIRS += [
89     '/extensions/permissions',
92 if CONFIG['MOZ_WEBRTC'] and CONFIG['COMPILE_ENVIRONMENT']:
93     DIRS += [
94         '/media/webrtc',
95         '/dom/media/webrtc/transport',
96     ]
98 if CONFIG['ENABLE_TESTS']:
99     DIRS += ['/testing/specialpowers']
101 DIRS += [
102     '/testing/gtest',
103     '/uriloader',
104     '/caps',
105     '/parser',
106     '/gfx',
107     '/image',
108     '/dom',
109     '/view',
110     '/widget',
111     '/editor',
112     '/layout',
113     '/docshell',
114     '/xpfe/appshell'
117 if CONFIG['MOZ_UNIVERSALCHARDET']:
118     DIRS += ['/extensions/universalchardet']
120 if CONFIG['ACCESSIBILITY']:
121     DIRS += ['/accessible']
122 else:
123     DIRS += ['/accessible/ipc']
125 # toolkit
127 # This must precede xpfe.
128 if CONFIG['MOZ_JPROF']:
129     DIRS += ['/tools/jprof']
131 DIRS += [
132     '/tools/code-coverage',
133     '/tools/performance',
134     '/tools/power',
135     '/tools/profiler',
138 if CONFIG['MOZ_SPELLCHECK']:
139     DIRS += ['/extensions/spellcheck']
141 DIRS += [
142     '/security/manager',
143     '/toolkit',
146 if CONFIG['MOZ_PREF_EXTENSIONS']:
147     DIRS += ['/extensions/pref']
149 DIRS += [
150     '/devtools',
151     '/toolkit/library',
152     '/services',
153     '/startupcache',
154     '/js/ductwork/debugger',
155     '/other-licenses/snappy',
158 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
159     DIRS += [
160         '/toolkit/system/gnome',
161     ]
163 if CONFIG['ENABLE_REMOTE_AGENT']:
164     DIRS += ['/remote']
166 if CONFIG['ENABLE_MARIONETTE']:
167     DIRS += [
168         '/testing/firefox-ui',
169         '/testing/marionette',
170         '/toolkit/components/telemetry/tests/marionette',
171     ]
173 if CONFIG['ENABLE_GECKODRIVER'] and not CONFIG['MOZ_TSAN'] and not CONFIG['FUZZING_INTERFACES']:
174     DIRS += ['/testing/geckodriver']
176 DIRS += [
177     '/tools/quitter',
178     '/media/gmp-clearkey/0.1',
181 if CONFIG['ENABLE_TESTS']:
182     DIRS += [
183         '/testing/mochitest',
184         '/testing/xpcshell',
185         '/testing/tools/minidumpwriter',
186         '/testing/tools/screenshot',
187         '/testing/profiles',
188         '/testing/modules',
189         '/testing/runtimes',
190         '/testing/web-platform',
191         '/testing/extensions',
192     ]
194     if CONFIG['MOZ_MEMORY']:
195         DIRS += ['/memory/gtest']
197     if CONFIG['MOZ_WEBRTC'] and not CONFIG['MOZ_TASK_TRACER']:
198         DIRS += [
199             '/dom/media/webrtc/transport/test',
200         ]
202 if CONFIG['FUZZING']:
203     DIRS += ['/tools/fuzzing']