|
1 # vim: set filetype=python: |
|
2 # This Source Code Form is subject to the terms of the Mozilla Public |
|
3 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
5 |
|
6 if CONFIG['LIBXUL_SDK']: |
|
7 error('toolkit.mozbuild is not compatible with --enable-libxul-sdk=') |
|
8 |
|
9 if CONFIG['MOZ_CONTENT_SANDBOX']: |
|
10 add_tier_dir('sandbox', 'security/sandbox') |
|
11 |
|
12 # Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator |
|
13 # builds fail. |
|
14 add_tier_dir('platform', 'security/certverifier') |
|
15 |
|
16 # Depends on certverifier |
|
17 add_tier_dir('platform', 'security/apps') |
|
18 |
|
19 # the signing related bits of libmar depend on nss |
|
20 if CONFIG['MOZ_UPDATER']: |
|
21 add_tier_dir('platform', 'modules/libmar') |
|
22 |
|
23 if CONFIG['NS_TRACE_MALLOC']: |
|
24 add_tier_dir('platform', 'tools/trace-malloc/lib') |
|
25 |
|
26 if CONFIG['MOZ_DMD']: |
|
27 add_tier_dir('platform', 'memory/replace/dmd') |
|
28 |
|
29 if CONFIG['MOZ_TREE_FREETYPE']: |
|
30 add_tier_dir('platform', 'modules/freetype2', static=True) |
|
31 |
|
32 add_tier_dir('platform', 'xpcom') |
|
33 |
|
34 add_tier_dir('platform', [ |
|
35 'modules/libpref', |
|
36 'intl', |
|
37 'netwerk', |
|
38 ]) |
|
39 |
|
40 if CONFIG['MOZ_AUTH_EXTENSION']: |
|
41 add_tier_dir('platform', 'extensions/auth') |
|
42 |
|
43 if CONFIG['MOZ_UPDATER']: |
|
44 add_tier_dir('platform', 'other-licenses/bsdiff') |
|
45 |
|
46 # Gecko/Core components. |
|
47 |
|
48 add_tier_dir('platform', ['ipc', 'js/ipc']) |
|
49 |
|
50 add_tier_dir('platform', ['hal', 'js/xpconnect', 'intl/chardet']) |
|
51 |
|
52 add_tier_dir('platform', 'media/libyuv') |
|
53 |
|
54 add_tier_dir('platform', ['modules/libjar', 'storage']) |
|
55 |
|
56 if CONFIG['MOZ_PERMISSIONS']: |
|
57 add_tier_dir('platform', ['extensions/cookie', 'extensions/permissions']) |
|
58 |
|
59 add_tier_dir('platform', 'rdf') |
|
60 |
|
61 if CONFIG['MOZ_JSDEBUGGER']: |
|
62 add_tier_dir('platform', 'js/jsd') |
|
63 |
|
64 if CONFIG['MOZ_WEBRTC']: |
|
65 add_tier_dir('platform', [ |
|
66 'media/webrtc', |
|
67 'media/mtransport/third_party', |
|
68 'media/mtransport/build', |
|
69 'media/mtransport/standalone', |
|
70 ]) |
|
71 |
|
72 if CONFIG['MOZ_OMX_PLUGIN']: |
|
73 add_tier_dir('platform', [ |
|
74 'media/omx-plugin/lib/ics/libutils', |
|
75 'media/omx-plugin/lib/ics/libstagefright', |
|
76 'media/omx-plugin/lib/ics/libvideoeditorplayer', |
|
77 'media/omx-plugin/lib/gb/libutils', |
|
78 'media/omx-plugin/lib/gb/libstagefright', |
|
79 'media/omx-plugin/lib/gb/libstagefright_color_conversion', |
|
80 'media/omx-plugin/lib/gb235/libstagefright', |
|
81 'media/omx-plugin/lib/froyo/libstagefright', |
|
82 'media/omx-plugin', |
|
83 'media/omx-plugin/gb', |
|
84 'media/omx-plugin/gb235', |
|
85 'media/omx-plugin/froyo', |
|
86 'media/omx-plugin/lib/hc/libstagefright', |
|
87 'media/omx-plugin/hc', |
|
88 'media/omx-plugin/kk', |
|
89 ]) |
|
90 |
|
91 if CONFIG['ENABLE_TESTS']: |
|
92 add_tier_dir('platform', 'testing/specialpowers') |
|
93 |
|
94 if CONFIG['ENABLE_TESTS']: |
|
95 add_tier_dir('platform', 'testing/gtest') |
|
96 |
|
97 if CONFIG['ENABLE_TESTS']: |
|
98 add_tier_dir('platform', 'tbb-tests') |
|
99 |
|
100 add_tier_dir('platform', [ |
|
101 'uriloader', |
|
102 'caps', |
|
103 'parser', |
|
104 'gfx', |
|
105 'image', |
|
106 'dom', |
|
107 'view', |
|
108 'widget', |
|
109 'content', |
|
110 'editor', |
|
111 'layout', |
|
112 'docshell', |
|
113 'embedding', |
|
114 'xpfe/appshell' |
|
115 ]) |
|
116 |
|
117 # This needs to be built after the gfx/ directory |
|
118 # to ensure all dependencies for skia (e.g. mozalloc, xpcom) |
|
119 # have been built |
|
120 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': |
|
121 add_tier_dir('platform', 'other-licenses/skia-npapi') |
|
122 |
|
123 if CONFIG['MOZ_UNIVERSALCHARDET']: |
|
124 add_tier_dir('platform', 'extensions/universalchardet') |
|
125 |
|
126 if CONFIG['ACCESSIBILITY']: |
|
127 add_tier_dir('platform', 'accessible') |
|
128 |
|
129 # toolkit |
|
130 |
|
131 add_tier_dir('platform', 'profile') |
|
132 |
|
133 # This must precede xpfe. |
|
134 if CONFIG['MOZ_JPROF']: |
|
135 add_tier_dir('platform', 'tools/jprof') |
|
136 |
|
137 add_tier_dir('platform', 'tools/profiler') |
|
138 |
|
139 add_tier_dir('platform', 'xpfe/components') |
|
140 |
|
141 if CONFIG['MOZ_ENABLE_XREMOTE']: |
|
142 add_tier_dir('platform', 'widget/xremoteclient') |
|
143 |
|
144 if CONFIG['MOZ_SPELLCHECK']: |
|
145 add_tier_dir('platform', 'extensions/spellcheck') |
|
146 |
|
147 add_tier_dir('platform', 'security/manager') |
|
148 |
|
149 add_tier_dir('platform', 'toolkit') |
|
150 |
|
151 if CONFIG['MOZ_PREF_EXTENSIONS']: |
|
152 add_tier_dir('platform', 'extensions/pref') |
|
153 |
|
154 add_tier_dir('platform', 'services') |
|
155 add_tier_dir('platform', 'startupcache') |
|
156 add_tier_dir('platform', 'js/ductwork/debugger') |
|
157 add_tier_dir('platform', 'other-licenses/snappy') |
|
158 |
|
159 if CONFIG['MOZ_GIO_COMPONENT']: |
|
160 add_tier_dir('platform', 'extensions/gio') |
|
161 |
|
162 # Applications can cheat and ask for code to be |
|
163 # built before libxul so it can be linked into libxul. |
|
164 add_tier_dir('platform', app_libxul_dirs) |
|
165 add_tier_dir('platform', app_libxul_static_dirs, static=True) |
|
166 |
|
167 add_tier_dir('platform', 'toolkit/library') |
|
168 |
|
169 if CONFIG['MOZ_REPLACE_MALLOC']: |
|
170 add_tier_dir('platform', 'memory/replace') |
|
171 |
|
172 if CONFIG['NS_TRACE_MALLOC']: |
|
173 add_tier_dir('platform', 'tools/trace-malloc') |
|
174 |
|
175 if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']: |
|
176 add_tier_dir('platform', 'toolkit/system/gnome') |
|
177 |
|
178 # if QtNetwork is present, it will do its own network monitoring |
|
179 if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']: |
|
180 add_tier_dir('platform', 'toolkit/system/dbus') |
|
181 |
|
182 add_tier_dir('platform', 'addon-sdk') |
|
183 |
|
184 if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'): |
|
185 add_tier_dir('platform', 'testing/marionette') |
|
186 |
|
187 add_tier_dir('platform', 'tools/quitter') |
|
188 |
|
189 if CONFIG['ENABLE_TESTS']: |
|
190 add_tier_dir('platform', [ |
|
191 'testing/mochitest', |
|
192 'testing/xpcshell', |
|
193 'testing/tools/screenshot', |
|
194 'testing/profiles', |
|
195 'testing/mozbase', |
|
196 'testing/modules', |
|
197 ]) |
|
198 |
|
199 if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk': |
|
200 add_tier_dir('platform', [ |
|
201 'media/webrtc/signaling/test', |
|
202 'media/mtransport/test', |
|
203 ]) |