1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 2001
20 * the Initial Developer. All Rights Reserved.
23 * Christopher Seawood <cls@seawood.org>
24 * Chris Waterson <waterson@netscape.com>
25 * Benjamin Smedberg <bsmedberg@covad.net>
27 * Alternatively, the contents of this file may be used under the terms of
28 * either the GNU General Public License Version 2 or later (the "GPL"), or
29 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
30 * in which case the provisions of the GPL or the LGPL are applicable instead
31 * of those above. If you wish to allow use of your version of this file only
32 * under the terms of either the GPL or the LGPL, and not to allow others to
33 * use your version of this file under the terms of the MPL, indicate your
34 * decision by deleting the provisions above and replace them with the notice
35 * and other provisions required by the GPL or the LGPL. If you do not delete
36 * the provisions above, a recipient may use your version of this file under
37 * the terms of any one of the MPL, the GPL or the LGPL.
39 * ***** END LICENSE BLOCK ***** */
41 #define XPCOM_TRANSLATE_NSGM_ENTRY_POINT 1
43 #include "nsIGenericFactory.h"
45 #include "nsStaticComponents.h"
48 #define NSGETMODULE(_name) _name##_NSGetModule
50 #ifdef MOZ_AUTH_EXTENSION
51 #define AUTH_MODULE MODULE(nsAuthModule)
56 #ifdef MOZ_PERMISSIONS
57 #define PERMISSIONS_MODULES \
58 MODULE(nsCookieModule) \
59 MODULE(nsPermissionsModule)
61 #define PERMISSIONS_MODULES
64 #ifdef MOZ_UNIVERSALCHARDET
65 #define UNIVERSALCHARDET_MODULE MODULE(nsUniversalCharDetModule)
67 #define UNIVERSALCHARDET_MODULE
71 #define MATHML_MODULES MODULE(nsUCvMathModule)
73 #define MATHML_MODULES
77 #define IPC_MODULE MODULE(ipcdclient)
82 #define GFX_MODULES MODULE(nsGfxModule)
85 # define WIDGET_MODULES MODULE(nsWidgetModule)
86 #elif defined(XP_MACOSX)
87 # define WIDGET_MODULES MODULE(nsWidgetMacModule)
88 #elif defined(XP_BEOS)
89 # define WIDGET_MODULES MODULE(nsWidgetBeOSModule)
91 # define WIDGET_MODULES MODULE(nsWidgetOS2Module)
92 #elif defined(MOZ_WIDGET_GTK2)
93 # define WIDGET_MODULES MODULE(nsWidgetGtk2Module)
94 #elif defined(MOZ_WIDGET_PHOTON)
95 # define WIDGET_MODULES MODULE(nsWidgetPhModule)
96 #elif defined(MOZ_WIDGET_QT)
97 # define WIDGET_MODULES MODULE(nsWidgetQtModule)
99 # error Unknown widget module.
103 #define ICON_MODULE MODULE(nsIconDecoderModule)
109 #define RDF_MODULE MODULE(nsRDFModule)
115 #define OJI_MODULES MODULE(nsCJVMManagerModule)
120 #ifdef MOZ_PLAINTEXT_EDITOR_ONLY
121 #define COMPOSER_MODULE
123 #define COMPOSER_MODULE MODULE(nsComposerModule)
127 #define ACCESS_MODULES MODULE(nsAccessibilityModule)
129 #define ACCESS_MODULES
132 #ifdef MOZ_ENABLE_XREMOTE
133 #define XREMOTE_MODULES MODULE(RemoteServiceModule)
135 #define XREMOTE_MODULES
138 #ifdef MOZ_PREF_EXTENSIONS
139 #ifdef MOZ_ENABLE_GTK2
140 #define SYSTEMPREF_MODULES \
141 MODULE(nsSystemPrefModule) \
142 MODULE(nsAutoConfigModule)
144 #define SYSTEMPREF_MODULES MODULE(nsAutoConfigModule)
147 #define SYSTEMPREF_MODULES
150 #ifdef MOZ_ENABLE_EXTENSION_LAYOUT_DEBUG
151 #define LAYOUT_DEBUG_MODULE MODULE(nsLayoutDebugModule)
153 #define LAYOUT_DEBUG_MODULE
157 #define PLUGINS_MODULES \
158 MODULE(nsPluginModule)
160 #define PLUGINS_MODULES
163 #ifdef MOZ_WEBSERVICES
164 #define WEBSERVICES_MODULES \
165 MODULE(nsWebServicesModule)
167 #define WEBSERVICES_MODULES
170 #ifdef MOZ_XPFE_COMPONENTS
172 #define RDFAPP_MODULES \
173 MODULE(nsXPIntlModule) \
174 MODULE(nsWindowDataSourceModule)
176 #define RDFAPP_MODULES
178 #define APPLICATION_MODULES \
179 MODULE(application) \
180 MODULE(nsFindComponent)
182 #define APPLICATION_MODULES
183 #define RDFAPP_MODULES
187 #define XPINSTALL_MODULES \
188 MODULE(nsSoftwareUpdate)
190 #define XPINSTALL_MODULES
193 #ifdef MOZ_JSDEBUGGER
194 #define JSDEBUGGER_MODULES \
195 MODULE(JavaScript_Debugger)
197 #define JSDEBUGGER_MODULES
200 #if defined(MOZ_FILEVIEW) && defined(MOZ_XPFE_COMPONENTS) && defined(MOZ_XUL)
201 #define FILEVIEW_MODULE MODULE(nsFileViewModule)
203 #define FILEVIEW_MODULE
207 #define STORAGE_MODULE MODULE(mozStorageModule)
209 #define STORAGE_MODULE
213 #define ZIPWRITER_MODULE MODULE(ZipWriterModule)
215 #define ZIPWRITER_MODULE
219 #define PLACES_MODULES \
220 MODULE(nsPlacesModule)
222 #if (defined(MOZ_MORK) && defined(MOZ_XUL))
223 #define PLACES_MODULES \
224 MODULE(nsMorkModule) \
225 MODULE(nsToolkitHistory)
227 #define PLACES_MODULES
232 #define XULENABLED_MODULES \
233 MODULE(tkAutoCompleteModule) \
237 #define XULENABLED_MODULES
240 #ifdef MOZ_SPELLCHECK
241 #define SPELLCHECK_MODULE MODULE(mozSpellCheckerModule)
243 #define SPELLCHECK_MODULE
247 #define XMLEXTRAS_MODULE MODULE(nsXMLExtrasModule)
249 #define XMLEXTRAS_MODULE
253 #ifdef MOZ_ENABLE_GTK2
254 #define UNIXPROXY_MODULE MODULE(nsUnixProxyModule)
256 #if defined(MOZ_WIDGET_QT)
257 #define UNIXPROXY_MODULE MODULE(nsUnixProxyModule)
260 #ifndef UNIXPROXY_MODULE
261 #define UNIXPROXY_MODULE
264 #if defined(XP_MACOSX)
265 #define OSXPROXY_MODULE MODULE(nsOSXProxyModule)
267 #define OSXPROXY_MODULE
270 #define XUL_MODULES \
273 MODULE(nsUConvModule) \
274 MODULE(nsI18nModule) \
275 MODULE(nsChardetModule) \
276 UNIVERSALCHARDET_MODULE \
278 PERMISSIONS_MODULES \
281 MODULE(nsJarModule) \
283 MODULE(nsPrefModule) \
284 MODULE(nsSecurityManagerModule) \
287 MODULE(nsParserModule) \
290 MODULE(nsImageLib2Module) \
293 MODULE(nsLayoutModule) \
294 WEBSERVICES_MODULES \
295 MODULE(docshell_provider) \
296 MODULE(embedcomponents) \
297 MODULE(Browser_Embedding_Module) \
301 MODULE(nsTransactionManagerModule) \
303 MODULE(nsChromeModule) \
304 APPLICATION_MODULES \
306 MODULE(CommandLineModule) \
311 MODULE(nsToolkitCompsModule) \
320 LAYOUT_DEBUG_MODULE \
325 #define MODULE(_name) \
326 NSGETMODULE_ENTRY_POINT(_name) (nsIComponentManager*, nsIFile*, nsIModule**);
332 #define MODULE(_name) { #_name, NSGETMODULE(_name) },
335 * The nsStaticModuleInfo
337 static nsStaticModuleInfo
const gStaticModuleInfo
[] = {
341 nsStaticModuleInfo
const *const kPStaticModules
= gStaticModuleInfo
;
342 PRUint32
const kStaticModuleCount
= NS_ARRAY_LENGTH(gStaticModuleInfo
);