diff --git a/accessible/public/Makefile.in b/accessible/public/Makefile.in index 9a7f20128e3..51e21671aa7 100644 --- a/accessible/public/Makefile.in +++ b/accessible/public/Makefile.in @@ -13,30 +13,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = accessibility GRE_MODULE = 1 -XPIDLSRCS = \ - nsIAccessibleTypes.idl \ - nsIAccessibleRetrieval.idl \ - nsIAccessible.idl \ - nsIAccessibleApplication.idl \ - nsIAccessibleRelation.idl \ - nsIAccessibleRole.idl \ - nsIAccessibleStates.idl \ - nsIAccessibleDocument.idl \ - nsIAccessibleProvider.idl \ - nsIAccessibleSelectable.idl \ - nsIAccessibleCursorable.idl \ - nsIAccessibleEvent.idl \ - nsIAccessibleEditableText.idl \ - nsIAccessibleHyperLink.idl \ - nsIAccessibleHyperText.idl \ - nsIAccessiblePivot.idl \ - nsIAccessibleTable.idl \ - nsIAccessibleText.idl \ - nsIAccessibleValue.idl \ - nsIAccessibleImage.idl \ - nsIXBLAccessible.idl \ - $(NULL) - EXPORTS = \ nsIAccessibilityService.h \ $(NULL) diff --git a/accessible/public/moz.build b/accessible/public/moz.build index 72cb96917c7..a2bec6b86bc 100644 --- a/accessible/public/moz.build +++ b/accessible/public/moz.build @@ -5,3 +5,28 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': DIRS += ['msaa', 'ia2'] + +XPIDL_SOURCES += [ + 'nsIAccessible.idl', + 'nsIAccessibleApplication.idl', + 'nsIAccessibleCursorable.idl', + 'nsIAccessibleDocument.idl', + 'nsIAccessibleEditableText.idl', + 'nsIAccessibleEvent.idl', + 'nsIAccessibleHyperLink.idl', + 'nsIAccessibleHyperText.idl', + 'nsIAccessibleImage.idl', + 'nsIAccessiblePivot.idl', + 'nsIAccessibleProvider.idl', + 'nsIAccessibleRelation.idl', + 'nsIAccessibleRetrieval.idl', + 'nsIAccessibleRole.idl', + 'nsIAccessibleSelectable.idl', + 'nsIAccessibleStates.idl', + 'nsIAccessibleTable.idl', + 'nsIAccessibleText.idl', + 'nsIAccessibleTypes.idl', + 'nsIAccessibleValue.idl', + 'nsIXBLAccessible.idl', +] + diff --git a/b2g/components/Makefile.in b/b2g/components/Makefile.in index 27650378095..792357451b9 100644 --- a/b2g/components/Makefile.in +++ b/b2g/components/Makefile.in @@ -11,10 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = B2GComponents -XPIDLSRCS = \ - b2g.idl \ - $(NULL) - EXTRA_PP_COMPONENTS = \ ActivitiesGlue.js \ AlertsService.js \ diff --git a/b2g/components/moz.build b/b2g/components/moz.build index 493f80dc6ef..4ae5ead2454 100644 --- a/b2g/components/moz.build +++ b/b2g/components/moz.build @@ -4,3 +4,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'b2g.idl', +] + diff --git a/browser/components/Makefile.in b/browser/components/Makefile.in index 0ccbba84845..331581c8caf 100644 --- a/browser/components/Makefile.in +++ b/browser/components/Makefile.in @@ -10,13 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = browsercomps -XPIDL_MODULE = browsercompsbase - -XPIDLSRCS = \ - nsIBrowserGlue.idl \ - nsIBrowserHandler.idl \ - $(NULL) - EXTRA_COMPONENTS = \ BrowserComponents.manifest \ $(NULL) diff --git a/browser/components/feeds/public/Makefile.in b/browser/components/feeds/public/Makefile.in index 2237fa03658..f23321de55f 100644 --- a/browser/components/feeds/public/Makefile.in +++ b/browser/components/feeds/public/Makefile.in @@ -12,6 +12,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = browser-feeds -XPIDLSRCS = nsIFeedResultService.idl nsIWebContentConverterRegistrar.idl nsIFeedWriter.idl - include $(topsrcdir)/config/rules.mk diff --git a/browser/components/feeds/public/moz.build b/browser/components/feeds/public/moz.build index 58ce5e27339..39b003b1d79 100644 --- a/browser/components/feeds/public/moz.build +++ b/browser/components/feeds/public/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIFeedResultService.idl', + 'nsIFeedWriter.idl', + 'nsIWebContentConverterRegistrar.idl', +] + diff --git a/browser/components/migration/public/Makefile.in b/browser/components/migration/public/Makefile.in index c31652c7503..ef4648380bd 100644 --- a/browser/components/migration/public/Makefile.in +++ b/browser/components/migration/public/Makefile.in @@ -11,7 +11,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = migration -XPIDLSRCS = nsIBrowserProfileMigrator.idl - include $(topsrcdir)/config/rules.mk diff --git a/browser/components/migration/public/moz.build b/browser/components/migration/public/moz.build index 58ce5e27339..e2f1bdf0270 100644 --- a/browser/components/migration/public/moz.build +++ b/browser/components/migration/public/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIBrowserProfileMigrator.idl', +] + diff --git a/browser/components/moz.build b/browser/components/moz.build index ec5522a68e7..632457e51e1 100644 --- a/browser/components/moz.build +++ b/browser/components/moz.build @@ -25,3 +25,11 @@ if CONFIG['MOZ_SAFE_BROWSING']: TEST_DIRS += ['test'] DIRS += ['build'] + +XPIDL_SOURCES += [ + 'nsIBrowserGlue.idl', + 'nsIBrowserHandler.idl', +] + +XPIDL_MODULE = 'browsercompsbase' + diff --git a/browser/components/places/Makefile.in b/browser/components/places/Makefile.in index 39b8053939c..ac724e1bc29 100644 --- a/browser/components/places/Makefile.in +++ b/browser/components/places/Makefile.in @@ -12,4 +12,3 @@ include $(DEPTH)/config/autoconf.mk include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += -I$(topsrcdir)/browser/components/ diff --git a/browser/components/places/moz.build b/browser/components/places/moz.build index 4ae3fde684e..0908b75330f 100644 --- a/browser/components/places/moz.build +++ b/browser/components/places/moz.build @@ -5,3 +5,8 @@ DIRS += ['src'] TEST_DIRS += ['tests'] + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/browser/components/', +] + diff --git a/browser/components/places/src/Makefile.in b/browser/components/places/src/Makefile.in index 1d793a3943e..4fc6b296755 100644 --- a/browser/components/places/src/Makefile.in +++ b/browser/components/places/src/Makefile.in @@ -21,4 +21,3 @@ EXTRA_JS_MODULES = \ include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += -I$(topsrcdir)/browser/components diff --git a/browser/components/places/src/moz.build b/browser/components/places/src/moz.build index 58ce5e27339..2e98f25bc12 100644 --- a/browser/components/places/src/moz.build +++ b/browser/components/places/src/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_FLAGS += [ + '-I$(topsrcdir)/browser/components', +] + diff --git a/browser/components/sessionstore/Makefile.in b/browser/components/sessionstore/Makefile.in index dfdd4503f9f..58b6b6c1d21 100644 --- a/browser/components/sessionstore/Makefile.in +++ b/browser/components/sessionstore/Makefile.in @@ -12,9 +12,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = sessionstore -XPIDLSRCS = \ - nsISessionStartup.idl \ - nsISessionStore.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/browser/components/sessionstore/moz.build b/browser/components/sessionstore/moz.build index a66939e28a8..6daa72a8469 100644 --- a/browser/components/sessionstore/moz.build +++ b/browser/components/sessionstore/moz.build @@ -5,3 +5,9 @@ DIRS += ['src'] TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsISessionStartup.idl', + 'nsISessionStore.idl', +] + diff --git a/browser/components/shell/public/Makefile.in b/browser/components/shell/public/Makefile.in index 1f0a126a48a..e000ffc3ccd 100644 --- a/browser/components/shell/public/Makefile.in +++ b/browser/components/shell/public/Makefile.in @@ -12,14 +12,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = shellservice -XPIDLSRCS = nsIShellService.idl - -ifeq ($(OS_ARCH),WINNT) -XPIDLSRCS += nsIWindowsShellService.idl -endif - -ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) -XPIDLSRCS += nsIMacShellService.idl -endif - include $(topsrcdir)/config/rules.mk diff --git a/browser/components/shell/public/moz.build b/browser/components/shell/public/moz.build index 58ce5e27339..debfbb94444 100644 --- a/browser/components/shell/public/moz.build +++ b/browser/components/shell/public/moz.build @@ -3,3 +3,16 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIShellService.idl', +] + +if CONFIG['OS_ARCH'] == 'WINNT': + XPIDL_SOURCES += [ + 'nsIWindowsShellService.idl', + ] +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': + XPIDL_SOURCES += [ + 'nsIMacShellService.idl', + ] + diff --git a/browser/fuel/public/Makefile.in b/browser/fuel/public/Makefile.in index 1c0f71b0c02..2c26541efc8 100644 --- a/browser/fuel/public/Makefile.in +++ b/browser/fuel/public/Makefile.in @@ -11,6 +11,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = fuel -XPIDLSRCS = fuelIApplication.idl - include $(topsrcdir)/config/rules.mk diff --git a/browser/fuel/public/moz.build b/browser/fuel/public/moz.build index 58ce5e27339..e1f779c43c1 100644 --- a/browser/fuel/public/moz.build +++ b/browser/fuel/public/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'fuelIApplication.idl', +] + diff --git a/browser/metro/components/Makefile.in b/browser/metro/components/Makefile.in index 8e2d33aa32d..3dee7b06337 100644 --- a/browser/metro/components/Makefile.in +++ b/browser/metro/components/Makefile.in @@ -13,11 +13,6 @@ include $(topsrcdir)/config/config.mk # metro/components.manifest MODULE = components -XPIDLSRCS = \ - SessionStore.idl \ - LoginManagerPrompter.idl \ - $(NULL) - EXTRA_PP_COMPONENTS = \ components.manifest \ AboutRedirector.js \ diff --git a/browser/metro/components/moz.build b/browser/metro/components/moz.build index 58ce5e27339..8cc0d20f897 100644 --- a/browser/metro/components/moz.build +++ b/browser/metro/components/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'LoginManagerPrompter.idl', + 'SessionStore.idl', +] + diff --git a/caps/idl/Makefile.in b/caps/idl/Makefile.in index 055ed0131e0..4d8f24292a2 100644 --- a/caps/idl/Makefile.in +++ b/caps/idl/Makefile.in @@ -13,11 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = caps GRE_MODULE = 1 -XPIDLSRCS = \ - nsIScriptSecurityManager.idl \ - nsIPrincipal.idl \ - nsISecurityCheckedComponent.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/caps/idl/moz.build b/caps/idl/moz.build index 58ce5e27339..50429759dc0 100644 --- a/caps/idl/moz.build +++ b/caps/idl/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIPrincipal.idl', + 'nsIScriptSecurityManager.idl', + 'nsISecurityCheckedComponent.idl', +] + diff --git a/chrome/public/Makefile.in b/chrome/public/Makefile.in index e7145b2d1af..4d75479bac7 100644 --- a/chrome/public/Makefile.in +++ b/chrome/public/Makefile.in @@ -11,9 +11,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = chrome -XPIDLSRCS = \ - nsIChromeRegistry.idl \ - nsIToolkitChromeRegistry.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/chrome/public/moz.build b/chrome/public/moz.build index 58ce5e27339..a60ca934e2f 100644 --- a/chrome/public/moz.build +++ b/chrome/public/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIChromeRegistry.idl', + 'nsIToolkitChromeRegistry.idl', +] + diff --git a/config/config.mk b/config/config.mk index 41a5a5b56d8..29837b23086 100644 --- a/config/config.mk +++ b/config/config.mk @@ -526,7 +526,7 @@ endif # Default location of include files IDL_DIR = $(DIST)/idl -XPIDL_FLAGS = -I$(srcdir) -I$(IDL_DIR) +XPIDL_FLAGS += -I$(srcdir) -I$(IDL_DIR) ifdef LIBXUL_SDK XPIDL_FLAGS += -I$(LIBXUL_SDK)/idl endif diff --git a/config/rules.mk b/config/rules.mk index c8dc8aa4f63..44d8d46ea7f 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -20,13 +20,22 @@ _MOZBUILD_EXTERNAL_VARIABLES := \ TEST_DIRS \ TIERS \ TOOL_DIRS \ + XPIDL_MODULE \ $(NULL) ifndef EXTERNALLY_MANAGED_MAKE_FILE +# Using $(firstword) may not be perfect. But it should be good enough for most +# scenarios. +_current_makefile = $(CURDIR)/$(firstword $(MAKEFILE_LIST)) + $(foreach var,$(_MOZBUILD_EXTERNAL_VARIABLES),$(if $($(var)),\ - $(error Variable $(var) is defined in Makefile. It should only be defined in moz.build files),\ + $(error Variable $(var) is defined in $(_current_makefile). It should only be defined in moz.build files),\ )) +ifneq (,$(XPIDLSRCS)$(SDK_XPIDLSRCS)) + $(error XPIDLSRCS and SDK_XPIDLSRCS have been merged and moved to moz.build files as the XPIDL_SOURCES variable. You must move these variables out of $(_current_makefile)) +endif + # Import the automatically generated backend file. If this file doesn't exist, # the backend hasn't been properly configured. We want this to be a fatal # error, hence not using "-include". @@ -56,10 +65,6 @@ endif USE_AUTOTARGETS_MK = 1 include $(topsrcdir)/config/makefiles/makeutils.mk -ifdef SDK_XPIDLSRCS -_EXTRA_XPIDLSRCS := $(filter-out $(XPIDLSRCS),$(SDK_XPIDLSRCS)) -XPIDLSRCS += $(_EXTRA_XPIDLSRCS) -endif ifdef SDK_HEADERS _EXTRA_EXPORTS := $(filter-out $(EXPORTS),$(SDK_HEADERS)) EXPORTS += $(_EXTRA_EXPORTS) diff --git a/content/base/public/Makefile.in b/content/base/public/Makefile.in index 9d5ca899411..38c6df9f37a 100644 --- a/content/base/public/Makefile.in +++ b/content/base/public/Makefile.in @@ -10,7 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = content -XPIDL_MODULE = content_base GRE_MODULE = 1 EXPORTS = \ @@ -59,33 +58,5 @@ EXPORTS_mozilla = \ CORSMode.h \ $(NULL) -SDK_XPIDLSRCS = \ - nsISelection.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIContentPolicy.idl \ - nsIDocumentEncoder.idl \ - nsIDOMDataChannel.idl \ - nsIDOMFile.idl \ - nsIDOMFileReader.idl \ - nsIDOMFileList.idl \ - nsIDOMFormData.idl \ - nsIDOMParser.idl \ - nsIDOMSerializer.idl \ - nsISelectionController.idl \ - nsISelectionDisplay.idl \ - nsISelectionListener.idl \ - nsISelectionPrivate.idl \ - nsIScriptLoaderObserver.idl \ - nsIDroppedLinkHandler.idl \ - nsIImageLoadingContent.idl \ - nsIObjectLoadingContent.idl \ - nsIFrameLoader.idl \ - nsIXMLHttpRequest.idl \ - nsIContentSecurityPolicy.idl \ - nsIMessageManager.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/content/base/public/moz.build b/content/base/public/moz.build index 58ce5e27339..3bfb990e9c6 100644 --- a/content/base/public/moz.build +++ b/content/base/public/moz.build @@ -3,3 +3,30 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIContentPolicy.idl', + 'nsIContentSecurityPolicy.idl', + 'nsIDOMDataChannel.idl', + 'nsIDOMFile.idl', + 'nsIDOMFileList.idl', + 'nsIDOMFileReader.idl', + 'nsIDOMFormData.idl', + 'nsIDOMParser.idl', + 'nsIDOMSerializer.idl', + 'nsIDocumentEncoder.idl', + 'nsIDroppedLinkHandler.idl', + 'nsIFrameLoader.idl', + 'nsIImageLoadingContent.idl', + 'nsIMessageManager.idl', + 'nsIObjectLoadingContent.idl', + 'nsIScriptLoaderObserver.idl', + 'nsISelection.idl', + 'nsISelectionController.idl', + 'nsISelectionDisplay.idl', + 'nsISelectionListener.idl', + 'nsISelectionPrivate.idl', + 'nsIXMLHttpRequest.idl', +] + +XPIDL_MODULE = 'content_base' + diff --git a/content/canvas/public/Makefile.in b/content/canvas/public/Makefile.in index 1cc2de11208..e1e35b92503 100644 --- a/content/canvas/public/Makefile.in +++ b/content/canvas/public/Makefile.in @@ -11,8 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = content -XPIDL_MODULE = content_canvas - EXPORTS_NAMESPACES = mozilla/ipc EXPORTS = \ @@ -29,8 +27,4 @@ EXPORTS_mozilla/ipc = \ DocumentRendererNativeIDParent.h \ $(NULL) -XPIDLSRCS = \ - nsICanvasGLPrivate.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/content/canvas/public/moz.build b/content/canvas/public/moz.build index 58ce5e27339..216f1a7d8c4 100644 --- a/content/canvas/public/moz.build +++ b/content/canvas/public/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsICanvasGLPrivate.idl', +] + +XPIDL_MODULE = 'content_canvas' + diff --git a/content/events/public/Makefile.in b/content/events/public/Makefile.in index c6eded6d563..19048b3afcf 100644 --- a/content/events/public/Makefile.in +++ b/content/events/public/Makefile.in @@ -11,8 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = content -XPIDL_MODULE = content_events - EXPORTS = \ nsMutationEvent.h \ nsIPrivateTextEvent.h \ @@ -30,9 +28,5 @@ EXPORTS_mozilla/dom = \ EventTarget.h \ $(NULL) -XPIDLSRCS = \ - nsIEventListenerService.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/content/events/public/moz.build b/content/events/public/moz.build index 58ce5e27339..d8420598eab 100644 --- a/content/events/public/moz.build +++ b/content/events/public/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIEventListenerService.idl', +] + +XPIDL_MODULE = 'content_events' + diff --git a/content/html/content/public/Makefile.in b/content/html/content/public/Makefile.in index f17452f32e8..5ef5259e747 100644 --- a/content/html/content/public/Makefile.in +++ b/content/html/content/public/Makefile.in @@ -11,15 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = content -XPIDL_MODULE = content_html - -XPIDLSRCS = \ - nsIFormSubmitObserver.idl \ - nsIPhonetic.idl \ - nsIHTMLMenu.idl \ - nsIMenuBuilder.idl \ - $(NULL) - EXPORTS = \ nsIConstraintValidation.h \ nsIFormControl.h \ diff --git a/content/html/content/public/moz.build b/content/html/content/public/moz.build index 58ce5e27339..7eaf2db59ca 100644 --- a/content/html/content/public/moz.build +++ b/content/html/content/public/moz.build @@ -3,3 +3,12 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIFormSubmitObserver.idl', + 'nsIHTMLMenu.idl', + 'nsIMenuBuilder.idl', + 'nsIPhonetic.idl', +] + +XPIDL_MODULE = 'content_html' + diff --git a/content/html/document/public/Makefile.in b/content/html/document/public/Makefile.in index 5c104300340..0ec4201a0b5 100644 --- a/content/html/document/public/Makefile.in +++ b/content/html/document/public/Makefile.in @@ -11,10 +11,4 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = content -XPIDL_MODULE = content_htmldoc - -XPIDLSRCS = \ - nsIImageDocument.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/content/html/document/public/moz.build b/content/html/document/public/moz.build index 58ce5e27339..1f092b195d0 100644 --- a/content/html/document/public/moz.build +++ b/content/html/document/public/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIImageDocument.idl', +] + +XPIDL_MODULE = 'content_htmldoc' + diff --git a/content/xslt/public/Makefile.in b/content/xslt/public/Makefile.in index 46e28749f8f..2411de4d12a 100644 --- a/content/xslt/public/Makefile.in +++ b/content/xslt/public/Makefile.in @@ -10,21 +10,9 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = content -XPIDL_MODULE = content_xslt - EXPORTS = \ nsIDocumentTransformer.h \ $(NULL) -XPIDLSRCS = \ - nsIXSLTException.idl \ - nsIXSLTProcessor.idl \ - nsIXSLTProcessorPrivate.idl \ - txIFunctionEvaluationContext.idl \ - txINodeSet.idl \ - txIEXSLTRegExFunctions.idl \ - txIXPathObject.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/content/xslt/public/moz.build b/content/xslt/public/moz.build index 58ce5e27339..544e1ef2916 100644 --- a/content/xslt/public/moz.build +++ b/content/xslt/public/moz.build @@ -3,3 +3,15 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIXSLTException.idl', + 'nsIXSLTProcessor.idl', + 'nsIXSLTProcessorPrivate.idl', + 'txIEXSLTRegExFunctions.idl', + 'txIFunctionEvaluationContext.idl', + 'txINodeSet.idl', + 'txIXPathObject.idl', +] + +XPIDL_MODULE = 'content_xslt' + diff --git a/content/xul/content/public/Makefile.in b/content/xul/content/public/Makefile.in index 3b31bab33a8..64225bb77ba 100644 --- a/content/xul/content/public/Makefile.in +++ b/content/xul/content/public/Makefile.in @@ -11,10 +11,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = xul -ifdef MOZ_XUL -XPIDLSRCS = \ - nsIXULContextMenuBuilder.idl \ - $(NULL) -endif - include $(topsrcdir)/config/rules.mk diff --git a/content/xul/content/public/moz.build b/content/xul/content/public/moz.build index 58ce5e27339..318072e4bb9 100644 --- a/content/xul/content/public/moz.build +++ b/content/xul/content/public/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +if CONFIG['MOZ_XUL']: + XPIDL_SOURCES += [ + 'nsIXULContextMenuBuilder.idl', + ] + diff --git a/content/xul/document/public/Makefile.in b/content/xul/document/public/Makefile.in index 0a0ae01aea3..98d79d843ff 100644 --- a/content/xul/document/public/Makefile.in +++ b/content/xul/document/public/Makefile.in @@ -13,16 +13,7 @@ include $(DEPTH)/config/autoconf.mk MODULE = xuldoc GRE_MODULE = 1 -XPIDLSRCS = \ - nsIController.idl \ - nsIControllers.idl \ - $(NULL) - ifdef MOZ_XUL -XPIDLSRCS += \ - nsIXULOverlayProvider.idl \ - $(NULL) - EXPORTS = \ nsIXULDocument.h \ $(NULL) diff --git a/content/xul/document/public/moz.build b/content/xul/document/public/moz.build index 58ce5e27339..d15c86cb6d2 100644 --- a/content/xul/document/public/moz.build +++ b/content/xul/document/public/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIController.idl', + 'nsIControllers.idl', +] + +if CONFIG['MOZ_XUL']: + XPIDL_SOURCES += [ + 'nsIXULOverlayProvider.idl', + ] + diff --git a/content/xul/templates/public/Makefile.in b/content/xul/templates/public/Makefile.in index 2d06176fee6..3ed8bb7110b 100644 --- a/content/xul/templates/public/Makefile.in +++ b/content/xul/templates/public/Makefile.in @@ -12,14 +12,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = xultmpl -XPIDLSRCS = \ - nsIXULSortService.idl \ - nsIXULTemplateBuilder.idl \ - nsIXULBuilderListener.idl \ - nsIXULTemplateQueryProcessor.idl \ - nsIXULTemplateResult.idl \ - nsIXULTemplateRuleFilter.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/content/xul/templates/public/moz.build b/content/xul/templates/public/moz.build index 58ce5e27339..1e730cc307e 100644 --- a/content/xul/templates/public/moz.build +++ b/content/xul/templates/public/moz.build @@ -3,3 +3,12 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIXULBuilderListener.idl', + 'nsIXULSortService.idl', + 'nsIXULTemplateBuilder.idl', + 'nsIXULTemplateQueryProcessor.idl', + 'nsIXULTemplateResult.idl', + 'nsIXULTemplateRuleFilter.idl', +] + diff --git a/docshell/base/Makefile.in b/docshell/base/Makefile.in index c894bb0ea2f..991e347e619 100644 --- a/docshell/base/Makefile.in +++ b/docshell/base/Makefile.in @@ -19,38 +19,6 @@ ifdef MOZ_TOOLKIT_SEARCH DEFINES += -DMOZ_TOOLKIT_SEARCH endif -SDK_XPIDLSRCS = \ - nsIClipboardCommands.idl \ - $(NULL) - -XPIDLSRCS = \ - nsCDefaultURIFixup.idl \ - nsIDocShell.idl \ - nsIDocShellLoadInfo.idl \ - nsIDocShellTreeItem.idl \ - nsIDocShellTreeNode.idl \ - nsIDocShellTreeOwner.idl \ - nsIDocShellHistory.idl \ - nsIGlobalHistory2.idl \ - nsIMarkupDocumentViewer.idl \ - nsIScrollable.idl \ - nsITextScroll.idl \ - nsIDocCharset.idl \ - nsIWebNavigation.idl \ - nsIWebNavigationInfo.idl \ - nsIContentViewer.idl \ - nsIContentViewerEdit.idl \ - nsIContentViewerFile.idl \ - nsIURIFixup.idl \ - nsIWebPageDescriptor.idl \ - nsIDownloadHistory.idl \ - nsILoadContext.idl \ - nsIRefreshURI.idl \ - nsIContentViewerContainer.idl \ - nsIDocumentLoaderFactory.idl \ - nsIPrivacyTransitionObserver.idl \ - $(NULL) - EXPORTS = \ nsDocShellLoadTypes.h \ nsILinkHandler.h \ diff --git a/docshell/base/moz.build b/docshell/base/moz.build index 58ce5e27339..136c6bf5c06 100644 --- a/docshell/base/moz.build +++ b/docshell/base/moz.build @@ -3,3 +3,32 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsCDefaultURIFixup.idl', + 'nsIClipboardCommands.idl', + 'nsIContentViewer.idl', + 'nsIContentViewerContainer.idl', + 'nsIContentViewerEdit.idl', + 'nsIContentViewerFile.idl', + 'nsIDocCharset.idl', + 'nsIDocShell.idl', + 'nsIDocShellHistory.idl', + 'nsIDocShellLoadInfo.idl', + 'nsIDocShellTreeItem.idl', + 'nsIDocShellTreeNode.idl', + 'nsIDocShellTreeOwner.idl', + 'nsIDocumentLoaderFactory.idl', + 'nsIDownloadHistory.idl', + 'nsIGlobalHistory2.idl', + 'nsILoadContext.idl', + 'nsIMarkupDocumentViewer.idl', + 'nsIPrivacyTransitionObserver.idl', + 'nsIRefreshURI.idl', + 'nsIScrollable.idl', + 'nsITextScroll.idl', + 'nsIURIFixup.idl', + 'nsIWebNavigation.idl', + 'nsIWebNavigationInfo.idl', + 'nsIWebPageDescriptor.idl', +] + diff --git a/docshell/shistory/public/Makefile.in b/docshell/shistory/public/Makefile.in index 1d7ebe6b2be..0502e37ffa6 100644 --- a/docshell/shistory/public/Makefile.in +++ b/docshell/shistory/public/Makefile.in @@ -13,19 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = shistory GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsIHistoryEntry.idl \ - nsISHistory.idl \ - nsISHistoryListener.idl \ - $(NULL) - -XPIDLSRCS = \ - nsISHEntry.idl \ - nsISHContainer.idl \ - nsISHTransaction.idl \ - nsISHistoryInternal.idl \ - nsIBFCacheEntry.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/docshell/shistory/public/moz.build b/docshell/shistory/public/moz.build index 58ce5e27339..49f2d177377 100644 --- a/docshell/shistory/public/moz.build +++ b/docshell/shistory/public/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIBFCacheEntry.idl', + 'nsIHistoryEntry.idl', + 'nsISHContainer.idl', + 'nsISHEntry.idl', + 'nsISHTransaction.idl', + 'nsISHistory.idl', + 'nsISHistoryInternal.idl', + 'nsISHistoryListener.idl', +] + diff --git a/dom/activities/interfaces/Makefile.in b/dom/activities/interfaces/Makefile.in index b039c16a8f6..fd7d3bb74a5 100644 --- a/dom/activities/interfaces/Makefile.in +++ b/dom/activities/interfaces/Makefile.in @@ -9,21 +9,5 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -XPIDL_MODULE = dom_activities - -XPIDLSRCS = nsIDOMActivity.idl \ - nsIDOMActivityOptions.idl \ - nsIDOMActivityHandlerDescription.idl \ - nsIDOMActivityRequestHandler.idl \ - nsIDOMNavigatorActivities.idl \ - nsIActivityProxy.idl \ - nsIActivityUIGlue.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/base \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/activities/interfaces/moz.build b/dom/activities/interfaces/moz.build index 58ce5e27339..e62ee75e89d 100644 --- a/dom/activities/interfaces/moz.build +++ b/dom/activities/interfaces/moz.build @@ -3,3 +3,21 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIActivityProxy.idl', + 'nsIActivityUIGlue.idl', + 'nsIDOMActivity.idl', + 'nsIDOMActivityHandlerDescription.idl', + 'nsIDOMActivityOptions.idl', + 'nsIDOMActivityRequestHandler.idl', + 'nsIDOMNavigatorActivities.idl', +] + +XPIDL_MODULE = 'dom_activities' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/base', + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/alarm/Makefile.in b/dom/alarm/Makefile.in index 1e4ee63b7c8..88abcbdf360 100644 --- a/dom/alarm/Makefile.in +++ b/dom/alarm/Makefile.in @@ -10,7 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_alarm LIBRARY_NAME = domalarm_s LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 @@ -31,11 +30,6 @@ EXTRA_JS_MODULES = \ AlarmService.jsm \ $(NULL) -XPIDLSRCS = \ - nsIDOMAlarmsManager.idl \ - nsIAlarmHalService.idl \ - $(NULL) - EXPORTS_mozilla/dom/alarm = \ AlarmHalService.h \ $(NULL) @@ -48,6 +42,3 @@ include $(topsrcdir)/config/config.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/alarm/moz.build b/dom/alarm/moz.build index 493f80dc6ef..d06aa65684b 100644 --- a/dom/alarm/moz.build +++ b/dom/alarm/moz.build @@ -4,3 +4,15 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIAlarmHalService.idl', + 'nsIDOMAlarmsManager.idl', +] + +XPIDL_MODULE = 'dom_alarm' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/audiochannel/Makefile.in b/dom/audiochannel/Makefile.in index 7b8af7f0467..cc8851e3dd9 100644 --- a/dom/audiochannel/Makefile.in +++ b/dom/audiochannel/Makefile.in @@ -21,7 +21,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domaudiochannel_s -XPIDL_MODULE = dom_audiochannel LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 EXPORT_LIBRARY = 1 @@ -44,11 +43,6 @@ CPPSRCS += \ AudioChannelAgent.cpp \ $(NULL) -XPIDLSRCS = \ - nsIAudioChannelAgent.idl \ - $(NULL) - - include $(topsrcdir)/config/config.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk include $(topsrcdir)/config/rules.mk diff --git a/dom/audiochannel/moz.build b/dom/audiochannel/moz.build index 5243706d0ac..0fafa5bf66f 100644 --- a/dom/audiochannel/moz.build +++ b/dom/audiochannel/moz.build @@ -4,3 +4,10 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_TOOL_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsIAudioChannelAgent.idl', +] + +XPIDL_MODULE = 'dom_audiochannel' + diff --git a/dom/base/Makefile.in b/dom/base/Makefile.in index 871a4dab477..767a4d4a2dd 100644 --- a/dom/base/Makefile.in +++ b/dom/base/Makefile.in @@ -33,15 +33,6 @@ EXTRA_JS_MODULES += \ ObjectWrapper.jsm \ $(NULL) -XPIDLSRCS = \ - nsIDOMDOMError.idl \ - nsIDOMDOMRequest.idl \ - nsIDOMDOMCursor.idl \ - nsIEntropyCollector.idl \ - nsIScriptChannel.idl \ - nsISiteSpecificUserAgent.idl \ - $(NULL) - EXPORTS = \ nsDOMCID.h \ nsDOMClassInfoClasses.h \ @@ -148,7 +139,3 @@ CXXFLAGS += $(TK_CFLAGS) LDFLAGS += $(TK_LIBS) endif -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/base/moz.build b/dom/base/moz.build index 493f80dc6ef..ae7f4505844 100644 --- a/dom/base/moz.build +++ b/dom/base/moz.build @@ -4,3 +4,18 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIDOMDOMCursor.idl', + 'nsIDOMDOMError.idl', + 'nsIDOMDOMRequest.idl', + 'nsIEntropyCollector.idl', + 'nsIScriptChannel.idl', + 'nsISiteSpecificUserAgent.idl', +] + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/battery/Makefile.in b/dom/battery/Makefile.in index eda8995412f..ab48e8fcbaa 100644 --- a/dom/battery/Makefile.in +++ b/dom/battery/Makefile.in @@ -10,7 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk LIBRARY_NAME = dom_battery_s -XPIDL_MODULE = dom_battery LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS := 1 @@ -32,15 +31,7 @@ LOCAL_INCLUDES = \ -I$(topsrcdir)/content/events/src \ $(NULL) -XPIDLSRCS = \ - nsINavigatorBattery.idl \ - $(NULL) - include $(topsrcdir)/config/config.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/battery/moz.build b/dom/battery/moz.build index 493f80dc6ef..702c2be6304 100644 --- a/dom/battery/moz.build +++ b/dom/battery/moz.build @@ -4,3 +4,15 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsINavigatorBattery.idl', +] + +XPIDL_MODULE = 'dom_battery' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/bluetooth/Makefile.in b/dom/bluetooth/Makefile.in index 01dc63fe1cc..133101ca03a 100644 --- a/dom/bluetooth/Makefile.in +++ b/dom/bluetooth/Makefile.in @@ -35,7 +35,6 @@ ifneq (,$(MOZ_B2G_BT)) MODULE = dom LIBRARY_NAME = dombluetooth_s -XPIDL_MODULE = dom_bluetooth LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 @@ -62,15 +61,6 @@ ifdef MOZ_B2G_RIL CPPSRCS += BluetoothTelephonyListener.cpp endif -XPIDLSRCS = \ - nsIDOMNavigatorBluetooth.idl \ - nsIDOMBluetoothManager.idl \ - nsIDOMBluetoothAdapter.idl \ - nsIDOMBluetoothDevice.idl \ - nsIDOMBluetoothDeviceEvent.idl \ - nsIDOMBluetoothDeviceAddressEvent.idl \ - $(NULL) - ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) VPATH += \ $(srcdir)/linux \ diff --git a/dom/bluetooth/moz.build b/dom/bluetooth/moz.build index 0d9537c68a8..109aa5a1a29 100644 --- a/dom/bluetooth/moz.build +++ b/dom/bluetooth/moz.build @@ -13,3 +13,14 @@ # See the License for the specific language governing permissions and # limitations under the License. +if CONFIG['MOZ_B2G_BT']: + XPIDL_MODULE = 'dom_bluetooth' + XPIDL_SOURCES += [ + 'nsIDOMNavigatorBluetooth.idl', + 'nsIDOMBluetoothManager.idl', + 'nsIDOMBluetoothAdapter.idl', + 'nsIDOMBluetoothDevice.idl', + 'nsIDOMBluetoothDeviceEvent.idl', + 'nsIDOMBluetoothDeviceAddressEvent.idl', + ] + diff --git a/dom/browser-element/Makefile.in b/dom/browser-element/Makefile.in index 60d209f33fc..bac375cec32 100644 --- a/dom/browser-element/Makefile.in +++ b/dom/browser-element/Makefile.in @@ -11,18 +11,12 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = dom_browserelement_s -XPIDL_MODULE = dom_browserelement LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS := 1 include $(topsrcdir)/dom/dom-config.mk -XPIDLSRCS = \ - nsIOpenWindowEventDetail.idl \ - nsIAsyncScrollEventDetail.idl \ - $(NULL) - EXPORTS = \ nsOpenWindowEventDetail.h \ nsAsyncScrollEventDetail.h \ diff --git a/dom/browser-element/moz.build b/dom/browser-element/moz.build index ddf140810ff..847fe2cbd52 100644 --- a/dom/browser-element/moz.build +++ b/dom/browser-element/moz.build @@ -4,3 +4,11 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['mochitest'] + +XPIDL_SOURCES += [ + 'nsIAsyncScrollEventDetail.idl', + 'nsIOpenWindowEventDetail.idl', +] + +XPIDL_MODULE = 'dom_browserelement' + diff --git a/dom/camera/Makefile.in b/dom/camera/Makefile.in index 030ba99d039..75a8e8654d9 100644 --- a/dom/camera/Makefile.in +++ b/dom/camera/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domcamera_s -XPIDL_MODULE = dom_camera LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS := 1 @@ -53,11 +52,6 @@ CPPSRCS += \ $(NULL) endif -XPIDLSRCS = \ - nsIDOMNavigatorCamera.idl \ - nsIDOMCameraManager.idl \ - $(NULL) - EXPORTS = \ CameraCommon.h \ DOMCameraManager.h \ @@ -68,9 +62,3 @@ EXPORTS = \ include $(topsrcdir)/config/rules.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/base \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - -I$(topsrcdir)/dom/media \ - $(NULL) diff --git a/dom/camera/moz.build b/dom/camera/moz.build index 58ce5e27339..8128f9548b8 100644 --- a/dom/camera/moz.build +++ b/dom/camera/moz.build @@ -3,3 +3,17 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMCameraManager.idl', + 'nsIDOMNavigatorCamera.idl', +] + +XPIDL_MODULE = 'dom_camera' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/base', + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', + '-I$(topsrcdir)/dom/media', +] + diff --git a/dom/cellbroadcast/interfaces/Makefile.in b/dom/cellbroadcast/interfaces/Makefile.in index 5eabcbafcc8..143590c476a 100644 --- a/dom/cellbroadcast/interfaces/Makefile.in +++ b/dom/cellbroadcast/interfaces/Makefile.in @@ -9,22 +9,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -XPIDL_MODULE = dom_cellbroadcast - include $(topsrcdir)/dom/dom-config.mk -XPIDLSRCS = \ - nsICellBroadcastProvider.idl \ - nsIDOMMozCellBroadcast.idl \ - nsIDOMMozCellBroadcastEvent.idl \ - nsIDOMMozCellBroadcastMessage.idl \ - nsINavigatorCellBroadcast.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/base \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/cellbroadcast/interfaces/moz.build b/dom/cellbroadcast/interfaces/moz.build index 58ce5e27339..2ba0713bab1 100644 --- a/dom/cellbroadcast/interfaces/moz.build +++ b/dom/cellbroadcast/interfaces/moz.build @@ -3,3 +3,19 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsICellBroadcastProvider.idl', + 'nsIDOMMozCellBroadcast.idl', + 'nsIDOMMozCellBroadcastEvent.idl', + 'nsIDOMMozCellBroadcastMessage.idl', + 'nsINavigatorCellBroadcast.idl', +] + +XPIDL_MODULE = 'dom_cellbroadcast' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/base', + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/cellbroadcast/src/Makefile.in b/dom/cellbroadcast/src/Makefile.in index b1fce366ab0..5ce0236b54c 100644 --- a/dom/cellbroadcast/src/Makefile.in +++ b/dom/cellbroadcast/src/Makefile.in @@ -10,7 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk LIBRARY_NAME = dom_cellbroadcast_s -XPIDL_MODULE = dom_cellbroadcast LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS := 1 diff --git a/dom/cellbroadcast/src/moz.build b/dom/cellbroadcast/src/moz.build index 58ce5e27339..11ee496ad6c 100644 --- a/dom/cellbroadcast/src/moz.build +++ b/dom/cellbroadcast/src/moz.build @@ -3,3 +3,5 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_MODULE = 'dom_cellbroadcast' + diff --git a/dom/contacts/Makefile.in b/dom/contacts/Makefile.in index e780ff8654a..508ce3112d4 100644 --- a/dom/contacts/Makefile.in +++ b/dom/contacts/Makefile.in @@ -17,7 +17,6 @@ MODULE = dom LIBRARY_NAME = jsdomcontacts_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = dom_contacts GRE_MODULE = 1 EXTRA_COMPONENTS = \ diff --git a/dom/contacts/moz.build b/dom/contacts/moz.build index d0193307adb..5e10822c569 100644 --- a/dom/contacts/moz.build +++ b/dom/contacts/moz.build @@ -4,3 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_MODULE = 'dom_contacts' + diff --git a/dom/devicestorage/Makefile.in b/dom/devicestorage/Makefile.in index 887c5247e21..fe9be462262 100644 --- a/dom/devicestorage/Makefile.in +++ b/dom/devicestorage/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domdevicestorage_s -XPIDL_MODULE = dom_devicestorage LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 ifndef _MSC_VER diff --git a/dom/devicestorage/moz.build b/dom/devicestorage/moz.build index cdec8dee250..192a2bbda0a 100644 --- a/dom/devicestorage/moz.build +++ b/dom/devicestorage/moz.build @@ -4,3 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test', 'ipc'] + +XPIDL_MODULE = 'dom_devicestorage' + diff --git a/dom/file/Makefile.in b/dom/file/Makefile.in index d9401b0971f..e410578b3db 100644 --- a/dom/file/Makefile.in +++ b/dom/file/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domfile_s -XPIDL_MODULE = dom_file LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 ifndef _MSC_VER @@ -60,17 +59,5 @@ EXPORTS_mozilla/dom/file = \ ArchiveRequest.h \ $(NULL) -XPIDLSRCS = \ - nsIDOMFileHandle.idl \ - nsIDOMFileRequest.idl \ - nsIDOMLockedFile.idl \ - nsIDOMArchiveRequest.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/base \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/file/moz.build b/dom/file/moz.build index 493f80dc6ef..e50939946f6 100644 --- a/dom/file/moz.build +++ b/dom/file/moz.build @@ -4,3 +4,19 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIDOMArchiveRequest.idl', + 'nsIDOMFileHandle.idl', + 'nsIDOMFileRequest.idl', + 'nsIDOMLockedFile.idl', +] + +XPIDL_MODULE = 'dom_file' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/base', + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/fm/Makefile.in b/dom/fm/Makefile.in index 491f6eff127..c17622df1d4 100644 --- a/dom/fm/Makefile.in +++ b/dom/fm/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domfm_s -XPIDL_MODULE = dom_fm LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 @@ -22,11 +21,6 @@ CPPSRCS += \ nsFMRadioSettings.cpp \ $(NULL) -XPIDLSRCS = \ - nsIDOMFMRadio.idl \ - nsIFMRadio.idl \ - $(NULL) - EXTRA_COMPONENTS = \ DOMFMRadioChild.js \ DOMFMRadio.manifest \ @@ -39,7 +33,3 @@ EXTRA_JS_MODULES = \ include $(topsrcdir)/config/rules.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) - diff --git a/dom/fm/moz.build b/dom/fm/moz.build index 58ce5e27339..04bd3594e60 100644 --- a/dom/fm/moz.build +++ b/dom/fm/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMFMRadio.idl', + 'nsIFMRadio.idl', +] + +XPIDL_MODULE = 'dom_fm' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/icc/interfaces/Makefile.in b/dom/icc/interfaces/Makefile.in index 6f87a108734..09c8567a746 100644 --- a/dom/icc/interfaces/Makefile.in +++ b/dom/icc/interfaces/Makefile.in @@ -9,19 +9,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -XPIDL_MODULE = dom_icc - include $(topsrcdir)/dom/dom-config.mk -XPIDLSRCS = \ - nsIDOMIccManager.idl \ - SimToolKit.idl \ - nsIDOMICCCardLockErrorEvent.idl \ - nsIIccProvider.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/icc/interfaces/moz.build b/dom/icc/interfaces/moz.build index 58ce5e27339..593479e5d83 100644 --- a/dom/icc/interfaces/moz.build +++ b/dom/icc/interfaces/moz.build @@ -3,3 +3,17 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'SimToolKit.idl', + 'nsIDOMICCCardLockErrorEvent.idl', + 'nsIDOMIccManager.idl', + 'nsIIccProvider.idl', +] + +XPIDL_MODULE = 'dom_icc' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/indexedDB/Makefile.in b/dom/indexedDB/Makefile.in index 72faaf32ddb..d001f8f9c28 100644 --- a/dom/indexedDB/Makefile.in +++ b/dom/indexedDB/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = dom_indexeddb_s -XPIDL_MODULE = dom_indexeddb LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 ifndef _MSC_VER @@ -79,27 +78,7 @@ DEFINES += -D_IMPL_NS_LAYOUT # Make sure to quickstub as much as possible here! See # js/xpconnect/src/dom_quickstubs.qsconf. -XPIDLSRCS = \ - nsIIDBCursor.idl \ - nsIIDBCursorWithValue.idl \ - nsIIDBDatabase.idl \ - nsIIDBFactory.idl \ - nsIIDBFileHandle.idl \ - nsIIDBIndex.idl \ - nsIIDBKeyRange.idl \ - nsIIDBObjectStore.idl \ - nsIIDBRequest.idl \ - nsIIDBTransaction.idl \ - nsIIDBVersionChangeEvent.idl \ - nsIIDBOpenDBRequest.idl \ - nsIIndexedDatabaseManager.idl \ - $(NULL) - include $(topsrcdir)/config/config.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/indexedDB/moz.build b/dom/indexedDB/moz.build index 3bddd0eef56..672e1cd01f1 100644 --- a/dom/indexedDB/moz.build +++ b/dom/indexedDB/moz.build @@ -5,3 +5,27 @@ DIRS += ['ipc'] TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIIDBCursor.idl', + 'nsIIDBCursorWithValue.idl', + 'nsIIDBDatabase.idl', + 'nsIIDBFactory.idl', + 'nsIIDBFileHandle.idl', + 'nsIIDBIndex.idl', + 'nsIIDBKeyRange.idl', + 'nsIIDBObjectStore.idl', + 'nsIIDBOpenDBRequest.idl', + 'nsIIDBRequest.idl', + 'nsIIDBTransaction.idl', + 'nsIIDBVersionChangeEvent.idl', + 'nsIIndexedDatabaseManager.idl', +] + +XPIDL_MODULE = 'dom_indexeddb' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/interfaces/apps/Makefile.in b/dom/interfaces/apps/Makefile.in index 1006aaa1c35..7e7a4ba3f49 100644 --- a/dom/interfaces/apps/Makefile.in +++ b/dom/interfaces/apps/Makefile.in @@ -11,21 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_apps GRE_MODULE = 1 -XPIDLSRCS = \ - mozIApplication.idl \ - mozIApplicationClearPrivateDataParams.idl \ - nsIDOMApplicationRegistry.idl \ - nsIDOMApplicationRegistry2.idl \ - nsIAppsService.idl \ - nsIDOMMozApplicationEvent.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/interfaces/apps/moz.build b/dom/interfaces/apps/moz.build index 58ce5e27339..2b15c485643 100644 --- a/dom/interfaces/apps/moz.build +++ b/dom/interfaces/apps/moz.build @@ -3,3 +3,19 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'mozIApplication.idl', + 'mozIApplicationClearPrivateDataParams.idl', + 'nsIAppsService.idl', + 'nsIDOMApplicationRegistry.idl', + 'nsIDOMApplicationRegistry2.idl', + 'nsIDOMMozApplicationEvent.idl', +] + +XPIDL_MODULE = 'dom_apps' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/interfaces/base/Makefile.in b/dom/interfaces/base/Makefile.in index 312aaf5882f..46feffaffb4 100644 --- a/dom/interfaces/base/Makefile.in +++ b/dom/interfaces/base/Makefile.in @@ -11,70 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_base GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - domstubs.idl \ - nsIDOMBarProp.idl \ - nsIDOMWindow.idl \ - nsIDOMWindowCollection.idl \ - nsIDOMWindowUtils.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIFrameRequestCallback.idl \ - nsIBrowserDOMWindow.idl \ - nsIContentPermissionPrompt.idl \ - nsIContentPrefService.idl \ - nsIContentPrefService2.idl \ - nsIContentURIGrouper.idl \ - nsIDOMClientInformation.idl \ - nsIDOMConstructor.idl \ - nsIDOMCRMFObject.idl \ - nsIDOMHistory.idl \ - nsIDOMLocation.idl \ - nsIDOMMediaQueryList.idl \ - nsIDOMMimeType.idl \ - nsIDOMMimeTypeArray.idl \ - nsIDOMNavigator.idl \ - nsIDOMPkcs11.idl \ - nsIDOMPlugin.idl \ - nsIDOMPluginArray.idl \ - nsIDOMScreen.idl \ - nsIDOMJSWindow.idl \ - nsIDOMModalContentWindow.idl \ - nsIDOMChromeWindow.idl \ - nsIDOMClientRect.idl \ - nsIDOMClientRectList.idl \ - nsIFocusManager.idl \ - nsIQueryContentEventResult.idl \ - nsITabChild.idl \ - nsITabParent.idl \ - nsIDOMGlobalPropertyInitializer.idl \ - nsIDOMGlobalObjectConstructor.idl \ - nsIStructuredCloneContainer.idl \ - nsIIdleObserver.idl \ - $(NULL) - -ifdef MOZ_DISABLE_CRYPTOLEGACY -XPIDLSRCS += \ - nsIDOMCrypto.idl \ - $(NULL) -else -XPIDLSRCS += \ - nsIDOMCryptoLegacy.idl \ - $(NULL) -endif - -ifdef MOZ_B2G -XPIDLSRCS += \ - nsIDOMWindowB2G.idl \ - $(NULL) -endif - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/interfaces/base/moz.build b/dom/interfaces/base/moz.build index 58ce5e27339..7a721effc9d 100644 --- a/dom/interfaces/base/moz.build +++ b/dom/interfaces/base/moz.build @@ -3,3 +3,63 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'domstubs.idl', + 'nsIBrowserDOMWindow.idl', + 'nsIContentPermissionPrompt.idl', + 'nsIContentPrefService.idl', + 'nsIContentPrefService2.idl', + 'nsIContentURIGrouper.idl', + 'nsIDOMBarProp.idl', + 'nsIDOMCRMFObject.idl', + 'nsIDOMChromeWindow.idl', + 'nsIDOMClientInformation.idl', + 'nsIDOMClientRect.idl', + 'nsIDOMClientRectList.idl', + 'nsIDOMConstructor.idl', + 'nsIDOMGlobalObjectConstructor.idl', + 'nsIDOMGlobalPropertyInitializer.idl', + 'nsIDOMHistory.idl', + 'nsIDOMJSWindow.idl', + 'nsIDOMLocation.idl', + 'nsIDOMMediaQueryList.idl', + 'nsIDOMMimeType.idl', + 'nsIDOMMimeTypeArray.idl', + 'nsIDOMModalContentWindow.idl', + 'nsIDOMNavigator.idl', + 'nsIDOMPkcs11.idl', + 'nsIDOMPlugin.idl', + 'nsIDOMPluginArray.idl', + 'nsIDOMScreen.idl', + 'nsIDOMWindow.idl', + 'nsIDOMWindowCollection.idl', + 'nsIDOMWindowUtils.idl', + 'nsIFocusManager.idl', + 'nsIFrameRequestCallback.idl', + 'nsIIdleObserver.idl', + 'nsIQueryContentEventResult.idl', + 'nsIStructuredCloneContainer.idl', + 'nsITabChild.idl', + 'nsITabParent.idl', +] + +if CONFIG['MOZ_DISABLE_CRYPTOLEGACY']: + XPIDL_SOURCES += [ + 'nsIDOMCrypto.idl', + ] +else: + XPIDL_SOURCES += [ + 'nsIDOMCryptoLegacy.idl', + ] + +if CONFIG['MOZ_B2G']: + XPIDL_SOURCES += [ + 'nsIDOMWindowB2G.idl', + ] + +XPIDL_MODULE = 'dom_base' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/interfaces/canvas/Makefile.in b/dom/interfaces/canvas/Makefile.in index 576531800f8..5c4b1eff620 100644 --- a/dom/interfaces/canvas/Makefile.in +++ b/dom/interfaces/canvas/Makefile.in @@ -11,12 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_canvas GRE_MODULE = 1 -XPIDLSRCS = \ - nsIDOMCanvasRenderingContext2D.idl \ - nsIDOMWebGLRenderingContext.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/dom/interfaces/canvas/moz.build b/dom/interfaces/canvas/moz.build index 58ce5e27339..8ed023bbc78 100644 --- a/dom/interfaces/canvas/moz.build +++ b/dom/interfaces/canvas/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMCanvasRenderingContext2D.idl', + 'nsIDOMWebGLRenderingContext.idl', +] + +XPIDL_MODULE = 'dom_canvas' + diff --git a/dom/interfaces/contacts/Makefile.in b/dom/interfaces/contacts/Makefile.in index 48b21f9a382..4561e503ca2 100644 --- a/dom/interfaces/contacts/Makefile.in +++ b/dom/interfaces/contacts/Makefile.in @@ -10,18 +10,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_contacts GRE_MODULE = 1 -XPIDLSRCS = \ - nsIDOMContactProperties.idl \ - nsIDOMContactManager.idl \ - nsIDOMMozContactChangeEvent.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/interfaces/contacts/moz.build b/dom/interfaces/contacts/moz.build index 58ce5e27339..c56c74d295e 100644 --- a/dom/interfaces/contacts/moz.build +++ b/dom/interfaces/contacts/moz.build @@ -3,3 +3,16 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMContactManager.idl', + 'nsIDOMContactProperties.idl', + 'nsIDOMMozContactChangeEvent.idl', +] + +XPIDL_MODULE = 'dom_contacts' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/interfaces/core/Makefile.in b/dom/interfaces/core/Makefile.in index 94f8a258218..46feffaffb4 100644 --- a/dom/interfaces/core/Makefile.in +++ b/dom/interfaces/core/Makefile.in @@ -11,38 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_core GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsIDOMAttr.idl \ - nsIDOMCDATASection.idl \ - nsIDOMCharacterData.idl \ - nsIDOMComment.idl \ - nsIDOMDOMException.idl \ - nsIDOMDOMImplementation.idl \ - nsIDOMDocument.idl \ - nsIDOMDocumentFragment.idl \ - nsIDOMDocumentType.idl \ - nsIDOMElement.idl \ - nsIDOMMozNamedAttrMap.idl \ - nsIDOMNode.idl \ - nsIDOMNodeList.idl \ - nsIDOMProcessingInstruction.idl \ - nsIDOMText.idl \ - nsIDocumentRegister.idl \ - $(NULL) -XPIDLSRCS = \ - nsIDOMDOMStringList.idl \ - nsIDOMXMLDocument.idl \ - nsIDOMUserDataHandler.idl \ - nsIDOMNSEditableElement.idl \ - nsIDOMNodeSelector.idl \ - nsIInlineEventHandlers.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/core/moz.build b/dom/interfaces/core/moz.build index 58ce5e27339..0d1c23d0853 100644 --- a/dom/interfaces/core/moz.build +++ b/dom/interfaces/core/moz.build @@ -3,3 +3,34 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMAttr.idl', + 'nsIDOMCDATASection.idl', + 'nsIDOMCharacterData.idl', + 'nsIDOMComment.idl', + 'nsIDOMDOMException.idl', + 'nsIDOMDOMImplementation.idl', + 'nsIDOMDOMStringList.idl', + 'nsIDOMDocument.idl', + 'nsIDOMDocumentFragment.idl', + 'nsIDOMDocumentType.idl', + 'nsIDOMElement.idl', + 'nsIDOMMozNamedAttrMap.idl', + 'nsIDOMNSEditableElement.idl', + 'nsIDOMNode.idl', + 'nsIDOMNodeList.idl', + 'nsIDOMNodeSelector.idl', + 'nsIDOMProcessingInstruction.idl', + 'nsIDOMText.idl', + 'nsIDOMUserDataHandler.idl', + 'nsIDOMXMLDocument.idl', + 'nsIDocumentRegister.idl', + 'nsIInlineEventHandlers.idl', +] + +XPIDL_MODULE = 'dom_core' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/css/Makefile.in b/dom/interfaces/css/Makefile.in index ccea2c5acd6..46feffaffb4 100644 --- a/dom/interfaces/css/Makefile.in +++ b/dom/interfaces/css/Makefile.in @@ -11,41 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_css GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsIDOMCSSPrimitiveValue.idl \ - nsIDOMCSSRule.idl \ - nsIDOMCSSRuleList.idl \ - nsIDOMCSSStyleDeclaration.idl \ - nsIDOMCSSStyleSheet.idl \ - nsIDOMCSSValue.idl \ - nsIDOMCSSValueList.idl \ - nsIDOMElementCSSInlineStyle.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIDOMCSSCharsetRule.idl \ - nsIDOMCSSConditionRule.idl \ - nsIDOMCSSFontFaceRule.idl \ - nsIDOMCSSGroupingRule.idl \ - nsIDOMCSSImportRule.idl \ - nsIDOMCSSMediaRule.idl \ - nsIDOMCSSMozDocumentRule.idl \ - nsIDOMCSSSupportsRule.idl \ - nsIDOMMozCSSKeyframeRule.idl \ - nsIDOMMozCSSKeyframesRule.idl \ - nsIDOMCSSPageRule.idl \ - nsIDOMCSSStyleRule.idl \ - nsIDOMCSSUnknownRule.idl \ - nsIDOMCounter.idl \ - nsIDOMRect.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/stylesheets \ - $(NULL) diff --git a/dom/interfaces/css/moz.build b/dom/interfaces/css/moz.build index 58ce5e27339..6af8a578498 100644 --- a/dom/interfaces/css/moz.build +++ b/dom/interfaces/css/moz.build @@ -3,3 +3,36 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMCSSCharsetRule.idl', + 'nsIDOMCSSConditionRule.idl', + 'nsIDOMCSSFontFaceRule.idl', + 'nsIDOMCSSGroupingRule.idl', + 'nsIDOMCSSImportRule.idl', + 'nsIDOMCSSMediaRule.idl', + 'nsIDOMCSSMozDocumentRule.idl', + 'nsIDOMCSSPageRule.idl', + 'nsIDOMCSSPrimitiveValue.idl', + 'nsIDOMCSSRule.idl', + 'nsIDOMCSSRuleList.idl', + 'nsIDOMCSSStyleDeclaration.idl', + 'nsIDOMCSSStyleRule.idl', + 'nsIDOMCSSStyleSheet.idl', + 'nsIDOMCSSSupportsRule.idl', + 'nsIDOMCSSUnknownRule.idl', + 'nsIDOMCSSValue.idl', + 'nsIDOMCSSValueList.idl', + 'nsIDOMCounter.idl', + 'nsIDOMElementCSSInlineStyle.idl', + 'nsIDOMMozCSSKeyframeRule.idl', + 'nsIDOMMozCSSKeyframesRule.idl', + 'nsIDOMRect.idl', +] + +XPIDL_MODULE = 'dom_css' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/stylesheets', +] + diff --git a/dom/interfaces/devicestorage/Makefile.in b/dom/interfaces/devicestorage/Makefile.in index 9139249393a..375bdf90c15 100644 --- a/dom/interfaces/devicestorage/Makefile.in +++ b/dom/interfaces/devicestorage/Makefile.in @@ -11,22 +11,11 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domdevicestorage_s -XPIDL_MODULE = dom_devicestorage LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 include $(topsrcdir)/dom/dom-config.mk -XPIDLSRCS = \ - nsIDOMDeviceStorage.idl \ - nsIDOMDeviceStorageCursor.idl \ - nsIDOMNavigatorDeviceStorage.idl \ - nsIDOMDeviceStorageChangeEvent.idl - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/interfaces/devicestorage/moz.build b/dom/interfaces/devicestorage/moz.build index 58ce5e27339..c58e38e6bd6 100644 --- a/dom/interfaces/devicestorage/moz.build +++ b/dom/interfaces/devicestorage/moz.build @@ -3,3 +3,17 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMDeviceStorage.idl', + 'nsIDOMDeviceStorageChangeEvent.idl', + 'nsIDOMDeviceStorageCursor.idl', + 'nsIDOMNavigatorDeviceStorage.idl', +] + +XPIDL_MODULE = 'dom_devicestorage' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/interfaces/events/Makefile.in b/dom/interfaces/events/Makefile.in index f7f76c54a76..46feffaffb4 100644 --- a/dom/interfaces/events/Makefile.in +++ b/dom/interfaces/events/Makefile.in @@ -11,60 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_events GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsIDOMEvent.idl \ - nsIDOMEventTarget.idl \ - nsIDOMEventListener.idl \ - nsIDOMMouseEvent.idl \ - nsIDOMMouseScrollEvent.idl \ - nsIDOMUIEvent.idl \ - nsIDOMProgressEvent.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIDOMNSEvent.idl \ - nsIDOMDataContainerEvent.idl \ - nsIDOMKeyEvent.idl \ - nsIDOMMutationEvent.idl \ - nsIDOMDragEvent.idl \ - nsIDOMDataTransfer.idl \ - nsIDOMDOMTransactionEvent.idl \ - nsIDOMPopupBlockedEvent.idl \ - nsIDOMBeforeUnloadEvent.idl \ - nsIDOMSmartCardEvent.idl \ - nsIDOMPageTransitionEvent.idl \ - nsIDOMCommandEvent.idl \ - nsIDOMMessageEvent.idl \ - nsIDOMNotifyPaintEvent.idl \ - nsIDOMNotifyAudioAvailableEvent.idl \ - nsIDOMPaintRequest.idl \ - nsIDOMPaintRequestList.idl \ - nsIDOMSimpleGestureEvent.idl \ - nsIDOMDeviceLightEvent.idl \ - nsIDOMDeviceProximityEvent.idl \ - nsIDOMUserProximityEvent.idl \ - nsIDOMDeviceOrientationEvent.idl \ - nsIDOMDeviceMotionEvent.idl \ - nsIDOMElementReplaceEvent.idl \ - nsIDOMScrollAreaEvent.idl \ - nsIDOMTransitionEvent.idl \ - nsIDOMAnimationEvent.idl \ - nsIDOMPopStateEvent.idl \ - nsIDOMCloseEvent.idl \ - nsIDOMTouchEvent.idl \ - nsIDOMHashChangeEvent.idl \ - nsIDOMCustomEvent.idl \ - nsIDOMCompositionEvent.idl \ - nsIDOMWheelEvent.idl \ - nsIDOMBlobEvent.idl \ - nsIDOMClipboardEvent.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/events/moz.build b/dom/interfaces/events/moz.build index 58ce5e27339..7125ca4b467 100644 --- a/dom/interfaces/events/moz.build +++ b/dom/interfaces/events/moz.build @@ -3,3 +3,55 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMAnimationEvent.idl', + 'nsIDOMBeforeUnloadEvent.idl', + 'nsIDOMBlobEvent.idl', + 'nsIDOMClipboardEvent.idl', + 'nsIDOMCloseEvent.idl', + 'nsIDOMCommandEvent.idl', + 'nsIDOMCompositionEvent.idl', + 'nsIDOMCustomEvent.idl', + 'nsIDOMDOMTransactionEvent.idl', + 'nsIDOMDataContainerEvent.idl', + 'nsIDOMDataTransfer.idl', + 'nsIDOMDeviceLightEvent.idl', + 'nsIDOMDeviceMotionEvent.idl', + 'nsIDOMDeviceOrientationEvent.idl', + 'nsIDOMDeviceProximityEvent.idl', + 'nsIDOMDragEvent.idl', + 'nsIDOMElementReplaceEvent.idl', + 'nsIDOMEvent.idl', + 'nsIDOMEventListener.idl', + 'nsIDOMEventTarget.idl', + 'nsIDOMHashChangeEvent.idl', + 'nsIDOMKeyEvent.idl', + 'nsIDOMMessageEvent.idl', + 'nsIDOMMouseEvent.idl', + 'nsIDOMMouseScrollEvent.idl', + 'nsIDOMMutationEvent.idl', + 'nsIDOMNSEvent.idl', + 'nsIDOMNotifyAudioAvailableEvent.idl', + 'nsIDOMNotifyPaintEvent.idl', + 'nsIDOMPageTransitionEvent.idl', + 'nsIDOMPaintRequest.idl', + 'nsIDOMPaintRequestList.idl', + 'nsIDOMPopStateEvent.idl', + 'nsIDOMPopupBlockedEvent.idl', + 'nsIDOMProgressEvent.idl', + 'nsIDOMScrollAreaEvent.idl', + 'nsIDOMSimpleGestureEvent.idl', + 'nsIDOMSmartCardEvent.idl', + 'nsIDOMTouchEvent.idl', + 'nsIDOMTransitionEvent.idl', + 'nsIDOMUIEvent.idl', + 'nsIDOMUserProximityEvent.idl', + 'nsIDOMWheelEvent.idl', +] + +XPIDL_MODULE = 'dom_events' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/geolocation/Makefile.in b/dom/interfaces/geolocation/Makefile.in index 4c9657330bc..7e7a4ba3f49 100644 --- a/dom/interfaces/geolocation/Makefile.in +++ b/dom/interfaces/geolocation/Makefile.in @@ -11,22 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_geolocation GRE_MODULE = 1 -XPIDLSRCS = \ - nsIDOMGeoGeolocation.idl \ - nsIDOMGeoPosition.idl \ - nsIDOMGeoPositionCoords.idl \ - nsIDOMGeoPositionCallback.idl \ - nsIDOMGeoPositionError.idl \ - nsIDOMGeoPositionErrorCallback.idl \ - nsIDOMNavigatorGeolocation.idl \ - nsIGeolocation.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/geolocation/moz.build b/dom/interfaces/geolocation/moz.build index 58ce5e27339..2853caf23d9 100644 --- a/dom/interfaces/geolocation/moz.build +++ b/dom/interfaces/geolocation/moz.build @@ -3,3 +3,20 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMGeoGeolocation.idl', + 'nsIDOMGeoPosition.idl', + 'nsIDOMGeoPositionCallback.idl', + 'nsIDOMGeoPositionCoords.idl', + 'nsIDOMGeoPositionError.idl', + 'nsIDOMGeoPositionErrorCallback.idl', + 'nsIDOMNavigatorGeolocation.idl', + 'nsIGeolocation.idl', +] + +XPIDL_MODULE = 'dom_geolocation' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/html/Makefile.in b/dom/interfaces/html/Makefile.in index 5e88875c2de..46feffaffb4 100644 --- a/dom/interfaces/html/Makefile.in +++ b/dom/interfaces/html/Makefile.in @@ -11,91 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_html GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsIDOMHTMLAnchorElement.idl \ - nsIDOMHTMLAppletElement.idl \ - nsIDOMHTMLAreaElement.idl \ - nsIDOMHTMLBRElement.idl \ - nsIDOMHTMLBaseElement.idl \ - nsIDOMHTMLBodyElement.idl \ - nsIDOMHTMLButtonElement.idl \ - nsIDOMHTMLCollection.idl \ - nsIDOMHTMLCommandElement.idl \ - nsIDOMHTMLDataListElement.idl \ - nsIDOMHTMLDListElement.idl \ - nsIDOMHTMLDirectoryElement.idl \ - nsIDOMHTMLDivElement.idl \ - nsIDOMHTMLDocument.idl \ - nsIDOMHTMLElement.idl \ - nsIDOMHTMLEmbedElement.idl \ - nsIDOMHTMLFieldSetElement.idl \ - nsIDOMHTMLFontElement.idl \ - nsIDOMHTMLFormElement.idl \ - nsIDOMHTMLFrameElement.idl \ - nsIDOMHTMLFrameSetElement.idl \ - nsIDOMHTMLHRElement.idl \ - nsIDOMHTMLHeadElement.idl \ - nsIDOMHTMLHeadingElement.idl \ - nsIDOMHTMLHtmlElement.idl \ - nsIDOMHTMLIFrameElement.idl \ - nsIDOMHTMLImageElement.idl \ - nsIDOMHTMLInputElement.idl \ - nsIDOMHTMLLIElement.idl \ - nsIDOMHTMLLabelElement.idl \ - nsIDOMHTMLLegendElement.idl \ - nsIDOMHTMLLinkElement.idl \ - nsIDOMHTMLMapElement.idl \ - nsIDOMHTMLMenuElement.idl \ - nsIDOMHTMLMenuItemElement.idl \ - nsIDOMHTMLMetaElement.idl \ - nsIDOMHTMLMeterElement.idl \ - nsIDOMHTMLModElement.idl \ - nsIDOMHTMLOListElement.idl \ - nsIDOMHTMLObjectElement.idl \ - nsIDOMHTMLOptGroupElement.idl \ - nsIDOMHTMLOptionElement.idl \ - nsIDOMHTMLOptionsCollection.idl \ - nsIDOMHTMLOutputElement.idl \ - nsIDOMHTMLParagraphElement.idl \ - nsIDOMHTMLParamElement.idl \ - nsIDOMHTMLPreElement.idl \ - nsIDOMHTMLProgressElement.idl \ - nsIDOMHTMLQuoteElement.idl \ - nsIDOMHTMLScriptElement.idl \ - nsIDOMHTMLSelectElement.idl \ - nsIDOMHTMLStyleElement.idl \ - nsIDOMHTMLTableCaptionElem.idl \ - nsIDOMHTMLTableCellElement.idl \ - nsIDOMHTMLTableColElement.idl \ - nsIDOMHTMLTableElement.idl \ - nsIDOMHTMLTableRowElement.idl \ - nsIDOMHTMLTableSectionElement.idl \ - nsIDOMHTMLTextAreaElement.idl \ - nsIDOMHTMLTitleElement.idl \ - nsIDOMHTMLUListElement.idl \ - nsIDOMMediaError.idl \ - nsIDOMTimeRanges.idl \ - nsIDOMHTMLByteRanges.idl \ - nsIDOMHTMLMediaElement.idl \ - nsIDOMHTMLSourceElement.idl \ - nsIDOMHTMLVideoElement.idl \ - nsIDOMHTMLAudioElement.idl \ - nsIDOMValidityState.idl \ - nsIDOMMozBrowserFrame.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIDOMHTMLCanvasElement.idl \ - nsIDOMHTMLUnknownElement.idl \ - nsIMozBrowserFrame.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/core \ - $(NULL) diff --git a/dom/interfaces/html/moz.build b/dom/interfaces/html/moz.build index 58ce5e27339..27e6ebee8ac 100644 --- a/dom/interfaces/html/moz.build +++ b/dom/interfaces/html/moz.build @@ -3,3 +3,86 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMHTMLAnchorElement.idl', + 'nsIDOMHTMLAppletElement.idl', + 'nsIDOMHTMLAreaElement.idl', + 'nsIDOMHTMLAudioElement.idl', + 'nsIDOMHTMLBRElement.idl', + 'nsIDOMHTMLBaseElement.idl', + 'nsIDOMHTMLBodyElement.idl', + 'nsIDOMHTMLButtonElement.idl', + 'nsIDOMHTMLByteRanges.idl', + 'nsIDOMHTMLCanvasElement.idl', + 'nsIDOMHTMLCollection.idl', + 'nsIDOMHTMLCommandElement.idl', + 'nsIDOMHTMLDListElement.idl', + 'nsIDOMHTMLDataListElement.idl', + 'nsIDOMHTMLDirectoryElement.idl', + 'nsIDOMHTMLDivElement.idl', + 'nsIDOMHTMLDocument.idl', + 'nsIDOMHTMLElement.idl', + 'nsIDOMHTMLEmbedElement.idl', + 'nsIDOMHTMLFieldSetElement.idl', + 'nsIDOMHTMLFontElement.idl', + 'nsIDOMHTMLFormElement.idl', + 'nsIDOMHTMLFrameElement.idl', + 'nsIDOMHTMLFrameSetElement.idl', + 'nsIDOMHTMLHRElement.idl', + 'nsIDOMHTMLHeadElement.idl', + 'nsIDOMHTMLHeadingElement.idl', + 'nsIDOMHTMLHtmlElement.idl', + 'nsIDOMHTMLIFrameElement.idl', + 'nsIDOMHTMLImageElement.idl', + 'nsIDOMHTMLInputElement.idl', + 'nsIDOMHTMLLIElement.idl', + 'nsIDOMHTMLLabelElement.idl', + 'nsIDOMHTMLLegendElement.idl', + 'nsIDOMHTMLLinkElement.idl', + 'nsIDOMHTMLMapElement.idl', + 'nsIDOMHTMLMediaElement.idl', + 'nsIDOMHTMLMenuElement.idl', + 'nsIDOMHTMLMenuItemElement.idl', + 'nsIDOMHTMLMetaElement.idl', + 'nsIDOMHTMLMeterElement.idl', + 'nsIDOMHTMLModElement.idl', + 'nsIDOMHTMLOListElement.idl', + 'nsIDOMHTMLObjectElement.idl', + 'nsIDOMHTMLOptGroupElement.idl', + 'nsIDOMHTMLOptionElement.idl', + 'nsIDOMHTMLOptionsCollection.idl', + 'nsIDOMHTMLOutputElement.idl', + 'nsIDOMHTMLParagraphElement.idl', + 'nsIDOMHTMLParamElement.idl', + 'nsIDOMHTMLPreElement.idl', + 'nsIDOMHTMLProgressElement.idl', + 'nsIDOMHTMLQuoteElement.idl', + 'nsIDOMHTMLScriptElement.idl', + 'nsIDOMHTMLSelectElement.idl', + 'nsIDOMHTMLSourceElement.idl', + 'nsIDOMHTMLStyleElement.idl', + 'nsIDOMHTMLTableCaptionElem.idl', + 'nsIDOMHTMLTableCellElement.idl', + 'nsIDOMHTMLTableColElement.idl', + 'nsIDOMHTMLTableElement.idl', + 'nsIDOMHTMLTableRowElement.idl', + 'nsIDOMHTMLTableSectionElement.idl', + 'nsIDOMHTMLTextAreaElement.idl', + 'nsIDOMHTMLTitleElement.idl', + 'nsIDOMHTMLUListElement.idl', + 'nsIDOMHTMLUnknownElement.idl', + 'nsIDOMHTMLVideoElement.idl', + 'nsIDOMMediaError.idl', + 'nsIDOMMozBrowserFrame.idl', + 'nsIDOMTimeRanges.idl', + 'nsIDOMValidityState.idl', + 'nsIMozBrowserFrame.idl', +] + +XPIDL_MODULE = 'dom_html' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/core', +] + diff --git a/dom/interfaces/json/Makefile.in b/dom/interfaces/json/Makefile.in index 428ca6a3e5e..e4db603fb9d 100644 --- a/dom/interfaces/json/Makefile.in +++ b/dom/interfaces/json/Makefile.in @@ -11,19 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_json GRE_MODULE = 1 -XPIDLSRCS = \ - nsIJSON.idl \ - $(NULL) - -SDK_XPIDLSRCS = \ - nsIJSON.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/json/moz.build b/dom/interfaces/json/moz.build index 58ce5e27339..6824bdc3835 100644 --- a/dom/interfaces/json/moz.build +++ b/dom/interfaces/json/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIJSON.idl', +] + +XPIDL_MODULE = 'dom_json' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/notification/Makefile.in b/dom/interfaces/notification/Makefile.in index b657b27a8e7..7e7a4ba3f49 100644 --- a/dom/interfaces/notification/Makefile.in +++ b/dom/interfaces/notification/Makefile.in @@ -11,15 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_notification GRE_MODULE = 1 -XPIDLSRCS = nsIDOMNavigatorDesktopNotification.idl \ - nsIDOMDesktopNotification.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/notification/moz.build b/dom/interfaces/notification/moz.build index 58ce5e27339..7e4129f65db 100644 --- a/dom/interfaces/notification/moz.build +++ b/dom/interfaces/notification/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMDesktopNotification.idl', + 'nsIDOMNavigatorDesktopNotification.idl', +] + +XPIDL_MODULE = 'dom_notification' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/offline/Makefile.in b/dom/interfaces/offline/Makefile.in index 6b2c35c9809..e4db603fb9d 100644 --- a/dom/interfaces/offline/Makefile.in +++ b/dom/interfaces/offline/Makefile.in @@ -11,16 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_offline GRE_MODULE = 1 -XPIDLSRCS = \ - nsIDOMOfflineResourceList.idl \ - nsIDOMLoadStatus.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/offline/moz.build b/dom/interfaces/offline/moz.build index 58ce5e27339..3d83fd6cf6c 100644 --- a/dom/interfaces/offline/moz.build +++ b/dom/interfaces/offline/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMLoadStatus.idl', + 'nsIDOMOfflineResourceList.idl', +] + +XPIDL_MODULE = 'dom_offline' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/permission/Makefile.in b/dom/interfaces/permission/Makefile.in index c8e74cd5ed5..4561e503ca2 100644 --- a/dom/interfaces/permission/Makefile.in +++ b/dom/interfaces/permission/Makefile.in @@ -10,16 +10,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_permissionsettings GRE_MODULE = 1 -XPIDLSRCS = \ - nsIDOMPermissionSettings.idl \ - nsIPermissionPromptService.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/permission/moz.build b/dom/interfaces/permission/moz.build index 58ce5e27339..253dac7d658 100644 --- a/dom/interfaces/permission/moz.build +++ b/dom/interfaces/permission/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMPermissionSettings.idl', + 'nsIPermissionPromptService.idl', +] + +XPIDL_MODULE = 'dom_permissionsettings' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/range/Makefile.in b/dom/interfaces/range/Makefile.in index 122f2a72d9d..46feffaffb4 100644 --- a/dom/interfaces/range/Makefile.in +++ b/dom/interfaces/range/Makefile.in @@ -11,15 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_range GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsIDOMRange.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/range/moz.build b/dom/interfaces/range/moz.build index 58ce5e27339..1e2b2bbdfc5 100644 --- a/dom/interfaces/range/moz.build +++ b/dom/interfaces/range/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMRange.idl', +] + +XPIDL_MODULE = 'dom_range' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/settings/Makefile.in b/dom/interfaces/settings/Makefile.in index b1fb6426347..1e6d8f275fe 100644 --- a/dom/interfaces/settings/Makefile.in +++ b/dom/interfaces/settings/Makefile.in @@ -10,18 +10,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_settings GRE_MODULE = 1 -XPIDLSRCS = \ - nsIDOMSettingsManager.idl \ - nsISettingsService.idl \ - nsIDOMMozSettingsEvent.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/interfaces/settings/moz.build b/dom/interfaces/settings/moz.build index 58ce5e27339..fd5dc1ecd95 100644 --- a/dom/interfaces/settings/moz.build +++ b/dom/interfaces/settings/moz.build @@ -3,3 +3,16 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMMozSettingsEvent.idl', + 'nsIDOMSettingsManager.idl', + 'nsISettingsService.idl', +] + +XPIDL_MODULE = 'dom_settings' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/interfaces/sidebar/Makefile.in b/dom/interfaces/sidebar/Makefile.in index d86e27ebc17..c707489d3c5 100644 --- a/dom/interfaces/sidebar/Makefile.in +++ b/dom/interfaces/sidebar/Makefile.in @@ -11,12 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_sidebar GRE_MODULE = 1 -XPIDLSRCS = \ - nsISidebar.idl \ - nsIWebContentHandlerRegistrar.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/dom/interfaces/sidebar/moz.build b/dom/interfaces/sidebar/moz.build index 58ce5e27339..10e31777746 100644 --- a/dom/interfaces/sidebar/moz.build +++ b/dom/interfaces/sidebar/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsISidebar.idl', + 'nsIWebContentHandlerRegistrar.idl', +] + +XPIDL_MODULE = 'dom_sidebar' + diff --git a/dom/interfaces/smil/Makefile.in b/dom/interfaces/smil/Makefile.in index b172f27d70d..f93f0564e41 100644 --- a/dom/interfaces/smil/Makefile.in +++ b/dom/interfaces/smil/Makefile.in @@ -12,17 +12,5 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_smil - -XPIDLSRCS = \ - nsIDOMTimeEvent.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/core \ - -I$(topsrcdir)/dom/interfaces/events \ - -I$(topsrcdir)/dom/interfaces/svg \ - $(NULL) diff --git a/dom/interfaces/smil/moz.build b/dom/interfaces/smil/moz.build index 58ce5e27339..e2f26f444b7 100644 --- a/dom/interfaces/smil/moz.build +++ b/dom/interfaces/smil/moz.build @@ -3,3 +3,16 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMTimeEvent.idl', +] + +XPIDL_MODULE = 'dom_smil' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/core', + '-I$(topsrcdir)/dom/interfaces/events', + '-I$(topsrcdir)/dom/interfaces/svg', +] + diff --git a/dom/interfaces/storage/Makefile.in b/dom/interfaces/storage/Makefile.in index 8a1134943d4..4fb901dc8c4 100644 --- a/dom/interfaces/storage/Makefile.in +++ b/dom/interfaces/storage/Makefile.in @@ -11,29 +11,11 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_storage GRE_MODULE = 1 EXPORTS = \ nsPIDOMStorage.h \ $(NULL) -XPIDLSRCS = \ - nsIDOMToString.idl \ - nsIDOMStorageManager.idl \ - $(NULL) - -SDK_XPIDLSRCS = \ - nsIDOMStorage.idl \ - nsIDOMStorageObsolete.idl\ - nsIDOMStorageEvent.idl \ - nsIDOMStorageItem.idl \ - nsIDOMStorageIndexedDB.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/interfaces/storage/moz.build b/dom/interfaces/storage/moz.build index 58ce5e27339..1aca50d8103 100644 --- a/dom/interfaces/storage/moz.build +++ b/dom/interfaces/storage/moz.build @@ -3,3 +3,20 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMStorage.idl', + 'nsIDOMStorageEvent.idl', + 'nsIDOMStorageIndexedDB.idl', + 'nsIDOMStorageItem.idl', + 'nsIDOMStorageManager.idl', + 'nsIDOMStorageObsolete.idl', + 'nsIDOMToString.idl', +] + +XPIDL_MODULE = 'dom_storage' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/interfaces/stylesheets/Makefile.in b/dom/interfaces/stylesheets/Makefile.in index 6d42543aa97..46feffaffb4 100644 --- a/dom/interfaces/stylesheets/Makefile.in +++ b/dom/interfaces/stylesheets/Makefile.in @@ -11,21 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_stylesheets GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsIDOMMediaList.idl \ - nsIDOMStyleSheet.idl \ - nsIDOMStyleSheetList.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIDOMLinkStyle.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/stylesheets/moz.build b/dom/interfaces/stylesheets/moz.build index 58ce5e27339..33c53bd3a4c 100644 --- a/dom/interfaces/stylesheets/moz.build +++ b/dom/interfaces/stylesheets/moz.build @@ -3,3 +3,16 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMLinkStyle.idl', + 'nsIDOMMediaList.idl', + 'nsIDOMStyleSheet.idl', + 'nsIDOMStyleSheetList.idl', +] + +XPIDL_MODULE = 'dom_stylesheets' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/svg/Makefile.in b/dom/interfaces/svg/Makefile.in index 0a154147f32..d77145107dd 100644 --- a/dom/interfaces/svg/Makefile.in +++ b/dom/interfaces/svg/Makefile.in @@ -13,31 +13,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_svg - -XPIDLSRCS = \ - nsIDOMGetSVGDocument.idl \ - nsIDOMSVGAnimatedEnum.idl \ - nsIDOMSVGAnimatedInteger.idl \ - nsIDOMSVGAnimatedLength.idl \ - nsIDOMSVGAnimatedNumber.idl \ - nsIDOMSVGAnimatedRect.idl \ - nsIDOMSVGAnimatedString.idl \ - nsIDOMSVGDocument.idl \ - nsIDOMSVGElement.idl \ - nsIDOMSVGFilters.idl \ - nsIDOMSVGLength.idl \ - nsIDOMSVGNumber.idl \ - nsIDOMSVGRect.idl \ - nsIDOMSVGStringList.idl \ - nsIDOMSVGUnitTypes.idl \ - nsIDOMSVGZoomEvent.idl \ - $(NULL) include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/core \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/interfaces/svg/moz.build b/dom/interfaces/svg/moz.build index 58ce5e27339..d53b4c0d12a 100644 --- a/dom/interfaces/svg/moz.build +++ b/dom/interfaces/svg/moz.build @@ -3,3 +3,30 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMGetSVGDocument.idl', + 'nsIDOMSVGAnimatedEnum.idl', + 'nsIDOMSVGAnimatedInteger.idl', + 'nsIDOMSVGAnimatedLength.idl', + 'nsIDOMSVGAnimatedNumber.idl', + 'nsIDOMSVGAnimatedRect.idl', + 'nsIDOMSVGAnimatedString.idl', + 'nsIDOMSVGDocument.idl', + 'nsIDOMSVGElement.idl', + 'nsIDOMSVGFilters.idl', + 'nsIDOMSVGLength.idl', + 'nsIDOMSVGNumber.idl', + 'nsIDOMSVGRect.idl', + 'nsIDOMSVGStringList.idl', + 'nsIDOMSVGUnitTypes.idl', + 'nsIDOMSVGZoomEvent.idl', +] + +XPIDL_MODULE = 'dom_svg' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/core', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/interfaces/traversal/Makefile.in b/dom/interfaces/traversal/Makefile.in index a89d71c993b..46feffaffb4 100644 --- a/dom/interfaces/traversal/Makefile.in +++ b/dom/interfaces/traversal/Makefile.in @@ -11,17 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_traversal GRE_MODULE = 1 -XPIDLSRCS = \ - nsIDOMNodeFilter.idl \ - nsIDOMNodeIterator.idl \ - nsIDOMTreeWalker.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/traversal/moz.build b/dom/interfaces/traversal/moz.build index 58ce5e27339..2365f57bb38 100644 --- a/dom/interfaces/traversal/moz.build +++ b/dom/interfaces/traversal/moz.build @@ -3,3 +3,15 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMNodeFilter.idl', + 'nsIDOMNodeIterator.idl', + 'nsIDOMTreeWalker.idl', +] + +XPIDL_MODULE = 'dom_traversal' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/xbl/Makefile.in b/dom/interfaces/xbl/Makefile.in index 325b7446be9..46feffaffb4 100644 --- a/dom/interfaces/xbl/Makefile.in +++ b/dom/interfaces/xbl/Makefile.in @@ -11,15 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_xbl GRE_MODULE = 1 -XPIDLSRCS = \ - nsIDOMDocumentXBL.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/interfaces/xbl/moz.build b/dom/interfaces/xbl/moz.build index 58ce5e27339..7480dab6c97 100644 --- a/dom/interfaces/xbl/moz.build +++ b/dom/interfaces/xbl/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMDocumentXBL.idl', +] + +XPIDL_MODULE = 'dom_xbl' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/interfaces/xpath/Makefile.in b/dom/interfaces/xpath/Makefile.in index 2c38268f6d2..5f61e379a61 100644 --- a/dom/interfaces/xpath/Makefile.in +++ b/dom/interfaces/xpath/Makefile.in @@ -10,20 +10,5 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_xpath - -XPIDLSRCS = \ - nsIDOMXPathEvaluator.idl \ - nsIDOMXPathExpression.idl \ - nsIDOMXPathNamespace.idl \ - nsIDOMXPathNSResolver.idl \ - nsIDOMXPathResult.idl \ - nsIDOMNSXPathExpression.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/core \ - $(NULL) diff --git a/dom/interfaces/xpath/moz.build b/dom/interfaces/xpath/moz.build index 58ce5e27339..be00e072930 100644 --- a/dom/interfaces/xpath/moz.build +++ b/dom/interfaces/xpath/moz.build @@ -3,3 +3,19 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMNSXPathExpression.idl', + 'nsIDOMXPathEvaluator.idl', + 'nsIDOMXPathExpression.idl', + 'nsIDOMXPathNSResolver.idl', + 'nsIDOMXPathNamespace.idl', + 'nsIDOMXPathResult.idl', +] + +XPIDL_MODULE = 'dom_xpath' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/core', +] + diff --git a/dom/interfaces/xul/Makefile.in b/dom/interfaces/xul/Makefile.in index fdeb83a4f2f..46feffaffb4 100644 --- a/dom/interfaces/xul/Makefile.in +++ b/dom/interfaces/xul/Makefile.in @@ -11,36 +11,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_xul GRE_MODULE = 1 -XPIDLSRCS = \ - nsIDOMXULButtonElement.idl \ - nsIDOMXULCheckboxElement.idl \ - nsIDOMXULCommandDispatcher.idl \ - nsIDOMXULCommandEvent.idl \ - nsIDOMXULControlElement.idl \ - nsIDOMXULDescriptionElement.idl \ - nsIDOMXULDocument.idl \ - nsIDOMXULElement.idl \ - nsIDOMXULContainerElement.idl \ - nsIDOMXULImageElement.idl \ - nsIDOMXULLabelElement.idl \ - nsIDOMXULLabeledControlEl.idl \ - nsIDOMXULMenuListElement.idl \ - nsIDOMXULPopupElement.idl \ - nsIDOMXULRelatedElement.idl \ - nsIDOMXULSelectCntrlEl.idl \ - nsIDOMXULSelectCntrlItemEl.idl \ - nsIDOMXULMultSelectCntrlEl.idl \ - nsIDOMXULTextboxElement.idl \ - nsIDOMXULTreeElement.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/core \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/interfaces/xul/moz.build b/dom/interfaces/xul/moz.build index 58ce5e27339..e0b55bb5ad1 100644 --- a/dom/interfaces/xul/moz.build +++ b/dom/interfaces/xul/moz.build @@ -3,3 +3,34 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMXULButtonElement.idl', + 'nsIDOMXULCheckboxElement.idl', + 'nsIDOMXULCommandDispatcher.idl', + 'nsIDOMXULCommandEvent.idl', + 'nsIDOMXULContainerElement.idl', + 'nsIDOMXULControlElement.idl', + 'nsIDOMXULDescriptionElement.idl', + 'nsIDOMXULDocument.idl', + 'nsIDOMXULElement.idl', + 'nsIDOMXULImageElement.idl', + 'nsIDOMXULLabelElement.idl', + 'nsIDOMXULLabeledControlEl.idl', + 'nsIDOMXULMenuListElement.idl', + 'nsIDOMXULMultSelectCntrlEl.idl', + 'nsIDOMXULPopupElement.idl', + 'nsIDOMXULRelatedElement.idl', + 'nsIDOMXULSelectCntrlEl.idl', + 'nsIDOMXULSelectCntrlItemEl.idl', + 'nsIDOMXULTextboxElement.idl', + 'nsIDOMXULTreeElement.idl', +] + +XPIDL_MODULE = 'dom_xul' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/core', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/media/Makefile.in b/dom/media/Makefile.in index a201482d17b..4d6f60fa9ff 100644 --- a/dom/media/Makefile.in +++ b/dom/media/Makefile.in @@ -11,7 +11,6 @@ relativesrcdir = @relativesrcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_media LIBRARY_NAME = dom_media_s LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 @@ -26,13 +25,6 @@ EXTRA_COMPONENTS = \ PeerConnection.manifest \ $(NULL) -XPIDLSRCS = \ - nsIDOMMediaStream.idl \ - nsIDOMRTCPeerConnection.idl \ - nsIDOMNavigatorUserMedia.idl \ - nsIMediaManager.idl \ - $(NULL) - EXPORTS_NAMESPACES = mozilla EXPORTS_mozilla = \ diff --git a/dom/media/bridge/Makefile.in b/dom/media/bridge/Makefile.in index 934c26ddc3a..6d7ae7ebc08 100644 --- a/dom/media/bridge/Makefile.in +++ b/dom/media/bridge/Makefile.in @@ -17,8 +17,6 @@ IS_COMPONENT = 1 EXPORT_LIBRARY = 1 LIBXUL_LIBRARY = 1 -XPIDLSRCS = IPeerConnection.idl - CPPSRCS = \ MediaModule.cpp \ $(NULL) diff --git a/dom/media/bridge/moz.build b/dom/media/bridge/moz.build index 58ce5e27339..5d73b9f99f3 100644 --- a/dom/media/bridge/moz.build +++ b/dom/media/bridge/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'IPeerConnection.idl', +] + diff --git a/dom/media/moz.build b/dom/media/moz.build index 45c8309e1b8..39f074e2cf4 100644 --- a/dom/media/moz.build +++ b/dom/media/moz.build @@ -7,3 +7,13 @@ if CONFIG['MOZ_WEBRTC']: DIRS += ['bridge'] TEST_DIRS += ['tests/mochitest'] + +XPIDL_SOURCES += [ + 'nsIDOMMediaStream.idl', + 'nsIDOMNavigatorUserMedia.idl', + 'nsIDOMRTCPeerConnection.idl', + 'nsIMediaManager.idl', +] + +XPIDL_MODULE = 'dom_media' + diff --git a/dom/messages/interfaces/Makefile.in b/dom/messages/interfaces/Makefile.in index 75214edc88e..4ddef56abb7 100644 --- a/dom/messages/interfaces/Makefile.in +++ b/dom/messages/interfaces/Makefile.in @@ -9,17 +9,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -XPIDL_MODULE = dom_messages - include $(topsrcdir)/dom/dom-config.mk -XPIDLSRCS = \ - nsIDOMNavigatorSystemMessages.idl \ - nsISystemMessagesInternal.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/messages/interfaces/moz.build b/dom/messages/interfaces/moz.build index 58ce5e27339..98c5c264306 100644 --- a/dom/messages/interfaces/moz.build +++ b/dom/messages/interfaces/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMNavigatorSystemMessages.idl', + 'nsISystemMessagesInternal.idl', +] + +XPIDL_MODULE = 'dom_messages' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/mms/interfaces/Makefile.in b/dom/mms/interfaces/Makefile.in index f524946a04d..c37cc05a1ff 100644 --- a/dom/mms/interfaces/Makefile.in +++ b/dom/mms/interfaces/Makefile.in @@ -9,11 +9,4 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -XPIDL_MODULE = dom_mms - -XPIDLSRCS = \ - nsIMmsService.idl \ - nsIWapPushApplication.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/dom/mms/interfaces/moz.build b/dom/mms/interfaces/moz.build index 58ce5e27339..9d81c8c1629 100644 --- a/dom/mms/interfaces/moz.build +++ b/dom/mms/interfaces/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIMmsService.idl', + 'nsIWapPushApplication.idl', +] + +XPIDL_MODULE = 'dom_mms' + diff --git a/dom/mobilemessage/interfaces/Makefile.in b/dom/mobilemessage/interfaces/Makefile.in index 6d860f65620..143590c476a 100644 --- a/dom/mobilemessage/interfaces/Makefile.in +++ b/dom/mobilemessage/interfaces/Makefile.in @@ -9,34 +9,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -XPIDL_MODULE = dom_mobilemessage - include $(topsrcdir)/dom/dom-config.mk -XPIDLSRCS = \ - nsIMobileMessageDatabaseService.idl \ - nsIDOMNavigatorSms.idl \ - nsIDOMSmsManager.idl \ - nsIDOMMozSmsMessage.idl \ - nsIDOMMozSmsEvent.idl \ - nsIDOMSmsRequest.idl \ - nsIDOMSmsFilter.idl \ - nsIDOMSmsCursor.idl \ - nsIDOMSmsSegmentInfo.idl \ - nsISmsRequest.idl \ - nsISmsService.idl \ - $(NULL) - -ifdef MOZ_B2G_RIL -XPIDLSRCS += \ - nsIRilMobileMessageDatabaseService.idl \ - $(NULL) -endif - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/base \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/mobilemessage/interfaces/moz.build b/dom/mobilemessage/interfaces/moz.build index 58ce5e27339..f97c134b1aa 100644 --- a/dom/mobilemessage/interfaces/moz.build +++ b/dom/mobilemessage/interfaces/moz.build @@ -3,3 +3,30 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMMozSmsEvent.idl', + 'nsIDOMMozSmsMessage.idl', + 'nsIDOMNavigatorSms.idl', + 'nsIDOMSmsCursor.idl', + 'nsIDOMSmsFilter.idl', + 'nsIDOMSmsManager.idl', + 'nsIDOMSmsRequest.idl', + 'nsIDOMSmsSegmentInfo.idl', + 'nsIMobileMessageDatabaseService.idl', + 'nsISmsRequest.idl', + 'nsISmsService.idl', +] + +if CONFIG['MOZ_B2G_RIL']: + XPIDL_SOURCES += [ + 'nsIRilMobileMessageDatabaseService.idl', + ] + +XPIDL_MODULE = 'dom_mobilemessage' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/base', + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/network/interfaces/Makefile.in b/dom/network/interfaces/Makefile.in index a12f518d3db..143590c476a 100644 --- a/dom/network/interfaces/Makefile.in +++ b/dom/network/interfaces/Makefile.in @@ -9,34 +9,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -XPIDL_MODULE = dom_network - include $(topsrcdir)/dom/dom-config.mk -XPIDLSRCS = \ - nsIDOMNavigatorNetwork.idl \ - nsIDOMConnection.idl \ - nsIDOMUSSDReceivedEvent.idl \ - nsIDOMTCPSocket.idl \ - nsITCPSocketParent.idl \ - nsITCPSocketChild.idl \ - nsIDOMDataErrorEvent.idl \ - $(NULL) - -ifdef MOZ_B2G_RIL -XPIDLSRCS += \ - nsIDOMMobileConnection.idl \ - nsIMobileConnectionProvider.idl \ - nsINavigatorMobileConnection.idl \ - nsIDOMNetworkStatsManager.idl \ - nsIDOMNetworkStats.idl \ - nsIDOMCFStateChangeEvent.idl \ - $(NULL) -endif - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/network/interfaces/moz.build b/dom/network/interfaces/moz.build index 58ce5e27339..efa62e934a5 100644 --- a/dom/network/interfaces/moz.build +++ b/dom/network/interfaces/moz.build @@ -3,3 +3,30 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMConnection.idl', + 'nsIDOMDataErrorEvent.idl', + 'nsIDOMNavigatorNetwork.idl', + 'nsIDOMTCPSocket.idl', + 'nsIDOMUSSDReceivedEvent.idl', + 'nsITCPSocketChild.idl', + 'nsITCPSocketParent.idl', +] + +if CONFIG['MOZ_B2G_RIL']: + XPIDL_SOURCES += [ + 'nsIDOMMobileConnection.idl', + 'nsIMobileConnectionProvider.idl', + 'nsINavigatorMobileConnection.idl', + 'nsIDOMNetworkStatsManager.idl', + 'nsIDOMNetworkStats.idl', + 'nsIDOMCFStateChangeEvent.idl', + ] + +XPIDL_MODULE = 'dom_network' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/payment/interfaces/Makefile.in b/dom/payment/interfaces/Makefile.in index 88b2676c278..30f6282c192 100644 --- a/dom/payment/interfaces/Makefile.in +++ b/dom/payment/interfaces/Makefile.in @@ -9,15 +9,4 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -XPIDL_MODULE = dom_payment - -XPIDLSRCS = nsIDOMNavigatorPayment.idl \ - nsIDOMPaymentRequestInfo.idl \ - nsIPaymentFlowInfo.idl \ - nsIPaymentUIGlue.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/interfaces/base \ - $(NULL) diff --git a/dom/payment/interfaces/moz.build b/dom/payment/interfaces/moz.build index 58ce5e27339..b92119525ee 100644 --- a/dom/payment/interfaces/moz.build +++ b/dom/payment/interfaces/moz.build @@ -3,3 +3,16 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMNavigatorPayment.idl', + 'nsIDOMPaymentRequestInfo.idl', + 'nsIPaymentFlowInfo.idl', + 'nsIPaymentUIGlue.idl', +] + +XPIDL_MODULE = 'dom_payment' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/interfaces/base', +] + diff --git a/dom/permission/Makefile.in b/dom/permission/Makefile.in index c7f917adaff..9dbad62ed18 100644 --- a/dom/permission/Makefile.in +++ b/dom/permission/Makefile.in @@ -12,7 +12,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = jsdompermissionsettings_s -XPIDL_MODULE = dom_permissionsettings GRE_MODULE = 1 EXTRA_COMPONENTS = \ diff --git a/dom/permission/moz.build b/dom/permission/moz.build index d0193307adb..fe65aafcd88 100644 --- a/dom/permission/moz.build +++ b/dom/permission/moz.build @@ -4,3 +4,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_MODULE = 'dom_permissionsettings' + diff --git a/dom/plugins/base/Makefile.in b/dom/plugins/base/Makefile.in index 658143227f9..1126d7a4839 100644 --- a/dom/plugins/base/Makefile.in +++ b/dom/plugins/base/Makefile.in @@ -20,17 +20,6 @@ LIBXUL_LIBRARY = 1 EXPORTS_NAMESPACES = mozilla -XPIDLSRCS = \ - nsIHTTPHeaderListener.idl \ - nsIPluginDocument.idl \ - nsIPluginHost.idl \ - nsIPluginInputStream.idl \ - nsIPluginInstanceOwner.idl \ - nsIPluginTag.idl \ - nsIPluginTagInfo.idl \ - nspluginroot.idl \ - $(NULL) - EXPORTS = \ npapi.h \ npfunctions.h \ diff --git a/dom/plugins/base/moz.build b/dom/plugins/base/moz.build index 04022078445..bccca1b5a82 100644 --- a/dom/plugins/base/moz.build +++ b/dom/plugins/base/moz.build @@ -6,3 +6,14 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': DIRS += ['android'] +XPIDL_SOURCES += [ + 'nsIHTTPHeaderListener.idl', + 'nsIPluginDocument.idl', + 'nsIPluginHost.idl', + 'nsIPluginInputStream.idl', + 'nsIPluginInstanceOwner.idl', + 'nsIPluginTag.idl', + 'nsIPluginTagInfo.idl', + 'nspluginroot.idl', +] + diff --git a/dom/power/Makefile.in b/dom/power/Makefile.in index 5d67ade1184..63d8fde84d3 100644 --- a/dom/power/Makefile.in +++ b/dom/power/Makefile.in @@ -10,7 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk LIBRARY_NAME = dom_power_s -XPIDL_MODULE = dom_power LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 ifndef _MSC_VER @@ -32,13 +31,6 @@ CPPSRCS = \ WakeLock.cpp \ $(NULL) -XPIDLSRCS = \ - nsIDOMPowerManager.idl \ - nsIDOMWakeLock.idl \ - nsIDOMWakeLockListener.idl \ - nsIPowerManagerService.idl \ - $(NULL) - include $(topsrcdir)/config/config.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk include $(topsrcdir)/config/rules.mk diff --git a/dom/power/moz.build b/dom/power/moz.build index 493f80dc6ef..fc25eaeef37 100644 --- a/dom/power/moz.build +++ b/dom/power/moz.build @@ -4,3 +4,13 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIDOMPowerManager.idl', + 'nsIDOMWakeLock.idl', + 'nsIDOMWakeLockListener.idl', + 'nsIPowerManagerService.idl', +] + +XPIDL_MODULE = 'dom_power' + diff --git a/dom/quota/Makefile.in b/dom/quota/Makefile.in index de658f8f2df..dc4d7bdfd18 100644 --- a/dom/quota/Makefile.in +++ b/dom/quota/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domquota_s -XPIDL_MODULE = dom_quota LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 diff --git a/dom/quota/moz.build b/dom/quota/moz.build index 58ce5e27339..b7c1e6e3331 100644 --- a/dom/quota/moz.build +++ b/dom/quota/moz.build @@ -3,3 +3,5 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_MODULE = 'dom_quota' + diff --git a/dom/src/jsurl/Makefile.in b/dom/src/jsurl/Makefile.in index 9f46e4ac6be..669d4d4f146 100644 --- a/dom/src/jsurl/Makefile.in +++ b/dom/src/jsurl/Makefile.in @@ -18,11 +18,6 @@ MODULE_NAME = javascript__protocol GRE_MODULE = 1 LIBXUL_LIBRARY = 1 - -XPIDLSRCS = \ - $(NULL) - - CPPSRCS = nsJSProtocolHandler.cpp EXPORTS = $(srcdir)/nsJSProtocolHandler.h diff --git a/dom/system/Makefile.in b/dom/system/Makefile.in index a78e28d7372..427a118d1fb 100644 --- a/dom/system/Makefile.in +++ b/dom/system/Makefile.in @@ -10,17 +10,12 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = dom -XPIDL_MODULE = dom_system LIBRARY_NAME = domsystem_s LIBXUL_LIBRARY = 1 FAIL_ON_WARNINGS := 1 DEFINES += -DDLL_PREFIX=\"$(DLL_PREFIX)\" -DDLL_SUFFIX=\"$(DLL_SUFFIX)\" -XPIDLSRCS = \ - nsIOSFileConstantsService.idl \ - $(NULL) - CPPSRCS = \ nsDeviceSensors.cpp \ OSFileConstants.cpp \ diff --git a/dom/system/gonk/Makefile.in b/dom/system/gonk/Makefile.in index 3e689585f57..5b27af6e9ea 100644 --- a/dom/system/gonk/Makefile.in +++ b/dom/system/gonk/Makefile.in @@ -23,7 +23,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domsystemgonk_s -XPIDL_MODULE = dom_system_gonk LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS := 1 @@ -34,19 +33,6 @@ CPPSRCS = \ SystemWorkerManager.cpp \ $(NULL) -XPIDLSRCS = \ - nsIAudioManager.idl \ - nsINetworkManager.idl \ - nsIRadioInterfaceLayer.idl \ - nsIVolume.idl \ - nsIVolumeMountLock.idl \ - nsIVolumeService.idl \ - nsIVolumeStat.idl \ - nsIWorkerHolder.idl \ - nsINavigatorAudioChannelManager.idl \ - nsISystemWorkerManager.idl \ - $(NULL) - LOCAL_INCLUDES = \ -I$(topsrcdir)/dom/base \ -I$(topsrcdir)/dom/src/geolocation \ @@ -104,6 +90,3 @@ endif include $(topsrcdir)/config/rules.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/network/interfaces \ - $(NULL) diff --git a/dom/system/gonk/moz.build b/dom/system/gonk/moz.build index 0d9537c68a8..8a4421a29ac 100644 --- a/dom/system/gonk/moz.build +++ b/dom/system/gonk/moz.build @@ -13,3 +13,22 @@ # See the License for the specific language governing permissions and # limitations under the License. +XPIDL_SOURCES += [ + 'nsIAudioManager.idl', + 'nsINavigatorAudioChannelManager.idl', + 'nsINetworkManager.idl', + 'nsIRadioInterfaceLayer.idl', + 'nsISystemWorkerManager.idl', + 'nsIVolume.idl', + 'nsIVolumeMountLock.idl', + 'nsIVolumeService.idl', + 'nsIVolumeStat.idl', + 'nsIWorkerHolder.idl', +] + +XPIDL_MODULE = 'dom_system_gonk' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/network/interfaces', +] + diff --git a/dom/system/moz.build b/dom/system/moz.build index 88c6cc7c9e2..b0c8833e87a 100644 --- a/dom/system/moz.build +++ b/dom/system/moz.build @@ -16,3 +16,10 @@ if CONFIG['MOZ_B2G_RIL']: DIRS += ['gonk'] TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsIOSFileConstantsService.idl', +] + +XPIDL_MODULE = 'dom_system' + diff --git a/dom/telephony/Makefile.in b/dom/telephony/Makefile.in index 1d3a9522b4b..32230a3c84f 100644 --- a/dom/telephony/Makefile.in +++ b/dom/telephony/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domtelephony_s -XPIDL_MODULE = dom_telephony LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS := 1 @@ -23,18 +22,5 @@ CPPSRCS = \ TelephonyCall.cpp \ $(NULL) -XPIDLSRCS = \ - nsIDOMNavigatorTelephony.idl \ - nsIDOMTelephony.idl \ - nsIDOMTelephonyCall.idl \ - nsIDOMCallEvent.idl \ - nsITelephonyProvider.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/base \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/telephony/moz.build b/dom/telephony/moz.build index 58ce5e27339..557323d229d 100644 --- a/dom/telephony/moz.build +++ b/dom/telephony/moz.build @@ -3,3 +3,19 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMCallEvent.idl', + 'nsIDOMNavigatorTelephony.idl', + 'nsIDOMTelephony.idl', + 'nsIDOMTelephonyCall.idl', + 'nsITelephonyProvider.idl', +] + +XPIDL_MODULE = 'dom_telephony' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/base', + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/time/Makefile.in b/dom/time/Makefile.in index 72d838e61b6..2514eb3a9f8 100644 --- a/dom/time/Makefile.in +++ b/dom/time/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = dom_time_s -XPIDL_MODULE = dom_time LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 ifndef _MSC_VER @@ -35,12 +34,6 @@ EXPORTS_mozilla/dom/time = \ DateCacheCleaner.h \ $(NULL) -XPIDLSRCS = \ - nsIDOMNavigatorTime.idl \ - nsIDOMTimeManager.idl \ - nsITimeService.idl \ - $(NULL) - include $(topsrcdir)/config/config.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk include $(topsrcdir)/config/rules.mk diff --git a/dom/time/moz.build b/dom/time/moz.build index 58ce5e27339..0e8cd85a5e6 100644 --- a/dom/time/moz.build +++ b/dom/time/moz.build @@ -3,3 +3,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMNavigatorTime.idl', + 'nsIDOMTimeManager.idl', + 'nsITimeService.idl', +] + +XPIDL_MODULE = 'dom_time' + diff --git a/dom/voicemail/Makefile.in b/dom/voicemail/Makefile.in index 74fc74c237e..5cebb7152bf 100644 --- a/dom/voicemail/Makefile.in +++ b/dom/voicemail/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domvoicemail_s -XPIDL_MODULE = dom_voicemail LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS := 1 @@ -27,18 +26,5 @@ CPPSRCS = \ Voicemail.cpp \ $(NULL) -XPIDLSRCS = \ - nsINavigatorVoicemail.idl \ - nsIDOMMozVoicemail.idl \ - nsIDOMMozVoicemailEvent.idl \ - nsIDOMMozVoicemailStatus.idl \ - nsIVoicemailProvider.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/base \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - $(NULL) diff --git a/dom/voicemail/moz.build b/dom/voicemail/moz.build index 58ce5e27339..024f45f8050 100644 --- a/dom/voicemail/moz.build +++ b/dom/voicemail/moz.build @@ -3,3 +3,19 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMMozVoicemail.idl', + 'nsIDOMMozVoicemailEvent.idl', + 'nsIDOMMozVoicemailStatus.idl', + 'nsINavigatorVoicemail.idl', + 'nsIVoicemailProvider.idl', +] + +XPIDL_MODULE = 'dom_voicemail' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/base', + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', +] + diff --git a/dom/wifi/Makefile.in b/dom/wifi/Makefile.in index 2d0d871c2f9..f57406ea749 100644 --- a/dom/wifi/Makefile.in +++ b/dom/wifi/Makefile.in @@ -11,18 +11,11 @@ include $(DEPTH)/config/autoconf.mk MODULE = dom LIBRARY_NAME = domwifi_s -XPIDL_MODULE = dom_wifi LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 include $(topsrcdir)/dom/dom-config.mk -XPIDLSRCS = \ - nsIWifi.idl \ - nsIDOMMozWifiStatusChangeEvent.idl \ - nsIDOMMozWifiConnectionInfoEvent.idl \ - $(NULL) - EXTRA_COMPONENTS = \ WifiWorker.js \ WifiWorker.manifest \ @@ -38,9 +31,3 @@ EXTRA_JS_MODULES = \ include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += \ - -I$(topsrcdir)/dom/base \ - -I$(topsrcdir)/dom/interfaces/base \ - -I$(topsrcdir)/dom/interfaces/events \ - -I$(topsrcdir)/dom/system/gonk \ - $(NULL) diff --git a/dom/wifi/moz.build b/dom/wifi/moz.build index 58ce5e27339..83db0d438cf 100644 --- a/dom/wifi/moz.build +++ b/dom/wifi/moz.build @@ -3,3 +3,18 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDOMMozWifiConnectionInfoEvent.idl', + 'nsIDOMMozWifiStatusChangeEvent.idl', + 'nsIWifi.idl', +] + +XPIDL_MODULE = 'dom_wifi' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/dom/base', + '-I$(topsrcdir)/dom/interfaces/base', + '-I$(topsrcdir)/dom/interfaces/events', + '-I$(topsrcdir)/dom/system/gonk', +] + diff --git a/dom/workers/test/extensions/traditional/Makefile.in b/dom/workers/test/extensions/traditional/Makefile.in index 3e802a77143..6f96d67f4de 100644 --- a/dom/workers/test/extensions/traditional/Makefile.in +++ b/dom/workers/test/extensions/traditional/Makefile.in @@ -10,12 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk XPI_NAME = worker -XPIDL_MODULE = WorkerTest - -XPIDLSRCS = \ - nsIWorkerTest.idl \ - $(NULL) - EXTRA_COMPONENTS = \ WorkerTest.js \ WorkerTest.manifest \ diff --git a/dom/workers/test/extensions/traditional/moz.build b/dom/workers/test/extensions/traditional/moz.build index 58ce5e27339..f13ddf254ef 100644 --- a/dom/workers/test/extensions/traditional/moz.build +++ b/dom/workers/test/extensions/traditional/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIWorkerTest.idl', +] + +XPIDL_MODULE = 'WorkerTest' + diff --git a/editor/composer/public/Makefile.in b/editor/composer/public/Makefile.in index ee747eb30d7..40fe7de2b11 100644 --- a/editor/composer/public/Makefile.in +++ b/editor/composer/public/Makefile.in @@ -12,9 +12,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = composer -XPIDLSRCS = \ - nsIEditingSession.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/editor/composer/public/moz.build b/editor/composer/public/moz.build index 58ce5e27339..3a9f9f2b36c 100644 --- a/editor/composer/public/moz.build +++ b/editor/composer/public/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIEditingSession.idl', +] + diff --git a/editor/idl/Makefile.in b/editor/idl/Makefile.in index 7ce0f0f09ce..bccc829597e 100644 --- a/editor/idl/Makefile.in +++ b/editor/idl/Makefile.in @@ -13,26 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE := editor GRE_MODULE := 1 -XPIDLSRCS := \ - nsIDocumentStateListener.idl \ - nsIEditActionListener.idl \ - nsIEditor.idl \ - nsIEditorIMESupport.idl \ - nsIEditorMailSupport.idl \ - nsIEditorObserver.idl \ - nsIEditorSpellCheck.idl \ - nsIEditorStyleSheets.idl \ - nsIHTMLEditor.idl \ - nsIHTMLObjectResizer.idl \ - nsIHTMLAbsPosEditor.idl \ - nsIHTMLObjectResizeListener.idl \ - nsIHTMLInlineTableEditor.idl \ - nsIPlaintextEditor.idl \ - nsITableEditor.idl \ - nsIURIRefObject.idl \ - nsIContentFilter.idl \ - nsPIEditorTransaction.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/editor/idl/moz.build b/editor/idl/moz.build index 58ce5e27339..5794ec7bbb8 100644 --- a/editor/idl/moz.build +++ b/editor/idl/moz.build @@ -3,3 +3,24 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIContentFilter.idl', + 'nsIDocumentStateListener.idl', + 'nsIEditActionListener.idl', + 'nsIEditor.idl', + 'nsIEditorIMESupport.idl', + 'nsIEditorMailSupport.idl', + 'nsIEditorObserver.idl', + 'nsIEditorSpellCheck.idl', + 'nsIEditorStyleSheets.idl', + 'nsIHTMLAbsPosEditor.idl', + 'nsIHTMLEditor.idl', + 'nsIHTMLInlineTableEditor.idl', + 'nsIHTMLObjectResizeListener.idl', + 'nsIHTMLObjectResizer.idl', + 'nsIPlaintextEditor.idl', + 'nsITableEditor.idl', + 'nsIURIRefObject.idl', + 'nsPIEditorTransaction.idl', +] + diff --git a/editor/txmgr/idl/Makefile.in b/editor/txmgr/idl/Makefile.in index 77ab1289f25..16f25b856f4 100644 --- a/editor/txmgr/idl/Makefile.in +++ b/editor/txmgr/idl/Makefile.in @@ -12,12 +12,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = txmgr -XPIDLSRCS = \ - nsITransaction.idl \ - nsITransactionList.idl \ - nsITransactionListener.idl \ - nsITransactionManager.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/editor/txmgr/idl/moz.build b/editor/txmgr/idl/moz.build index 58ce5e27339..4821bede1ab 100644 --- a/editor/txmgr/idl/moz.build +++ b/editor/txmgr/idl/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsITransaction.idl', + 'nsITransactionList.idl', + 'nsITransactionListener.idl', + 'nsITransactionManager.idl', +] + diff --git a/editor/txtsvc/public/Makefile.in b/editor/txtsvc/public/Makefile.in index d401aa7e88c..aa96da97d1f 100644 --- a/editor/txtsvc/public/Makefile.in +++ b/editor/txtsvc/public/Makefile.in @@ -20,10 +20,5 @@ EXPORTS = \ nsTextServicesCID.h \ $(NULL) -XPIDLSRCS = \ - nsITextServicesFilter.idl \ - nsIInlineSpellChecker.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/editor/txtsvc/public/moz.build b/editor/txtsvc/public/moz.build index 58ce5e27339..5e1d645e55a 100644 --- a/editor/txtsvc/public/moz.build +++ b/editor/txtsvc/public/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIInlineSpellChecker.idl', + 'nsITextServicesFilter.idl', +] + diff --git a/embedding/base/Makefile.in b/embedding/base/Makefile.in index 03f685cdca2..754f92c46c9 100644 --- a/embedding/base/Makefile.in +++ b/embedding/base/Makefile.in @@ -17,15 +17,4 @@ SDK_HEADERS = \ nsEmbedCID.h \ $(NULL) -SDK_XPIDLSRCS = \ - nsIWindowCreator.idl \ - $(NULL) - - -XPIDLSRCS = \ - nsIWindowCreator2.idl \ - nsIWindowProvider.idl \ - nsIDialogCreator.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/embedding/base/moz.build b/embedding/base/moz.build index 58ce5e27339..f06c5033ef2 100644 --- a/embedding/base/moz.build +++ b/embedding/base/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDialogCreator.idl', + 'nsIWindowCreator.idl', + 'nsIWindowCreator2.idl', + 'nsIWindowProvider.idl', +] + diff --git a/embedding/browser/webBrowser/Makefile.in b/embedding/browser/webBrowser/Makefile.in index 8ef33a09d1f..ebb5e6e8f0e 100644 --- a/embedding/browser/webBrowser/Makefile.in +++ b/embedding/browser/webBrowser/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = webbrwsr -XPIDL_MODULE = webBrowser_core LIBRARY_NAME = nsWebBrowser_s GRE_MODULE = 1 LIBXUL_LIBRARY = 1 @@ -27,27 +26,6 @@ LOCAL_INCLUDES = \ -I$(srcdir)/../../../content/svg/content/src \ $(NULL) -SDK_XPIDLSRCS = \ - nsIContextMenuListener.idl \ - nsIEmbeddingSiteWindow.idl \ - nsITooltipListener.idl \ - nsITooltipTextProvider.idl \ - nsIWebBrowser.idl \ - nsIWebBrowserChrome.idl \ - nsIWebBrowserChromeFocus.idl \ - nsIWebBrowserFocus.idl \ - nsIWebBrowserSetup.idl \ - nsIWebBrowserStream.idl \ - $(NULL) - -XPIDLSRCS = \ - nsCWebBrowser.idl \ - nsICommandHandler.idl \ - nsIContextMenuListener2.idl \ - nsIWebBrowserChrome2.idl \ - nsIWebBrowserChrome3.idl \ - $(NULL) - CPPSRCS = \ nsDocShellTreeOwner.cpp \ nsWebBrowser.cpp \ @@ -57,11 +35,6 @@ CPPSRCS = \ nsEmbedStream.cpp \ $(NULL) -ifdef NS_PRINTING -SDK_XPIDLSRCS += nsIWebBrowserPrint.idl -XPIDLSRCS += nsIPrintingPrompt.idl nsIPrintingPromptService.idl -endif - # we don't want the shared lib, but we want to force the creation of a # static lib. FORCE_STATIC_LIB = 1 diff --git a/embedding/browser/webBrowser/moz.build b/embedding/browser/webBrowser/moz.build index 58ce5e27339..4f2954273f6 100644 --- a/embedding/browser/webBrowser/moz.build +++ b/embedding/browser/webBrowser/moz.build @@ -3,3 +3,30 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsCWebBrowser.idl', + 'nsICommandHandler.idl', + 'nsIContextMenuListener.idl', + 'nsIContextMenuListener2.idl', + 'nsIEmbeddingSiteWindow.idl', + 'nsITooltipListener.idl', + 'nsITooltipTextProvider.idl', + 'nsIWebBrowser.idl', + 'nsIWebBrowserChrome.idl', + 'nsIWebBrowserChrome2.idl', + 'nsIWebBrowserChrome3.idl', + 'nsIWebBrowserChromeFocus.idl', + 'nsIWebBrowserFocus.idl', + 'nsIWebBrowserSetup.idl', + 'nsIWebBrowserStream.idl', +] + +if CONFIG['NS_PRINTING']: + XPIDL_SOURCES += [ + 'nsIPrintingPrompt.idl', + 'nsIPrintingPromptService.idl', + 'nsIWebBrowserPrint.idl', + ] + +XPIDL_MODULE = 'webBrowser_core' + diff --git a/embedding/components/commandhandler/public/Makefile.in b/embedding/components/commandhandler/public/Makefile.in index d66e0d143a7..184ffcceb73 100644 --- a/embedding/components/commandhandler/public/Makefile.in +++ b/embedding/components/commandhandler/public/Makefile.in @@ -12,14 +12,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = commandhandler -XPIDLSRCS = \ - nsICommandManager.idl \ - nsICommandParams.idl \ - nsIControllerCommand.idl \ - nsIControllerContext.idl \ - nsIControllerCommandTable.idl \ - nsPICommandUpdater.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/embedding/components/commandhandler/public/moz.build b/embedding/components/commandhandler/public/moz.build index 58ce5e27339..cc467e8dd63 100644 --- a/embedding/components/commandhandler/public/moz.build +++ b/embedding/components/commandhandler/public/moz.build @@ -3,3 +3,12 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsICommandManager.idl', + 'nsICommandParams.idl', + 'nsIControllerCommand.idl', + 'nsIControllerCommandTable.idl', + 'nsIControllerContext.idl', + 'nsPICommandUpdater.idl', +] + diff --git a/embedding/components/find/public/Makefile.in b/embedding/components/find/public/Makefile.in index c59ccc9c7df..655650ba0b2 100644 --- a/embedding/components/find/public/Makefile.in +++ b/embedding/components/find/public/Makefile.in @@ -12,10 +12,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = find -SDK_XPIDLSRCS = nsIWebBrowserFind.idl \ - $(NULL) -XPIDLSRCS = nsIFind.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/embedding/components/find/public/moz.build b/embedding/components/find/public/moz.build index 58ce5e27339..c36a754fc79 100644 --- a/embedding/components/find/public/moz.build +++ b/embedding/components/find/public/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIFind.idl', + 'nsIWebBrowserFind.idl', +] + diff --git a/embedding/components/webbrowserpersist/public/Makefile.in b/embedding/components/webbrowserpersist/public/Makefile.in index 2f74ade65f2..b421698e1a0 100644 --- a/embedding/components/webbrowserpersist/public/Makefile.in +++ b/embedding/components/webbrowserpersist/public/Makefile.in @@ -13,9 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = webbrowserpersist GRE_MODULE = 1 -XPIDLSRCS = nsIWebBrowserPersist.idl \ - nsCWebBrowserPersist.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/embedding/components/webbrowserpersist/public/moz.build b/embedding/components/webbrowserpersist/public/moz.build index 58ce5e27339..de98cc8b91f 100644 --- a/embedding/components/webbrowserpersist/public/moz.build +++ b/embedding/components/webbrowserpersist/public/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsCWebBrowserPersist.idl', + 'nsIWebBrowserPersist.idl', +] + diff --git a/embedding/components/windowwatcher/public/Makefile.in b/embedding/components/windowwatcher/public/Makefile.in index dde365804f1..3836bb325e0 100644 --- a/embedding/components/windowwatcher/public/Makefile.in +++ b/embedding/components/windowwatcher/public/Makefile.in @@ -14,17 +14,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = windowwatcher GRE_MODULE = 1 -SDK_XPIDLSRCS = nsIWindowWatcher.idl \ - nsIPromptService.idl \ - $(NULL) - -XPIDLSRCS = nsIDialogParamBlock.idl \ - nsIPromptService2.idl \ - nsPIPromptService.idl \ - nsPIWindowWatcher.idl \ - nsIPromptFactory.idl \ - $(NULL) - EXPORTS = nsPromptUtils.h \ $(NULL) diff --git a/embedding/components/windowwatcher/public/moz.build b/embedding/components/windowwatcher/public/moz.build index 58ce5e27339..c4c2d03ef7b 100644 --- a/embedding/components/windowwatcher/public/moz.build +++ b/embedding/components/windowwatcher/public/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDialogParamBlock.idl', + 'nsIPromptFactory.idl', + 'nsIPromptService.idl', + 'nsIPromptService2.idl', + 'nsIWindowWatcher.idl', + 'nsPIPromptService.idl', + 'nsPIWindowWatcher.idl', +] + diff --git a/extensions/cookie/Makefile.in b/extensions/cookie/Makefile.in index 5c2c84b1346..34b70146a69 100644 --- a/extensions/cookie/Makefile.in +++ b/extensions/cookie/Makefile.in @@ -28,11 +28,6 @@ CPPSRCS = \ nsCookiePermission.cpp \ $(NULL) -XPIDLSRCS = \ - nsICookieAcceptDialog.idl \ - nsICookiePromptService.idl \ - $(NULL) - include $(topsrcdir)/config/config.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk include $(topsrcdir)/config/rules.mk diff --git a/extensions/cookie/moz.build b/extensions/cookie/moz.build index 75980e46ba9..371d67fbcf4 100644 --- a/extensions/cookie/moz.build +++ b/extensions/cookie/moz.build @@ -4,3 +4,9 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_TOOL_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsICookieAcceptDialog.idl', + 'nsICookiePromptService.idl', +] + diff --git a/extensions/pref/autoconfig/public/Makefile.in b/extensions/pref/autoconfig/public/Makefile.in index 524097a437c..b8d2ad68aa1 100644 --- a/extensions/pref/autoconfig/public/Makefile.in +++ b/extensions/pref/autoconfig/public/Makefile.in @@ -11,14 +11,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = autoconfig -XPIDLSRCS = \ - nsIAutoConfig.idl \ - nsIReadConfig.idl \ - $(NULL) - -ifdef MOZ_LDAP_XPCOM -XPIDLSRCS += nsILDAPSyncQuery.idl -endif - include $(topsrcdir)/config/rules.mk diff --git a/extensions/pref/autoconfig/public/moz.build b/extensions/pref/autoconfig/public/moz.build index 58ce5e27339..b7b3eb68eee 100644 --- a/extensions/pref/autoconfig/public/moz.build +++ b/extensions/pref/autoconfig/public/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIAutoConfig.idl', + 'nsIReadConfig.idl', +] + +if CONFIG['MOZ_LDAP_XPCOM']: + XPIDL_SOURCES += [ + 'nsILDAPSyncQuery.idl', + ] + diff --git a/extensions/spellcheck/idl/Makefile.in b/extensions/spellcheck/idl/Makefile.in index 58d8455e87c..2f6bd14940d 100644 --- a/extensions/spellcheck/idl/Makefile.in +++ b/extensions/spellcheck/idl/Makefile.in @@ -11,12 +11,5 @@ MODULE = spellchecker include $(DEPTH)/config/autoconf.mk -XPIDLSRCS = \ - mozIPersonalDictionary.idl \ - mozISpellCheckingEngine.idl \ - mozISpellI18NUtil.idl \ - mozISpellI18NManager.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/extensions/spellcheck/idl/moz.build b/extensions/spellcheck/idl/moz.build index 58ce5e27339..097a809cdfd 100644 --- a/extensions/spellcheck/idl/moz.build +++ b/extensions/spellcheck/idl/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'mozIPersonalDictionary.idl', + 'mozISpellCheckingEngine.idl', + 'mozISpellI18NManager.idl', + 'mozISpellI18NUtil.idl', +] + diff --git a/gfx/src/Makefile.in b/gfx/src/Makefile.in index 2831e11a203..ca6c27ee6ca 100644 --- a/gfx/src/Makefile.in +++ b/gfx/src/Makefile.in @@ -21,11 +21,6 @@ ifndef _MSC_VER FAIL_ON_WARNINGS = 1 endif # !_MSC_VER -XPIDLSRCS = \ - nsIFontEnumerator.idl \ - nsIScriptableRegion.idl \ - $(NULL) - EXPORTS = \ gfxCore.h \ gfxCrashReporterUtils.h \ diff --git a/gfx/src/moz.build b/gfx/src/moz.build index 58ce5e27339..fe46789a190 100644 --- a/gfx/src/moz.build +++ b/gfx/src/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIFontEnumerator.idl', + 'nsIScriptableRegion.idl', +] + diff --git a/hal/Makefile.in b/hal/Makefile.in index 61c6cd81c89..a0b180825fe 100644 --- a/hal/Makefile.in +++ b/hal/Makefile.in @@ -36,10 +36,6 @@ EXPORTS_mozilla = \ HalWakeLock.h \ $(NULL) -XPIDLSRCS = \ - nsIRecoveryService.idl \ - $(NULL) - CPPSRCS = \ Hal.cpp \ SandboxHal.cpp \ diff --git a/hal/moz.build b/hal/moz.build index 58ce5e27339..495d95aab5d 100644 --- a/hal/moz.build +++ b/hal/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIRecoveryService.idl', +] + diff --git a/image/decoders/icon/Makefile.in b/image/decoders/icon/Makefile.in index 52dba954c61..d2b2180264e 100644 --- a/image/decoders/icon/Makefile.in +++ b/image/decoders/icon/Makefile.in @@ -48,8 +48,6 @@ CPPSRCS = \ nsIconProtocolHandler.cpp \ $(NULL) -XPIDLSRCS = nsIIconURI.idl - SHARED_LIBRARY_LIBS = $(PLATFORM)/$(LIB_PREFIX)imgicon$(PLATFORM)_s.$(LIB_SUFFIX) LOCAL_INCLUDES = -I$(srcdir)/$(PLATFORM) diff --git a/image/decoders/icon/moz.build b/image/decoders/icon/moz.build index 58ce5e27339..34a7d7c999f 100644 --- a/image/decoders/icon/moz.build +++ b/image/decoders/icon/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIIconURI.idl', +] + diff --git a/image/decoders/icon/qt/public/Makefile.in b/image/decoders/icon/qt/public/Makefile.in index 2c7cce748d9..8d5314411e8 100644 --- a/image/decoders/icon/qt/public/Makefile.in +++ b/image/decoders/icon/qt/public/Makefile.in @@ -11,7 +11,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = gtkqticonsconverter -XPIDLSRCS = nsGtkQtIconsConverter.idl - include $(topsrcdir)/config/rules.mk diff --git a/image/decoders/icon/qt/public/moz.build b/image/decoders/icon/qt/public/moz.build index 58ce5e27339..56498ca8218 100644 --- a/image/decoders/icon/qt/public/moz.build +++ b/image/decoders/icon/qt/public/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsGtkQtIconsConverter.idl', +] + diff --git a/image/public/Makefile.in b/image/public/Makefile.in index 0329bf2cfe8..015aade7f2c 100644 --- a/image/public/Makefile.in +++ b/image/public/Makefile.in @@ -15,18 +15,5 @@ GRE_MODULE = 1 EXPORTS = ImageLogging.h -XPIDLSRCS = \ - imgICache.idl \ - imgIContainer.idl \ - imgIContainerDebug.idl \ - imgIEncoder.idl \ - imgILoader.idl \ - imgINotificationObserver.idl \ - imgIOnloadBlocker.idl \ - imgIRequest.idl \ - imgIScriptedNotificationObserver.idl \ - imgITools.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/image/public/moz.build b/image/public/moz.build index 58ce5e27339..e27ec3fa623 100644 --- a/image/public/moz.build +++ b/image/public/moz.build @@ -3,3 +3,16 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'imgICache.idl', + 'imgIContainer.idl', + 'imgIContainerDebug.idl', + 'imgIEncoder.idl', + 'imgILoader.idl', + 'imgINotificationObserver.idl', + 'imgIOnloadBlocker.idl', + 'imgIRequest.idl', + 'imgIScriptedNotificationObserver.idl', + 'imgITools.idl', +] + diff --git a/intl/locale/idl/Makefile.in b/intl/locale/idl/Makefile.in index 73243c824be..6acce201ecb 100644 --- a/intl/locale/idl/Makefile.in +++ b/intl/locale/idl/Makefile.in @@ -13,12 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = locale GRE_MODULE = 1 -XPIDLSRCS = \ - nsILocale.idl \ - nsILocaleService.idl \ - nsIScriptableDateFormat.idl \ - nsICollation.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/intl/locale/idl/moz.build b/intl/locale/idl/moz.build index 58ce5e27339..2d2f0a4dbda 100644 --- a/intl/locale/idl/moz.build +++ b/intl/locale/idl/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsICollation.idl', + 'nsILocale.idl', + 'nsILocaleService.idl', + 'nsIScriptableDateFormat.idl', +] + diff --git a/intl/lwbrk/idl/Makefile.in b/intl/lwbrk/idl/Makefile.in index 25c680f7fa9..e3615016898 100644 --- a/intl/lwbrk/idl/Makefile.in +++ b/intl/lwbrk/idl/Makefile.in @@ -12,8 +12,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = lwbrk -XPIDLSRCS = \ - nsISemanticUnitScanner.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/intl/lwbrk/idl/moz.build b/intl/lwbrk/idl/moz.build index 58ce5e27339..6c5f4f0ad66 100644 --- a/intl/lwbrk/idl/moz.build +++ b/intl/lwbrk/idl/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsISemanticUnitScanner.idl', +] + diff --git a/intl/strres/public/Makefile.in b/intl/strres/public/Makefile.in index c1d97511005..5ab7704017b 100644 --- a/intl/strres/public/Makefile.in +++ b/intl/strres/public/Makefile.in @@ -13,10 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = intl GRE_MODULE = 1 -XPIDLSRCS = \ - nsIStringBundle.idl \ - nsIStringBundleOverride.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/intl/strres/public/moz.build b/intl/strres/public/moz.build index 58ce5e27339..e3d2b10b9f5 100644 --- a/intl/strres/public/moz.build +++ b/intl/strres/public/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIStringBundle.idl', + 'nsIStringBundleOverride.idl', +] + diff --git a/intl/uconv/idl/Makefile.in b/intl/uconv/idl/Makefile.in index 11bdd1136a4..470012c2060 100644 --- a/intl/uconv/idl/Makefile.in +++ b/intl/uconv/idl/Makefile.in @@ -13,12 +13,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = uconv GRE_MODULE = 1 -XPIDLSRCS = \ - nsITextToSubURI.idl \ - nsICurrentCharsetListener.idl \ - nsICharsetConverterManager.idl \ - nsIScriptableUConv.idl \ - nsIUTF8ConverterService.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/intl/uconv/idl/moz.build b/intl/uconv/idl/moz.build index 58ce5e27339..e29bfcba342 100644 --- a/intl/uconv/idl/moz.build +++ b/intl/uconv/idl/moz.build @@ -3,3 +3,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsICharsetConverterManager.idl', + 'nsICurrentCharsetListener.idl', + 'nsIScriptableUConv.idl', + 'nsITextToSubURI.idl', + 'nsIUTF8ConverterService.idl', +] + diff --git a/intl/unicharutil/idl/Makefile.in b/intl/unicharutil/idl/Makefile.in index be4e03bd3b3..4d8f9b42bf5 100644 --- a/intl/unicharutil/idl/Makefile.in +++ b/intl/unicharutil/idl/Makefile.in @@ -13,11 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = unicharutil GRE_MODULE = 1 -XPIDLSRCS = \ - nsIEntityConverter.idl \ - nsISaveAsCharset.idl \ - nsIUnicodeNormalizer.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/intl/unicharutil/idl/moz.build b/intl/unicharutil/idl/moz.build index 58ce5e27339..ea016bd22c0 100644 --- a/intl/unicharutil/idl/moz.build +++ b/intl/unicharutil/idl/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIEntityConverter.idl', + 'nsISaveAsCharset.idl', + 'nsIUnicodeNormalizer.idl', +] + diff --git a/js/ductwork/debugger/Makefile.in b/js/ductwork/debugger/Makefile.in index 0c4e1a13a56..a99abb6c368 100644 --- a/js/ductwork/debugger/Makefile.in +++ b/js/ductwork/debugger/Makefile.in @@ -32,10 +32,6 @@ EXTRA_JS_MODULES = \ jsdebugger.jsm \ $(NULL) -XPIDLSRCS = \ - IJSDebugger.idl \ - $(NULL) - XPCSHELL_TESTS = tests include $(topsrcdir)/config/rules.mk diff --git a/js/ductwork/debugger/moz.build b/js/ductwork/debugger/moz.build index 58ce5e27339..273def1580b 100644 --- a/js/ductwork/debugger/moz.build +++ b/js/ductwork/debugger/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'IJSDebugger.idl', +] + diff --git a/js/jsd/idl/Makefile.in b/js/jsd/idl/Makefile.in index 15d81a088cd..ee0c5ec0b0e 100644 --- a/js/jsd/idl/Makefile.in +++ b/js/jsd/idl/Makefile.in @@ -11,10 +11,4 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = jsdebug -XPIDL_MODULE = jsdservice - -XPIDLSRCS = \ - jsdIDebuggerService.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/js/jsd/idl/moz.build b/js/jsd/idl/moz.build index 58ce5e27339..6c27e99ee59 100644 --- a/js/jsd/idl/moz.build +++ b/js/jsd/idl/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'jsdIDebuggerService.idl', +] + +XPIDL_MODULE = 'jsdservice' + diff --git a/js/src/config/config.mk b/js/src/config/config.mk index 41a5a5b56d8..29837b23086 100644 --- a/js/src/config/config.mk +++ b/js/src/config/config.mk @@ -526,7 +526,7 @@ endif # Default location of include files IDL_DIR = $(DIST)/idl -XPIDL_FLAGS = -I$(srcdir) -I$(IDL_DIR) +XPIDL_FLAGS += -I$(srcdir) -I$(IDL_DIR) ifdef LIBXUL_SDK XPIDL_FLAGS += -I$(LIBXUL_SDK)/idl endif diff --git a/js/src/config/rules.mk b/js/src/config/rules.mk index c8dc8aa4f63..44d8d46ea7f 100644 --- a/js/src/config/rules.mk +++ b/js/src/config/rules.mk @@ -20,13 +20,22 @@ _MOZBUILD_EXTERNAL_VARIABLES := \ TEST_DIRS \ TIERS \ TOOL_DIRS \ + XPIDL_MODULE \ $(NULL) ifndef EXTERNALLY_MANAGED_MAKE_FILE +# Using $(firstword) may not be perfect. But it should be good enough for most +# scenarios. +_current_makefile = $(CURDIR)/$(firstword $(MAKEFILE_LIST)) + $(foreach var,$(_MOZBUILD_EXTERNAL_VARIABLES),$(if $($(var)),\ - $(error Variable $(var) is defined in Makefile. It should only be defined in moz.build files),\ + $(error Variable $(var) is defined in $(_current_makefile). It should only be defined in moz.build files),\ )) +ifneq (,$(XPIDLSRCS)$(SDK_XPIDLSRCS)) + $(error XPIDLSRCS and SDK_XPIDLSRCS have been merged and moved to moz.build files as the XPIDL_SOURCES variable. You must move these variables out of $(_current_makefile)) +endif + # Import the automatically generated backend file. If this file doesn't exist, # the backend hasn't been properly configured. We want this to be a fatal # error, hence not using "-include". @@ -56,10 +65,6 @@ endif USE_AUTOTARGETS_MK = 1 include $(topsrcdir)/config/makefiles/makeutils.mk -ifdef SDK_XPIDLSRCS -_EXTRA_XPIDLSRCS := $(filter-out $(XPIDLSRCS),$(SDK_XPIDLSRCS)) -XPIDLSRCS += $(_EXTRA_XPIDLSRCS) -endif ifdef SDK_HEADERS _EXTRA_EXPORTS := $(filter-out $(EXPORTS),$(SDK_HEADERS)) EXPORTS += $(_EXTRA_EXPORTS) diff --git a/js/xpconnect/idl/Makefile.in b/js/xpconnect/idl/Makefile.in index 6e8b90bb4c3..edf681d30ad 100644 --- a/js/xpconnect/idl/Makefile.in +++ b/js/xpconnect/idl/Makefile.in @@ -13,26 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = xpconnect GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - mozIJSSubScriptLoader.idl \ - $(NULL) - -XPIDLSRCS = \ - xpccomponents.idl \ - xpcjsid.idl \ - xpcexception.idl \ - xpcIJSModuleLoader.idl \ - nsIJSContextStack.idl \ - nsIJSRuntimeService.idl \ - nsIXPConnect.idl \ - nsIXPCSecurityManager.idl \ - nsIXPCScriptable.idl \ - nsIScriptError.idl \ - nsIXPCScriptNotify.idl \ - xpcIJSWeakReference.idl \ - xpcIJSGetFactory.idl \ - nsIJSEngineTelemetryStats.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/js/xpconnect/idl/moz.build b/js/xpconnect/idl/moz.build index 58ce5e27339..474d33645e4 100644 --- a/js/xpconnect/idl/moz.build +++ b/js/xpconnect/idl/moz.build @@ -3,3 +3,21 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'mozIJSSubScriptLoader.idl', + 'nsIJSContextStack.idl', + 'nsIJSEngineTelemetryStats.idl', + 'nsIJSRuntimeService.idl', + 'nsIScriptError.idl', + 'nsIXPCScriptNotify.idl', + 'nsIXPCScriptable.idl', + 'nsIXPCSecurityManager.idl', + 'nsIXPConnect.idl', + 'xpcIJSGetFactory.idl', + 'xpcIJSModuleLoader.idl', + 'xpcIJSWeakReference.idl', + 'xpccomponents.idl', + 'xpcexception.idl', + 'xpcjsid.idl', +] + diff --git a/js/xpconnect/tests/idl/Makefile.in b/js/xpconnect/tests/idl/Makefile.in index ee7fe9840ab..f0e57788d78 100644 --- a/js/xpconnect/tests/idl/Makefile.in +++ b/js/xpconnect/tests/idl/Makefile.in @@ -12,12 +12,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = xpctest -XPIDLSRCS = \ - xpctest_attributes.idl \ - xpctest_interfaces.idl \ - xpctest_params.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk componentdir = js/xpconnect/tests/components diff --git a/js/xpconnect/tests/idl/moz.build b/js/xpconnect/tests/idl/moz.build index 58ce5e27339..3e8c0a080f1 100644 --- a/js/xpconnect/tests/idl/moz.build +++ b/js/xpconnect/tests/idl/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'xpctest_attributes.idl', + 'xpctest_interfaces.idl', + 'xpctest_params.idl', +] + diff --git a/layout/base/Makefile.in b/layout/base/Makefile.in index 03dc37a6c35..7f24f428ebd 100644 --- a/layout/base/Makefile.in +++ b/layout/base/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = layout -XPIDL_MODULE = layout_base GRE_MODULE = 1 LIBRARY_NAME = gkbase_s LIBXUL_LIBRARY = 1 @@ -21,10 +20,6 @@ endif # !_MSC_VER -XPIDLSRCS = \ - nsIStyleSheetService.idl \ - $(NULL) - EXPORTS_NAMESPACES = mozilla EXPORTS = \ @@ -98,9 +93,6 @@ CPPSRCS = \ $(NULL) ifndef MOZ_XUL -XPIDLSRCS += \ - nsIBoxObject.idl \ - $(NULL) EXPORTS += \ nsPIBoxObject.h \ $(NULL) diff --git a/layout/base/moz.build b/layout/base/moz.build index d0193307adb..a7a8846d688 100644 --- a/layout/base/moz.build +++ b/layout/base/moz.build @@ -4,3 +4,15 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsIStyleSheetService.idl', +] + +if not CONFIG['MOZ_XUL']: + XPIDL_SOURCES += [ + 'nsIBoxObject.idl', + ] + +XPIDL_MODULE = 'layout_base' + diff --git a/layout/forms/Makefile.in b/layout/forms/Makefile.in index 76beb702afb..e9b2710e54d 100644 --- a/layout/forms/Makefile.in +++ b/layout/forms/Makefile.in @@ -11,15 +11,12 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = layout -XPIDL_MODULE = layout_forms LIBRARY_NAME = gkforms_s LIBXUL_LIBRARY = 1 ifndef _MSC_VER FAIL_ON_WARNINGS = 1 endif # !_MSC_VER -XPIDLSRCS = nsICapturePicker.idl - EXPORTS = \ nsIListControlFrame.h \ nsIComboboxControlFrame.h \ diff --git a/layout/forms/moz.build b/layout/forms/moz.build index 493f80dc6ef..aa9d8123092 100644 --- a/layout/forms/moz.build +++ b/layout/forms/moz.build @@ -4,3 +4,10 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsICapturePicker.idl', +] + +XPIDL_MODULE = 'layout_forms' + diff --git a/layout/inspector/public/Makefile.in b/layout/inspector/public/Makefile.in index 5399d7adcb9..0ef6c78307c 100644 --- a/layout/inspector/public/Makefile.in +++ b/layout/inspector/public/Makefile.in @@ -13,16 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE=inspector -XPIDLSRCS = inIDOMView.idl \ - inIDeepTreeWalker.idl \ - inIFlasher.idl \ - inISearchProcess.idl \ - inISearchObserver.idl \ - inICSSValueSearch.idl \ - inIDOMUtils.idl \ - nsIDOMFontFace.idl \ - nsIDOMFontFaceList.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/layout/inspector/public/moz.build b/layout/inspector/public/moz.build index 58ce5e27339..492ced57e59 100644 --- a/layout/inspector/public/moz.build +++ b/layout/inspector/public/moz.build @@ -3,3 +3,15 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'inICSSValueSearch.idl', + 'inIDOMUtils.idl', + 'inIDOMView.idl', + 'inIDeepTreeWalker.idl', + 'inIFlasher.idl', + 'inISearchObserver.idl', + 'inISearchProcess.idl', + 'nsIDOMFontFace.idl', + 'nsIDOMFontFaceList.idl', +] + diff --git a/layout/printing/Makefile.in b/layout/printing/Makefile.in index f6bbe760613..c41874fa32f 100644 --- a/layout/printing/Makefile.in +++ b/layout/printing/Makefile.in @@ -10,7 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = layout -XPIDL_MODULE = layout_printing GRE_MODULE = 1 LIBRARY_NAME = gkprinting_s LIBXUL_LIBRARY = 1 @@ -18,12 +17,6 @@ ifndef _MSC_VER FAIL_ON_WARNINGS = 1 endif # !_MSC_VER -XPIDLSRCS = \ - nsIPrintProgress.idl \ - nsIPrintProgressParams.idl \ - nsIPrintStatusFeedback.idl \ - $(NULL) - CPPSRCS = \ nsPrintEngine.cpp \ nsPrintData.cpp \ diff --git a/layout/printing/moz.build b/layout/printing/moz.build index 58ce5e27339..7d8c3242893 100644 --- a/layout/printing/moz.build +++ b/layout/printing/moz.build @@ -3,3 +3,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIPrintProgress.idl', + 'nsIPrintProgressParams.idl', + 'nsIPrintStatusFeedback.idl', +] + +XPIDL_MODULE = 'layout_printing' + diff --git a/layout/tools/layout-debug/src/Makefile.in b/layout/tools/layout-debug/src/Makefile.in index 6233b8b1580..47d036f921a 100644 --- a/layout/tools/layout-debug/src/Makefile.in +++ b/layout/tools/layout-debug/src/Makefile.in @@ -20,11 +20,6 @@ GRE_MODULE = 1 FAIL_ON_WARNINGS = 1 -XPIDLSRCS = \ - nsILayoutRegressionTester.idl \ - nsILayoutDebuggingTools.idl \ - $(NULL) - EXPORTS = \ nsLayoutDebugCIID.h \ $(NULL) diff --git a/layout/tools/layout-debug/src/moz.build b/layout/tools/layout-debug/src/moz.build index 58ce5e27339..a0752a4f7e6 100644 --- a/layout/tools/layout-debug/src/moz.build +++ b/layout/tools/layout-debug/src/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsILayoutDebuggingTools.idl', + 'nsILayoutRegressionTester.idl', +] + diff --git a/layout/xul/base/public/Makefile.in b/layout/xul/base/public/Makefile.in index 61d38712509..94935885038 100644 --- a/layout/xul/base/public/Makefile.in +++ b/layout/xul/base/public/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = layout -XPIDL_MODULE = layout_xul GRE_MODULE = 1 EXPORTS = \ @@ -20,17 +19,5 @@ EXPORTS = \ nsXULPopupManager.h \ $(NULL) -XPIDLSRCS= nsIBoxObject.idl \ - nsIScrollBoxObject.idl \ - nsIPopupBoxObject.idl \ - nsIMenuBoxObject.idl \ - nsIBrowserBoxObject.idl \ - nsIIFrameBoxObject.idl \ - nsIEditorBoxObject.idl \ - nsIContainerBoxObject.idl \ - nsIListBoxObject.idl \ - nsISliderListener.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/layout/xul/base/public/moz.build b/layout/xul/base/public/moz.build index 58ce5e27339..a65e1d3f268 100644 --- a/layout/xul/base/public/moz.build +++ b/layout/xul/base/public/moz.build @@ -3,3 +3,18 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIBoxObject.idl', + 'nsIBrowserBoxObject.idl', + 'nsIContainerBoxObject.idl', + 'nsIEditorBoxObject.idl', + 'nsIIFrameBoxObject.idl', + 'nsIListBoxObject.idl', + 'nsIMenuBoxObject.idl', + 'nsIPopupBoxObject.idl', + 'nsIScrollBoxObject.idl', + 'nsISliderListener.idl', +] + +XPIDL_MODULE = 'layout_xul' + diff --git a/layout/xul/tree/Makefile.in b/layout/xul/tree/Makefile.in index c6229d8657f..c78937de801 100644 --- a/layout/xul/tree/Makefile.in +++ b/layout/xul/tree/Makefile.in @@ -11,19 +11,10 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = layout -XPIDL_MODULE = layout_xul_tree LIBRARY_NAME = gkxultree_s LIBXUL_LIBRARY = 1 FAIL_ON_WARNINGS = 1 -XPIDLSRCS = \ - nsITreeColumns.idl \ - nsITreeView.idl \ - nsITreeSelection.idl \ - nsITreeBoxObject.idl \ - nsITreeContentView.idl \ - $(NULL) - CPPSRCS = \ nsTreeBodyFrame.cpp \ nsTreeBoxObject.cpp \ diff --git a/layout/xul/tree/moz.build b/layout/xul/tree/moz.build index 58ce5e27339..d4d03d55f46 100644 --- a/layout/xul/tree/moz.build +++ b/layout/xul/tree/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsITreeBoxObject.idl', + 'nsITreeColumns.idl', + 'nsITreeContentView.idl', + 'nsITreeSelection.idl', + 'nsITreeView.idl', +] + +XPIDL_MODULE = 'layout_xul_tree' + diff --git a/mobile/android/components/Makefile.in b/mobile/android/components/Makefile.in index 68074306960..293c976ab5a 100644 --- a/mobile/android/components/Makefile.in +++ b/mobile/android/components/Makefile.in @@ -11,10 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = MobileComponents -XPIDLSRCS = \ - SessionStore.idl \ - $(NULL) - EXTRA_PP_COMPONENTS = \ MobileComponents.manifest \ AboutRedirector.js \ diff --git a/mobile/android/components/build/Makefile.in b/mobile/android/components/build/Makefile.in index e044c9d5f2f..8ba2b152a2b 100644 --- a/mobile/android/components/build/Makefile.in +++ b/mobile/android/components/build/Makefile.in @@ -20,8 +20,6 @@ EXPORT_LIBRARY = 1 EXPORTS = nsBrowserComponents.h -XPIDLSRCS = nsIShellService.idl - CPPSRCS = \ nsBrowserModule.cpp \ nsShellService.cpp \ diff --git a/mobile/android/components/build/moz.build b/mobile/android/components/build/moz.build index 58ce5e27339..4a5c9b3c4ec 100644 --- a/mobile/android/components/build/moz.build +++ b/mobile/android/components/build/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIShellService.idl', +] + diff --git a/mobile/android/components/moz.build b/mobile/android/components/moz.build index 58ce5e27339..9483e2134ab 100644 --- a/mobile/android/components/moz.build +++ b/mobile/android/components/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'SessionStore.idl', +] + diff --git a/modules/libjar/Makefile.in b/modules/libjar/Makefile.in index 0a4f95154be..994b976cbf6 100644 --- a/modules/libjar/Makefile.in +++ b/modules/libjar/Makefile.in @@ -23,8 +23,6 @@ FAIL_ON_WARNINGS = 1 CPPSRCS = $(MODULES_LIBJAR_LCPPSRCS) -XPIDLSRCS = $(MODULES_LIBJAR_LXPIDLSRCS) - EXPORTS = $(MODULES_LIBJAR_LEXPORTS) include $(topsrcdir)/config/config.mk diff --git a/modules/libjar/moz.build b/modules/libjar/moz.build index 4728745b79c..5005636f9aa 100644 --- a/modules/libjar/moz.build +++ b/modules/libjar/moz.build @@ -7,3 +7,8 @@ if CONFIG['MOZ_ZIPWRITER']: DIRS += ['zipwriter'] TEST_TOOL_DIRS += ['test'] + +XPIDL_SOURCES += [ + '$(MODULES_LIBJAR_LXPIDLSRCS)', +] + diff --git a/modules/libjar/zipwriter/public/Makefile.in b/modules/libjar/zipwriter/public/Makefile.in index 09e6e07a82d..4099b2718ce 100644 --- a/modules/libjar/zipwriter/public/Makefile.in +++ b/modules/libjar/zipwriter/public/Makefile.in @@ -11,8 +11,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = zipwriter -XPIDLSRCS = \ - nsIZipWriter.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/modules/libjar/zipwriter/public/moz.build b/modules/libjar/zipwriter/public/moz.build index 58ce5e27339..e6f68cb8ffb 100644 --- a/modules/libjar/zipwriter/public/moz.build +++ b/modules/libjar/zipwriter/public/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIZipWriter.idl', +] + diff --git a/modules/libpref/public/Makefile.in b/modules/libpref/public/Makefile.in index e32dad16459..9fe393829af 100644 --- a/modules/libpref/public/Makefile.in +++ b/modules/libpref/public/Makefile.in @@ -15,18 +15,6 @@ GRE_MODULE = 1 EXPORTS_NAMESPACES = mozilla -SDK_XPIDLSRCS = \ - nsIPrefService.idl \ - nsIPrefBranch.idl \ - nsIPrefBranch2.idl \ - nsIPrefLocalizedString.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIPrefBranchInternal.idl \ - nsIRelativeFilePref.idl \ - $(NULL) - EXPORTS_mozilla = \ Preferences.h \ $(NULL) diff --git a/modules/libpref/public/moz.build b/modules/libpref/public/moz.build index 58ce5e27339..1d08b26bcf1 100644 --- a/modules/libpref/public/moz.build +++ b/modules/libpref/public/moz.build @@ -3,3 +3,12 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIPrefBranch.idl', + 'nsIPrefBranch2.idl', + 'nsIPrefBranchInternal.idl', + 'nsIPrefLocalizedString.idl', + 'nsIPrefService.idl', + 'nsIRelativeFilePref.idl', +] + diff --git a/netwerk/base/public/Makefile.in b/netwerk/base/public/Makefile.in index 10e62ef8691..2992d23af7d 100644 --- a/netwerk/base/public/Makefile.in +++ b/netwerk/base/public/Makefile.in @@ -14,118 +14,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsIChannel.idl \ - nsILoadGroup.idl \ - nsIProtocolHandler.idl \ - nsIRequest.idl \ - nsIRequestObserver.idl \ - nsIStreamListener.idl \ - nsIIOService.idl \ - nsIURI.idl \ - nsIURL.idl \ - nsIFileURL.idl \ - nsIUploadChannel.idl \ - nsITraceableChannel.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIDashboard.idl \ - nsIDashboardEventNotifier.idl \ - nsIApplicationCache.idl \ - nsIApplicationCacheChannel.idl \ - nsIApplicationCacheContainer.idl \ - nsIApplicationCacheService.idl \ - nsIAuthInformation.idl \ - nsIAuthPrompt.idl \ - nsIAuthPrompt2.idl \ - nsIAuthPromptAdapterFactory.idl \ - nsIAuthPromptCallback.idl \ - nsIAsyncStreamCopier.idl \ - nsIAsyncVerifyRedirectCallback.idl \ - nsIBackgroundFileSaver.idl \ - nsIBufferedStreams.idl \ - nsICancelable.idl \ - nsIChannelPolicy.idl \ - nsICryptoHash.idl \ - nsICryptoHMAC.idl \ - nsIDownloader.idl \ - nsIEncodedChannel.idl \ - nsIFileStreams.idl \ - nsIIncrementalDownload.idl \ - nsIInputStreamPump.idl \ - nsIInputStreamChannel.idl \ - nsIIOService2.idl \ - nsIMIMEInputStream.idl \ - nsINetAddr.idl \ - nsINetworkLinkService.idl \ - nsIPermission.idl \ - nsIPermissionManager.idl \ - nsIPrivateBrowsingChannel.idl \ - nsIProgressEventSink.idl \ - nsIPrompt.idl \ - nsIProtocolProxyService.idl \ - nsIProtocolProxyService2.idl \ - nsIProtocolProxyFilter.idl \ - nsIProtocolProxyCallback.idl \ - nsIProxiedProtocolHandler.idl \ - nsIProxyInfo.idl \ - nsITransport.idl \ - nsISocketTransport.idl \ - nsISocketTransportService.idl \ - nsISpeculativeConnect.idl \ - nsIServerSocket.idl \ - nsIUDPServerSocket.idl \ - nsIResumableChannel.idl \ - nsIRequestObserverProxy.idl \ - nsISecurityInfoProvider.idl \ - nsIStreamListenerTee.idl \ - nsISimpleStreamListener.idl \ - nsIStreamTransportService.idl \ - nsIStreamLoader.idl \ - nsISyncStreamListener.idl \ - nsISystemProxySettings.idl \ - nsITimedChannel.idl \ - nsIUnicharStreamLoader.idl \ - nsIUploadChannel2.idl \ - nsIStandardURL.idl \ - nsINestedURI.idl \ - nsIURLParser.idl \ - nsIURIChecker.idl \ - nsISecurityEventSink.idl \ - nsISecretDecoderRing.idl \ - nsISecureBrowserUI.idl \ - nsICryptoFIPSInfo.idl \ - nsINSSErrorsService.idl \ - nsICacheInfoChannel.idl \ - nsICachingChannel.idl \ - nsIByteRangeRequest.idl \ - nsIMultiPartChannel.idl \ - nsIExternalProtocolHandler.idl \ - nsIAuthModule.idl \ - nsIContentSniffer.idl \ - nsIAuthPromptProvider.idl \ - nsPISocketTransportService.idl \ - nsIChannelEventSink.idl \ - nsINetUtil.idl \ - nsIProxiedChannel.idl \ - nsIRandomGenerator.idl \ - nsIStrictTransportSecurityService.idl \ - nsIURIWithPrincipal.idl \ - nsIURIClassifier.idl \ - nsIRedirectResultListener.idl \ - mozIThirdPartyUtil.idl \ - nsISerializationHelper.idl \ - nsIChildChannel.idl \ - nsIParentChannel.idl \ - nsIParentRedirectingChannel.idl \ - nsIRedirectChannelRegistrar.idl \ - $(NULL) - -ifdef MOZ_TOOLKIT_SEARCH -XPIDLSRCS += nsIBrowserSearchService.idl -endif - EXPORTS = \ netCore.h \ nsNetUtil.h \ diff --git a/netwerk/base/public/moz.build b/netwerk/base/public/moz.build index 58ce5e27339..35dcfbb2eec 100644 --- a/netwerk/base/public/moz.build +++ b/netwerk/base/public/moz.build @@ -3,3 +3,113 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'mozIThirdPartyUtil.idl', + 'nsIApplicationCache.idl', + 'nsIApplicationCacheChannel.idl', + 'nsIApplicationCacheContainer.idl', + 'nsIApplicationCacheService.idl', + 'nsIAsyncStreamCopier.idl', + 'nsIAsyncVerifyRedirectCallback.idl', + 'nsIAuthInformation.idl', + 'nsIAuthModule.idl', + 'nsIAuthPrompt.idl', + 'nsIAuthPrompt2.idl', + 'nsIAuthPromptAdapterFactory.idl', + 'nsIAuthPromptCallback.idl', + 'nsIAuthPromptProvider.idl', + 'nsIBackgroundFileSaver.idl', + 'nsIBufferedStreams.idl', + 'nsIByteRangeRequest.idl', + 'nsICacheInfoChannel.idl', + 'nsICachingChannel.idl', + 'nsICancelable.idl', + 'nsIChannel.idl', + 'nsIChannelEventSink.idl', + 'nsIChannelPolicy.idl', + 'nsIChildChannel.idl', + 'nsIContentSniffer.idl', + 'nsICryptoFIPSInfo.idl', + 'nsICryptoHMAC.idl', + 'nsICryptoHash.idl', + 'nsIDashboard.idl', + 'nsIDashboardEventNotifier.idl', + 'nsIDownloader.idl', + 'nsIEncodedChannel.idl', + 'nsIExternalProtocolHandler.idl', + 'nsIFileStreams.idl', + 'nsIFileURL.idl', + 'nsIIOService.idl', + 'nsIIOService2.idl', + 'nsIIncrementalDownload.idl', + 'nsIInputStreamChannel.idl', + 'nsIInputStreamPump.idl', + 'nsILoadGroup.idl', + 'nsIMIMEInputStream.idl', + 'nsIMultiPartChannel.idl', + 'nsINSSErrorsService.idl', + 'nsINestedURI.idl', + 'nsINetAddr.idl', + 'nsINetUtil.idl', + 'nsINetworkLinkService.idl', + 'nsIParentChannel.idl', + 'nsIParentRedirectingChannel.idl', + 'nsIPermission.idl', + 'nsIPermissionManager.idl', + 'nsIPrivateBrowsingChannel.idl', + 'nsIProgressEventSink.idl', + 'nsIPrompt.idl', + 'nsIProtocolHandler.idl', + 'nsIProtocolProxyCallback.idl', + 'nsIProtocolProxyFilter.idl', + 'nsIProtocolProxyService.idl', + 'nsIProtocolProxyService2.idl', + 'nsIProxiedChannel.idl', + 'nsIProxiedProtocolHandler.idl', + 'nsIProxyInfo.idl', + 'nsIRandomGenerator.idl', + 'nsIRedirectChannelRegistrar.idl', + 'nsIRedirectResultListener.idl', + 'nsIRequest.idl', + 'nsIRequestObserver.idl', + 'nsIRequestObserverProxy.idl', + 'nsIResumableChannel.idl', + 'nsISecretDecoderRing.idl', + 'nsISecureBrowserUI.idl', + 'nsISecurityEventSink.idl', + 'nsISecurityInfoProvider.idl', + 'nsISerializationHelper.idl', + 'nsIServerSocket.idl', + 'nsISimpleStreamListener.idl', + 'nsISocketTransport.idl', + 'nsISocketTransportService.idl', + 'nsISpeculativeConnect.idl', + 'nsIStandardURL.idl', + 'nsIStreamListener.idl', + 'nsIStreamListenerTee.idl', + 'nsIStreamLoader.idl', + 'nsIStreamTransportService.idl', + 'nsIStrictTransportSecurityService.idl', + 'nsISyncStreamListener.idl', + 'nsISystemProxySettings.idl', + 'nsITimedChannel.idl', + 'nsITraceableChannel.idl', + 'nsITransport.idl', + 'nsIUDPServerSocket.idl', + 'nsIURI.idl', + 'nsIURIChecker.idl', + 'nsIURIClassifier.idl', + 'nsIURIWithPrincipal.idl', + 'nsIURL.idl', + 'nsIURLParser.idl', + 'nsIUnicharStreamLoader.idl', + 'nsIUploadChannel.idl', + 'nsIUploadChannel2.idl', + 'nsPISocketTransportService.idl', +] + +if CONFIG['MOZ_TOOLKIT_SEARCH']: + XPIDL_SOURCES += [ + 'nsIBrowserSearchService.idl', + ] + diff --git a/netwerk/cache/Makefile.in b/netwerk/cache/Makefile.in index 94ff3d8848f..add7131d030 100644 --- a/netwerk/cache/Makefile.in +++ b/netwerk/cache/Makefile.in @@ -13,21 +13,11 @@ include $(DEPTH)/config/autoconf.mk MODULE = nkcache LIBRARY_NAME = nkcache_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_cache GRE_MODULE = 1 FAIL_ON_WARNINGS := 1 FORCE_STATIC_LIB = 1 -XPIDLSRCS = \ - nsICache.idl \ - nsICacheEntryDescriptor.idl \ - nsICacheListener.idl \ - nsICacheService.idl \ - nsICacheSession.idl \ - nsICacheVisitor.idl \ - $(NULL) - EXPORTS = \ nsCacheService.h \ nsApplicationCacheService.h \ diff --git a/netwerk/cache/moz.build b/netwerk/cache/moz.build index 58ce5e27339..5839126d50e 100644 --- a/netwerk/cache/moz.build +++ b/netwerk/cache/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsICache.idl', + 'nsICacheEntryDescriptor.idl', + 'nsICacheListener.idl', + 'nsICacheService.idl', + 'nsICacheSession.idl', + 'nsICacheVisitor.idl', +] + +XPIDL_MODULE = 'necko_cache' + diff --git a/netwerk/cookie/Makefile.in b/netwerk/cookie/Makefile.in index 452f2b0fd92..415eb665f0f 100644 --- a/netwerk/cookie/Makefile.in +++ b/netwerk/cookie/Makefile.in @@ -13,22 +13,9 @@ include $(DEPTH)/config/autoconf.mk # export required interfaces, even if --disable-cookies has been given MODULE = necko -XPIDL_MODULE = necko_cookie GRE_MODULE = 1 FAIL_ON_WARNINGS := 1 -SDK_XPIDLSRCS = \ - nsICookie.idl \ - nsICookieManager.idl \ - $(NULL) - -XPIDLSRCS = \ - nsICookie2.idl \ - nsICookieManager2.idl \ - nsICookiePermission.idl \ - nsICookieService.idl \ - $(NULL) - ifdef NECKO_COOKIES LIBRARY_NAME = neckocookie_s LIBXUL_LIBRARY = 1 diff --git a/netwerk/cookie/moz.build b/netwerk/cookie/moz.build index 58ce5e27339..888f139154e 100644 --- a/netwerk/cookie/moz.build +++ b/netwerk/cookie/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsICookie.idl', + 'nsICookie2.idl', + 'nsICookieManager.idl', + 'nsICookieManager2.idl', + 'nsICookiePermission.idl', + 'nsICookieService.idl', +] + +XPIDL_MODULE = 'necko_cookie' + diff --git a/netwerk/dns/Makefile.in b/netwerk/dns/Makefile.in index a6f7eb2d75b..a5ce592f82a 100644 --- a/netwerk/dns/Makefile.in +++ b/netwerk/dns/Makefile.in @@ -13,19 +13,9 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = neckodns_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_dns GRE_MODULE = 1 FAIL_ON_WARNINGS := 1 -XPIDLSRCS = \ - nsIDNSListener.idl \ - nsIDNSRecord.idl \ - nsIDNSService.idl \ - nsIEffectiveTLDService.idl \ - nsIIDNService.idl \ - nsPIDNSService.idl \ - $(NULL) - CPPSRCS = \ DNS.cpp \ nsIDNService.cpp \ diff --git a/netwerk/dns/moz.build b/netwerk/dns/moz.build index 58ce5e27339..d90f66255ab 100644 --- a/netwerk/dns/moz.build +++ b/netwerk/dns/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIDNSListener.idl', + 'nsIDNSRecord.idl', + 'nsIDNSService.idl', + 'nsIEffectiveTLDService.idl', + 'nsIIDNService.idl', + 'nsPIDNSService.idl', +] + +XPIDL_MODULE = 'necko_dns' + diff --git a/netwerk/ipc/Makefile.in b/netwerk/ipc/Makefile.in index 6dcd3c25333..8d786674fee 100644 --- a/netwerk/ipc/Makefile.in +++ b/netwerk/ipc/Makefile.in @@ -16,12 +16,6 @@ LIBRARY_NAME = neckoipc_s LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 EXPORT_LIBRARY = 1 -XPIDL_MODULE = necko_ipc - -XPIDLSRCS = \ - nsIRemoteOpenFileListener.idl \ - $(NULL) - EXPORTS_NAMESPACES = mozilla/net EXPORTS_mozilla/net = \ diff --git a/netwerk/ipc/moz.build b/netwerk/ipc/moz.build index 58ce5e27339..c27b9f5cda7 100644 --- a/netwerk/ipc/moz.build +++ b/netwerk/ipc/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIRemoteOpenFileListener.idl', +] + +XPIDL_MODULE = 'necko_ipc' + diff --git a/netwerk/mime/Makefile.in b/netwerk/mime/Makefile.in index efe49ae96ba..e8cc7a4474d 100644 --- a/netwerk/mime/Makefile.in +++ b/netwerk/mime/Makefile.in @@ -21,12 +21,6 @@ EXPORTS = \ nsMimeTypes.h \ $(NULL) -XPIDLSRCS = \ - nsIMIMEHeaderParam.idl \ - nsIMIMEInfo.idl \ - nsIMIMEService.idl \ - $(NULL) - CPPSRCS = \ nsMIMEHeaderParamImpl.cpp \ $(NULL) @@ -35,4 +29,3 @@ include $(topsrcdir)/config/rules.mk DEFINES += -DIMPL_NS_NET -XPIDL_FLAGS += -I$(topsrcdir)/netwerk/base/public diff --git a/netwerk/mime/moz.build b/netwerk/mime/moz.build index 58ce5e27339..bc1edaa5d1a 100644 --- a/netwerk/mime/moz.build +++ b/netwerk/mime/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIMIMEHeaderParam.idl', + 'nsIMIMEInfo.idl', + 'nsIMIMEService.idl', +] + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/netwerk/base/public', +] + diff --git a/netwerk/protocol/about/Makefile.in b/netwerk/protocol/about/Makefile.in index fcc6c1cee5c..46162cc3af6 100644 --- a/netwerk/protocol/about/Makefile.in +++ b/netwerk/protocol/about/Makefile.in @@ -14,15 +14,12 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nkabout_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_about GRE_MODULE = 1 FORCE_STATIC_LIB = 1 EXPORTS = nsAboutProtocolUtils.h -XPIDLSRCS = nsIAboutModule.idl - CPPSRCS = \ nsAboutProtocolHandler.cpp \ nsAboutBlank.cpp \ diff --git a/netwerk/protocol/about/moz.build b/netwerk/protocol/about/moz.build index 58ce5e27339..78aecb9f6a9 100644 --- a/netwerk/protocol/about/moz.build +++ b/netwerk/protocol/about/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIAboutModule.idl', +] + +XPIDL_MODULE = 'necko_about' + diff --git a/netwerk/protocol/file/Makefile.in b/netwerk/protocol/file/Makefile.in index be6955f3c4d..5de972022b5 100644 --- a/netwerk/protocol/file/Makefile.in +++ b/netwerk/protocol/file/Makefile.in @@ -14,16 +14,10 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nkfile_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_file GRE_MODULE = 1 FORCE_STATIC_LIB = 1 -XPIDLSRCS = \ - nsIFileChannel.idl \ - nsIFileProtocolHandler.idl \ - $(NULL) - CPPSRCS = \ nsFileProtocolHandler.cpp \ nsFileChannel.cpp \ @@ -38,4 +32,3 @@ include $(topsrcdir)/config/rules.mk DEFINES += -DIMPL_NS_NET -XPIDL_FLAGS += -I$(topsrcdir)/netwerk/base/public diff --git a/netwerk/protocol/file/moz.build b/netwerk/protocol/file/moz.build index 58ce5e27339..5576b1965e7 100644 --- a/netwerk/protocol/file/moz.build +++ b/netwerk/protocol/file/moz.build @@ -3,3 +3,14 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIFileChannel.idl', + 'nsIFileProtocolHandler.idl', +] + +XPIDL_MODULE = 'necko_file' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/netwerk/base/public', +] + diff --git a/netwerk/protocol/ftp/Makefile.in b/netwerk/protocol/ftp/Makefile.in index 046fd679a09..48d97d6ad53 100644 --- a/netwerk/protocol/ftp/Makefile.in +++ b/netwerk/protocol/ftp/Makefile.in @@ -14,17 +14,12 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nkftp_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_ftp GRE_MODULE = 1 FORCE_STATIC_LIB = 1 EXPORTS = ftpCore.h -XPIDLSRCS = \ - nsIFTPChannel.idl \ - $(NULL) - EXPORTS_NAMESPACES = mozilla/net EXPORTS_mozilla/net += \ diff --git a/netwerk/protocol/ftp/moz.build b/netwerk/protocol/ftp/moz.build index 58ce5e27339..2303b86c017 100644 --- a/netwerk/protocol/ftp/moz.build +++ b/netwerk/protocol/ftp/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIFTPChannel.idl', +] + +XPIDL_MODULE = 'necko_ftp' + diff --git a/netwerk/protocol/http/Makefile.in b/netwerk/protocol/http/Makefile.in index 12532d18cda..74521a19251 100644 --- a/netwerk/protocol/http/Makefile.in +++ b/netwerk/protocol/http/Makefile.in @@ -13,30 +13,12 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nkhttp_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_http GRE_MODULE = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS := 1 EXPORTS_NAMESPACES = mozilla/net -SDK_XPIDLSRCS = \ - nsIHttpChannel.idl \ - nsIHttpHeaderVisitor.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIHttpActivityObserver.idl \ - nsIHttpAuthManager.idl \ - nsIHttpAuthenticator.idl \ - nsIHttpChannelInternal.idl \ - nsIHttpEventSink.idl \ - nsIHttpProtocolHandler.idl \ - nsIHttpChannelAuthProvider.idl \ - nsIHttpAuthenticableChannel.idl \ - nsIHttpChannelChild.idl \ - $(NULL) - EXPORTS_mozilla/net = \ HttpBaseChannel.h \ $(NULL) @@ -106,4 +88,3 @@ include $(topsrcdir)/config/rules.mk DEFINES += -DIMPL_NS_NET -XPIDL_FLAGS += -I$(topsrcdir)/netwerk/base/public diff --git a/netwerk/protocol/http/moz.build b/netwerk/protocol/http/moz.build index 58ce5e27339..91eedc67890 100644 --- a/netwerk/protocol/http/moz.build +++ b/netwerk/protocol/http/moz.build @@ -3,3 +3,23 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIHttpActivityObserver.idl', + 'nsIHttpAuthManager.idl', + 'nsIHttpAuthenticableChannel.idl', + 'nsIHttpAuthenticator.idl', + 'nsIHttpChannel.idl', + 'nsIHttpChannelAuthProvider.idl', + 'nsIHttpChannelChild.idl', + 'nsIHttpChannelInternal.idl', + 'nsIHttpEventSink.idl', + 'nsIHttpHeaderVisitor.idl', + 'nsIHttpProtocolHandler.idl', +] + +XPIDL_MODULE = 'necko_http' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/netwerk/base/public', +] + diff --git a/netwerk/protocol/res/Makefile.in b/netwerk/protocol/res/Makefile.in index ff9ee09ecce..3af1ad9453a 100644 --- a/netwerk/protocol/res/Makefile.in +++ b/netwerk/protocol/res/Makefile.in @@ -13,16 +13,11 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nkres_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_res GRE_MODULE = 1 FAIL_ON_WARNINGS = 1 FORCE_STATIC_LIB = 1 -XPIDLSRCS = \ - nsIResProtocolHandler.idl \ - $(NULL) - CPPSRCS = \ nsResProtocolHandler.cpp \ $(NULL) @@ -37,4 +32,3 @@ include $(topsrcdir)/config/rules.mk DEFINES += -DIMPL_NS_NET -XPIDL_FLAGS += -I$(topsrcdir)/netwerk/base/public diff --git a/netwerk/protocol/res/moz.build b/netwerk/protocol/res/moz.build index 58ce5e27339..4b11bacfdb9 100644 --- a/netwerk/protocol/res/moz.build +++ b/netwerk/protocol/res/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIResProtocolHandler.idl', +] + +XPIDL_MODULE = 'necko_res' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/netwerk/base/public', +] + diff --git a/netwerk/protocol/viewsource/Makefile.in b/netwerk/protocol/viewsource/Makefile.in index 6d9cd6fbc09..3efb89226f5 100644 --- a/netwerk/protocol/viewsource/Makefile.in +++ b/netwerk/protocol/viewsource/Makefile.in @@ -14,15 +14,10 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nkviewsource_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_viewsource GRE_MODULE = 1 FORCE_STATIC_LIB = 1 -XPIDLSRCS = \ - nsIViewSourceChannel.idl \ - $(NULL) - CPPSRCS = \ nsViewSourceHandler.cpp \ nsViewSourceChannel.cpp \ @@ -34,4 +29,3 @@ LOCAL_INCLUDES = \ include $(topsrcdir)/config/rules.mk -XPIDL_FLAGS += -I$(topsrcdir)/netwerk/base/public diff --git a/netwerk/protocol/viewsource/moz.build b/netwerk/protocol/viewsource/moz.build index 58ce5e27339..4462fab9229 100644 --- a/netwerk/protocol/viewsource/moz.build +++ b/netwerk/protocol/viewsource/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIViewSourceChannel.idl', +] + +XPIDL_MODULE = 'necko_viewsource' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/netwerk/base/public', +] + diff --git a/netwerk/protocol/websocket/Makefile.in b/netwerk/protocol/websocket/Makefile.in index 42b90f532f0..76053b74a3b 100644 --- a/netwerk/protocol/websocket/Makefile.in +++ b/netwerk/protocol/websocket/Makefile.in @@ -12,18 +12,12 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nkwebsocket_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_websocket GRE_MODULE = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS = 1 EXPORTS_NAMESPACES = mozilla/net -XPIDLSRCS = \ - nsIWebSocketChannel.idl \ - nsIWebSocketListener.idl \ - $(NULL) - CPPSRCS = \ WebSocketChannel.cpp \ WebSocketChannelParent.cpp \ diff --git a/netwerk/protocol/websocket/moz.build b/netwerk/protocol/websocket/moz.build index 58ce5e27339..4092239b846 100644 --- a/netwerk/protocol/websocket/moz.build +++ b/netwerk/protocol/websocket/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIWebSocketChannel.idl', + 'nsIWebSocketListener.idl', +] + +XPIDL_MODULE = 'necko_websocket' + diff --git a/netwerk/protocol/wyciwyg/Makefile.in b/netwerk/protocol/wyciwyg/Makefile.in index 2a9aafb19f6..5c8b88e1f2a 100644 --- a/netwerk/protocol/wyciwyg/Makefile.in +++ b/netwerk/protocol/wyciwyg/Makefile.in @@ -12,17 +12,12 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nkwyciwyg_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_wyciwyg GRE_MODULE = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS = 1 EXPORTS_NAMESPACES = mozilla/net -XPIDLSRCS = \ - nsIWyciwygChannel.idl \ - $(NULL) - EXPORTS_mozilla/net += \ WyciwygChannelParent.h \ WyciwygChannelChild.h \ @@ -46,4 +41,3 @@ include $(topsrcdir)/config/rules.mk DEFINES += -DIMPL_NS_NET -XPIDL_FLAGS += -I$(topsrcdir)/netwerk/base/public diff --git a/netwerk/protocol/wyciwyg/moz.build b/netwerk/protocol/wyciwyg/moz.build index 58ce5e27339..ad3877b81fd 100644 --- a/netwerk/protocol/wyciwyg/moz.build +++ b/netwerk/protocol/wyciwyg/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIWyciwygChannel.idl', +] + +XPIDL_MODULE = 'necko_wyciwyg' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/netwerk/base/public', +] + diff --git a/netwerk/sctp/datachannel/Makefile.in b/netwerk/sctp/datachannel/Makefile.in index af0ee8f0997..76b1972dc59 100644 --- a/netwerk/sctp/datachannel/Makefile.in +++ b/netwerk/sctp/datachannel/Makefile.in @@ -13,7 +13,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nkdatachan_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_datachan GRE_MODULE = 1 FORCE_STATIC_LIB = 1 diff --git a/netwerk/sctp/datachannel/moz.build b/netwerk/sctp/datachannel/moz.build index 58ce5e27339..c0964e61907 100644 --- a/netwerk/sctp/datachannel/moz.build +++ b/netwerk/sctp/datachannel/moz.build @@ -3,3 +3,5 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_MODULE = 'necko_datachan' + diff --git a/netwerk/sctp/src/Makefile.in b/netwerk/sctp/src/Makefile.in index 28af07a0e9d..ebffbff0e1e 100644 --- a/netwerk/sctp/src/Makefile.in +++ b/netwerk/sctp/src/Makefile.in @@ -17,15 +17,11 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nksctp_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_sctp GRE_MODULE = 1 FORCE_STATIC_LIB = 1 EXPORTS_NAMESPACES = mozilla/net -XPIDLSRCS = \ - $(NULL) - ifeq ($(OS_TARGET),Android) CPPSRCS = \ ifaddrs_android.cpp \ diff --git a/netwerk/sctp/src/moz.build b/netwerk/sctp/src/moz.build index 58ce5e27339..d077a079e0a 100644 --- a/netwerk/sctp/src/moz.build +++ b/netwerk/sctp/src/moz.build @@ -3,3 +3,5 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_MODULE = 'necko_sctp' + diff --git a/netwerk/socket/Makefile.in b/netwerk/socket/Makefile.in index 9aa933046fd..1893582086d 100644 --- a/netwerk/socket/Makefile.in +++ b/netwerk/socket/Makefile.in @@ -12,20 +12,11 @@ FAIL_ON_WARNINGS := 1 include $(DEPTH)/config/autoconf.mk MODULE = necko -XPIDL_MODULE = necko_socket LIBRARY_NAME = neckosocket_s LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 -XPIDLSRCS = \ - nsISocketProvider.idl \ - nsISocketProviderService.idl \ - nsISOCKSSocketInfo.idl \ - nsISSLSocketControl.idl \ - nsITransportSecurityInfo.idl \ - $(NULL) - CPPSRCS = \ nsSocketProviderService.cpp \ nsSOCKSSocketProvider.cpp \ diff --git a/netwerk/socket/moz.build b/netwerk/socket/moz.build index 58ce5e27339..5e8612b092b 100644 --- a/netwerk/socket/moz.build +++ b/netwerk/socket/moz.build @@ -3,3 +3,13 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsISOCKSSocketInfo.idl', + 'nsISSLSocketControl.idl', + 'nsISocketProvider.idl', + 'nsISocketProviderService.idl', + 'nsITransportSecurityInfo.idl', +] + +XPIDL_MODULE = 'necko_socket' + diff --git a/netwerk/srtp/src/Makefile.in b/netwerk/srtp/src/Makefile.in index 1e834047283..ea52d7fa461 100644 --- a/netwerk/srtp/src/Makefile.in +++ b/netwerk/srtp/src/Makefile.in @@ -23,7 +23,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = nksrtp_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_srtp GRE_MODULE = 1 FORCE_STATIC_LIB = 1 diff --git a/netwerk/srtp/src/moz.build b/netwerk/srtp/src/moz.build index 58ce5e27339..dff36c1c15a 100644 --- a/netwerk/srtp/src/moz.build +++ b/netwerk/srtp/src/moz.build @@ -3,3 +3,5 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_MODULE = 'necko_srtp' + diff --git a/netwerk/streamconv/public/Makefile.in b/netwerk/streamconv/public/Makefile.in index b35413b521f..649119c2a25 100644 --- a/netwerk/streamconv/public/Makefile.in +++ b/netwerk/streamconv/public/Makefile.in @@ -12,26 +12,9 @@ FAIL_ON_WARNINGS := 1 include $(DEPTH)/config/autoconf.mk MODULE = necko -XPIDL_MODULE = necko_strconv GRE_MODULE = 1 -XPIDLSRCS = \ - nsIStreamConverter.idl \ - nsIStreamConverterService.idl \ - mozITXTToHTMLConv.idl \ - nsITXTToHTMLConv.idl \ - nsIDirIndex.idl \ - nsIDirIndexListener.idl \ - $(NULL) - -ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) -XPIDLSRCS += \ - nsIAppleFileDecoder.idl \ - $(NULL) -endif - include $(topsrcdir)/config/rules.mk DEFINES += -DIMPL_NS_NET -XPIDL_FLAGS += -I$(topsrcdir)/netwerk/base/public diff --git a/netwerk/streamconv/public/moz.build b/netwerk/streamconv/public/moz.build index 58ce5e27339..227f3270fdd 100644 --- a/netwerk/streamconv/public/moz.build +++ b/netwerk/streamconv/public/moz.build @@ -3,3 +3,23 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'mozITXTToHTMLConv.idl', + 'nsIDirIndex.idl', + 'nsIDirIndexListener.idl', + 'nsIStreamConverter.idl', + 'nsIStreamConverterService.idl', + 'nsITXTToHTMLConv.idl', +] + +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': + XPIDL_SOURCES += [ + 'nsIAppleFileDecoder.idl', + ] + +XPIDL_MODULE = 'necko_strconv' + +XPIDL_FLAGS += [ + '-I$(topsrcdir)/netwerk/base/public', +] + diff --git a/netwerk/test/httpserver/Makefile.in b/netwerk/test/httpserver/Makefile.in index 3227f1a7369..05db1285ac8 100644 --- a/netwerk/test/httpserver/Makefile.in +++ b/netwerk/test/httpserver/Makefile.in @@ -28,10 +28,6 @@ EXTRA_COMPONENTS += \ $(NULL) endif -XPIDLSRCS = \ - nsIHttpServer.idl \ - $(NULL) - XPCSHELL_TESTS = test TESTING_JS_MODULES = httpd.js diff --git a/netwerk/test/httpserver/moz.build b/netwerk/test/httpserver/moz.build index 58ce5e27339..e4bc371784f 100644 --- a/netwerk/test/httpserver/moz.build +++ b/netwerk/test/httpserver/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIHttpServer.idl', +] + diff --git a/netwerk/wifi/Makefile.in b/netwerk/wifi/Makefile.in index 39cc72450bc..09e1dad5c3e 100644 --- a/netwerk/wifi/Makefile.in +++ b/netwerk/wifi/Makefile.in @@ -12,7 +12,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = necko LIBRARY_NAME = neckowifi_s LIBXUL_LIBRARY = 1 -XPIDL_MODULE = necko_wifi GRE_MODULE = 1 FORCE_STATIC_LIB = 1 @@ -22,12 +21,6 @@ ifneq ($(OS_ARCH),Darwin) FAIL_ON_WARNINGS := 1 endif -XPIDLSRCS = \ - nsIWifiAccessPoint.idl \ - nsIWifiListener.idl \ - nsIWifiMonitor.idl \ - $(NULL) - ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) CPPSRCS += nsWifiMonitorGonk.cpp else diff --git a/netwerk/wifi/moz.build b/netwerk/wifi/moz.build index 58ce5e27339..434202e1b2d 100644 --- a/netwerk/wifi/moz.build +++ b/netwerk/wifi/moz.build @@ -3,3 +3,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIWifiAccessPoint.idl', + 'nsIWifiListener.idl', + 'nsIWifiMonitor.idl', +] + +XPIDL_MODULE = 'necko_wifi' + diff --git a/parser/html/Makefile.in b/parser/html/Makefile.in index cbd3ec132db..723b7295a25 100644 --- a/parser/html/Makefile.in +++ b/parser/html/Makefile.in @@ -13,11 +13,6 @@ MODULE = html5 LIBRARY_NAME = html5p_s LIBXUL_LIBRARY = 1 -XPIDLSRCS = \ - nsIParserUtils.idl \ - nsIScriptableUnescapeHTML.idl \ - $(NULL) - EXPORTS = \ jArray.h \ nsAHtml5TreeBuilderState.h \ diff --git a/parser/html/moz.build b/parser/html/moz.build index 58ce5e27339..05aa45093ab 100644 --- a/parser/html/moz.build +++ b/parser/html/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIParserUtils.idl', + 'nsIScriptableUnescapeHTML.idl', +] + diff --git a/parser/htmlparser/public/Makefile.in b/parser/htmlparser/public/Makefile.in index a16eb2248e1..cd36bd91eaf 100644 --- a/parser/htmlparser/public/Makefile.in +++ b/parser/htmlparser/public/Makefile.in @@ -13,11 +13,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = htmlparser GRE_MODULE = 1 -XPIDLSRCS = \ - nsIExpatSink.idl \ - nsIExtendedExpatSink.idl \ - $(NULL) - EXPORTS = \ nsIContentSink.h \ nsITokenizer.h \ diff --git a/parser/htmlparser/public/moz.build b/parser/htmlparser/public/moz.build index 58ce5e27339..fa0a16a0d5a 100644 --- a/parser/htmlparser/public/moz.build +++ b/parser/htmlparser/public/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIExpatSink.idl', + 'nsIExtendedExpatSink.idl', +] + diff --git a/parser/xml/public/Makefile.in b/parser/xml/public/Makefile.in index a63da2652f4..4d7b6eaaa44 100644 --- a/parser/xml/public/Makefile.in +++ b/parser/xml/public/Makefile.in @@ -10,19 +10,4 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = xml -XPIDL_MODULE = saxparser - -XPIDLSRCS = \ - nsISAXAttributes.idl \ - nsISAXMutableAttributes.idl \ - nsISAXContentHandler.idl \ - nsISAXDTDHandler.idl \ - nsISAXErrorHandler.idl \ - nsISAXLexicalHandler.idl \ - nsISAXLocator.idl \ - nsISAXXMLReader.idl \ - nsISAXXMLFilter.idl \ - nsIMozSAXXMLDeclarationHandler.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/parser/xml/public/moz.build b/parser/xml/public/moz.build index 58ce5e27339..bfd6519d72c 100644 --- a/parser/xml/public/moz.build +++ b/parser/xml/public/moz.build @@ -3,3 +3,18 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIMozSAXXMLDeclarationHandler.idl', + 'nsISAXAttributes.idl', + 'nsISAXContentHandler.idl', + 'nsISAXDTDHandler.idl', + 'nsISAXErrorHandler.idl', + 'nsISAXLexicalHandler.idl', + 'nsISAXLocator.idl', + 'nsISAXMutableAttributes.idl', + 'nsISAXXMLFilter.idl', + 'nsISAXXMLReader.idl', +] + +XPIDL_MODULE = 'saxparser' + diff --git a/profile/public/Makefile.in b/profile/public/Makefile.in index 64b7668eaa1..7dfb4c0e5df 100644 --- a/profile/public/Makefile.in +++ b/profile/public/Makefile.in @@ -12,9 +12,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = profile -XPIDLSRCS = \ - nsIProfileUnlocker.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/profile/public/moz.build b/profile/public/moz.build index 58ce5e27339..d1c84bb76d3 100644 --- a/profile/public/moz.build +++ b/profile/public/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIProfileUnlocker.idl', +] + diff --git a/python/mozbuild/mozbuild/frontend/emitter.py b/python/mozbuild/mozbuild/frontend/emitter.py index c61619c5bf1..c1c0d0171fd 100644 --- a/python/mozbuild/mozbuild/frontend/emitter.py +++ b/python/mozbuild/mozbuild/frontend/emitter.py @@ -74,6 +74,12 @@ class TreeMetadataEmitter(object): # them. We should aim to keep this set small because it violates the # desired abstraction of the build definition away from makefiles. passthru = VariablePassthru(sandbox) + if sandbox['XPIDL_SOURCES']: + passthru.variables['XPIDLSRCS'] = sandbox['XPIDL_SOURCES'] + if sandbox['XPIDL_MODULE']: + passthru.variables['XPIDL_MODULE'] = sandbox['XPIDL_MODULE'] + if sandbox['XPIDL_FLAGS']: + passthru.variables['XPIDL_FLAGS'] = sandbox['XPIDL_FLAGS'] if passthru.variables: yield passthru diff --git a/python/mozbuild/mozbuild/frontend/sandbox_symbols.py b/python/mozbuild/mozbuild/frontend/sandbox_symbols.py index 495a6f5eb35..60b49904687 100644 --- a/python/mozbuild/mozbuild/frontend/sandbox_symbols.py +++ b/python/mozbuild/mozbuild/frontend/sandbox_symbols.py @@ -140,6 +140,31 @@ VARIABLES = { like @foo@ will be substituted with the values of the AC_SUBST variables declared during configure. """), + + # IDL Generation. + 'XPIDL_SOURCES': (list, [], + """XPCOM Interface Definition Files (xpidl). + + This is a list of files that define XPCOM interface definitions. + Entries must be files that exist. Entries are almost certainly .idl + files. + """), + + 'XPIDL_MODULE': (unicode, "", + """XPCOM Interface Definition Module Name. + + This is the name of the .xpt file that is created by linking + XPIDL_SOURCES together. If unspecified, it defaults to be the same as + MODULE. + """), + + 'XPIDL_FLAGS': (list, [], + """XPCOM Interface Definition Module Flags. + + This is a list of extra flags that are passed to the IDL compiler. + Typically this is a set of -I flags that denote extra include + directories to search for included .idl files. + """), } # The set of functions exposed to the sandbox. diff --git a/python/mozbuild/mozbuild/test/backend/common.py b/python/mozbuild/mozbuild/test/backend/common.py index c957cb61e45..f474b8377af 100644 --- a/python/mozbuild/mozbuild/test/backend/common.py +++ b/python/mozbuild/mozbuild/test/backend/common.py @@ -53,6 +53,11 @@ CONFIGS = { ('MOZ_BAR', 'bar'), ], }, + 'variable_passthru': { + 'defines': [], + 'non_global_defines': [], + 'substs': [], + }, } diff --git a/python/mozbuild/mozbuild/test/backend/data/variable_passthru/Makefile.in b/python/mozbuild/mozbuild/test/backend/data/variable_passthru/Makefile.in new file mode 100644 index 00000000000..e69de29bb2d diff --git a/python/mozbuild/mozbuild/test/backend/data/variable_passthru/moz.build b/python/mozbuild/mozbuild/test/backend/data/variable_passthru/moz.build new file mode 100644 index 00000000000..ff58b859c59 --- /dev/null +++ b/python/mozbuild/mozbuild/test/backend/data/variable_passthru/moz.build @@ -0,0 +1,6 @@ +# Any copyright is dedicated to the Public Domain. +# http://creativecommons.org/publicdomain/zero/1.0/ + +XPIDL_SOURCES = ['foo.idl', 'bar.idl', 'biz.idl'] +XPIDL_MODULE = 'module_name' +XPIDL_FLAGS = ['-Idir1', '-Idir2', '-Idir3'] diff --git a/python/mozbuild/mozbuild/test/backend/test_recursivemake.py b/python/mozbuild/mozbuild/test/backend/test_recursivemake.py index 65f30acc756..b76a9de358e 100644 --- a/python/mozbuild/mozbuild/test/backend/test_recursivemake.py +++ b/python/mozbuild/mozbuild/test/backend/test_recursivemake.py @@ -118,6 +118,24 @@ class TestRecursiveMakeBackend(BackendTester): 'TEST = foo', ]) + def test_variable_passthru(self): + """Ensure variable passthru is written out correctly.""" + env = self._consume('variable_passthru', RecursiveMakeBackend) + + backend_path = os.path.join(env.topobjdir, 'backend.mk') + lines = [l.strip() for l in open(backend_path, 'rt').readlines()[2:-1]] + self.assertEqual(lines[2:5], [ + 'XPIDLSRCS += foo.idl', + 'XPIDLSRCS += bar.idl', + 'XPIDLSRCS += biz.idl', + ]) + self.assertEqual(lines[5:8], [ + 'XPIDL_FLAGS += -Idir1', + 'XPIDL_FLAGS += -Idir2', + 'XPIDL_FLAGS += -Idir3', + ]) + self.assertEqual(lines[8], 'XPIDL_MODULE := module_name') + if __name__ == '__main__': main() diff --git a/python/mozbuild/mozbuild/test/frontend/data/variable-passthru/moz.build b/python/mozbuild/mozbuild/test/frontend/data/variable-passthru/moz.build new file mode 100644 index 00000000000..1c1a13431fd --- /dev/null +++ b/python/mozbuild/mozbuild/test/frontend/data/variable-passthru/moz.build @@ -0,0 +1,6 @@ +# Any copyright is dedicated to the Public Domain. +# http://creativecommons.org/publicdomain/zero/1.0/ + +XPIDL_SOURCES += ['foo.idl', 'bar.idl', 'biz.idl'] +XPIDL_MODULE = 'module_name' +XPIDL_FLAGS += ['-Idir1', '-Idir2', '-Idir3'] diff --git a/python/mozbuild/mozbuild/test/frontend/test_emitter.py b/python/mozbuild/mozbuild/test/frontend/test_emitter.py index 5848d502202..dc07c22265a 100644 --- a/python/mozbuild/mozbuild/test/frontend/test_emitter.py +++ b/python/mozbuild/mozbuild/test/frontend/test_emitter.py @@ -13,6 +13,7 @@ from mozbuild.frontend.data import ( ConfigFileSubstitution, DirectoryTraversal, ReaderSummary, + VariablePassthru, ) from mozbuild.frontend.emitter import TreeMetadataEmitter from mozbuild.frontend.reader import BuildReader @@ -111,6 +112,25 @@ class TestEmitterBasic(unittest.TestCase): self.assertEqual(os.path.normpath(objs[2].output_path), os.path.normpath(os.path.join(topobjdir, 'bar'))) + def test_variable_passthru(self): + reader = self.reader('variable-passthru') + objs = self.read_topsrcdir(reader) + + self.assertEqual(len(objs), 2) + self.assertIsInstance(objs[0], DirectoryTraversal) + self.assertIsInstance(objs[1], VariablePassthru) + + variables = objs[1].variables + self.assertEqual(len(variables), 3) + self.assertIn('XPIDLSRCS', variables) + self.assertEqual(variables['XPIDLSRCS'], + ['foo.idl', 'bar.idl', 'biz.idl']) + self.assertIn('XPIDL_MODULE', variables) + self.assertEqual(variables['XPIDL_MODULE'], 'module_name') + self.assertIn('XPIDL_FLAGS', variables) + self.assertEqual(variables['XPIDL_FLAGS'], + ['-Idir1', '-Idir2', '-Idir3']) + if __name__ == '__main__': main() diff --git a/rdf/base/idl/Makefile.in b/rdf/base/idl/Makefile.in index 7cd34caae63..9ef72f9b7cb 100644 --- a/rdf/base/idl/Makefile.in +++ b/rdf/base/idl/Makefile.in @@ -13,30 +13,5 @@ include $(DEPTH)/config/autoconf.mk MODULE = rdf GRE_MODULE = 1 -XPIDLSRCS = \ - rdfIDataSource.idl \ - rdfITripleVisitor.idl \ - rdfISerializer.idl \ - nsIRDFCompositeDataSource.idl \ - nsIRDFContainer.idl \ - nsIRDFContainerUtils.idl \ - nsIRDFDelegateFactory.idl \ - nsIRDFDataSource.idl \ - nsIRDFLiteral.idl \ - nsIRDFNode.idl \ - nsIRDFObserver.idl \ - nsIRDFInMemoryDataSource.idl \ - nsIRDFPropagatableDataSource.idl \ - nsIRDFPurgeableDataSource.idl \ - nsIRDFRemoteDataSource.idl \ - nsIRDFResource.idl \ - nsIRDFService.idl \ - nsIRDFXMLParser.idl \ - nsIRDFXMLSerializer.idl \ - nsIRDFXMLSink.idl \ - nsIRDFXMLSource.idl \ - nsIRDFInferDataSource.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/rdf/base/idl/moz.build b/rdf/base/idl/moz.build index 58ce5e27339..32d94ddb3a8 100644 --- a/rdf/base/idl/moz.build +++ b/rdf/base/idl/moz.build @@ -3,3 +3,28 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIRDFCompositeDataSource.idl', + 'nsIRDFContainer.idl', + 'nsIRDFContainerUtils.idl', + 'nsIRDFDataSource.idl', + 'nsIRDFDelegateFactory.idl', + 'nsIRDFInMemoryDataSource.idl', + 'nsIRDFInferDataSource.idl', + 'nsIRDFLiteral.idl', + 'nsIRDFNode.idl', + 'nsIRDFObserver.idl', + 'nsIRDFPropagatableDataSource.idl', + 'nsIRDFPurgeableDataSource.idl', + 'nsIRDFRemoteDataSource.idl', + 'nsIRDFResource.idl', + 'nsIRDFService.idl', + 'nsIRDFXMLParser.idl', + 'nsIRDFXMLSerializer.idl', + 'nsIRDFXMLSink.idl', + 'nsIRDFXMLSource.idl', + 'rdfIDataSource.idl', + 'rdfISerializer.idl', + 'rdfITripleVisitor.idl', +] + diff --git a/security/manager/boot/public/Makefile.in b/security/manager/boot/public/Makefile.in index 8b38d5e7cec..f16c1477497 100644 --- a/security/manager/boot/public/Makefile.in +++ b/security/manager/boot/public/Makefile.in @@ -12,14 +12,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = pipboot GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsISecurityWarningDialogs.idl \ - $(NULL) - -XPIDLSRCS = \ - nsISSLStatusProvider.idl \ - nsIBufEntropyCollector.idl \ - nsISecurityUITelemetry.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/security/manager/boot/public/moz.build b/security/manager/boot/public/moz.build index 58ce5e27339..b93aff3be06 100644 --- a/security/manager/boot/public/moz.build +++ b/security/manager/boot/public/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIBufEntropyCollector.idl', + 'nsISSLStatusProvider.idl', + 'nsISecurityUITelemetry.idl', + 'nsISecurityWarningDialogs.idl', +] + diff --git a/security/manager/pki/public/Makefile.in b/security/manager/pki/public/Makefile.in index 8aa68dadd7d..31be31ebe44 100644 --- a/security/manager/pki/public/Makefile.in +++ b/security/manager/pki/public/Makefile.in @@ -13,9 +13,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = pippki GRE_MODULE = 1 -XPIDLSRCS = \ - nsIPKIParamBlock.idl \ - nsIASN1Tree.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/security/manager/pki/public/moz.build b/security/manager/pki/public/moz.build index 58ce5e27339..e4ffb48e789 100644 --- a/security/manager/pki/public/moz.build +++ b/security/manager/pki/public/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIASN1Tree.idl', + 'nsIPKIParamBlock.idl', +] + diff --git a/security/manager/ssl/public/Makefile.in b/security/manager/ssl/public/Makefile.in index e05b06badcd..64ffc64c0b0 100644 --- a/security/manager/ssl/public/Makefile.in +++ b/security/manager/ssl/public/Makefile.in @@ -13,65 +13,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = pipnss GRE_MODULE = 1 -SDK_XPIDLSRCS = \ - nsIASN1Object.idl \ - nsIASN1Sequence.idl \ - nsICertificateDialogs.idl \ - nsICRLInfo.idl \ - nsIX509Cert.idl \ - nsIX509CertDB.idl \ - nsIX509CertValidity.idl \ - nsINSSVersion.idl \ - $(NULL) - -XPIDLSRCS = \ - nsISSLCertErrorDialog.idl \ - nsIBadCertListener2.idl \ - nsISSLErrorListener.idl \ - nsIIdentityInfo.idl \ - nsIAssociatedContentSecurity.idl \ - nsICertOverrideService.idl \ - nsIRecentBadCertsService.idl \ - nsIFormSigningDialog.idl \ - nsIX509Cert2.idl \ - nsIX509Cert3.idl \ - nsIX509CertDB2.idl \ - nsIX509CertList.idl \ - nsIPKCS11.idl \ - nsIPKCS11Slot.idl \ - nsIPK11TokenDB.idl \ - nsICertPickDialogs.idl \ - nsIClientAuthDialogs.idl \ - nsIDOMCryptoDialogs.idl \ - nsIGenKeypairInfoDlg.idl \ - nsITokenDialogs.idl \ - nsITokenPasswordDialogs.idl \ - nsISSLStatus.idl \ - nsIKeygenThread.idl \ - nsICMSSecureMessage.idl \ - nsIUserCertPicker.idl \ - nsIASN1PrintableItem.idl \ - nsICMSDecoder.idl \ - nsICMSEncoder.idl \ - nsICMSMessageErrors.idl \ - nsICMSMessage.idl \ - nsICMSMessage2.idl \ - nsINSSCertCache.idl \ - nsIPK11Token.idl \ - nsIPKCS11ModuleDB.idl \ - nsIPKCS11Module.idl \ - nsICRLManager.idl \ - nsISMimeCert.idl \ - nsIStreamCipher.idl \ - nsIKeyModule.idl \ - nsIProtectedAuthThread.idl \ - nsIDataSignatureVerifier.idl \ - nsISignatureVerifier.idl \ - nsICertificatePrincipal.idl \ - $(NULL) - -ifdef MOZ_XUL -XPIDLSRCS += nsICertTree.idl -endif - include $(topsrcdir)/config/rules.mk diff --git a/security/manager/ssl/public/moz.build b/security/manager/ssl/public/moz.build index 58ce5e27339..143114a9dd6 100644 --- a/security/manager/ssl/public/moz.build +++ b/security/manager/ssl/public/moz.build @@ -3,3 +3,62 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIASN1Object.idl', + 'nsIASN1PrintableItem.idl', + 'nsIASN1Sequence.idl', + 'nsIAssociatedContentSecurity.idl', + 'nsIBadCertListener2.idl', + 'nsICMSDecoder.idl', + 'nsICMSEncoder.idl', + 'nsICMSMessage.idl', + 'nsICMSMessage2.idl', + 'nsICMSMessageErrors.idl', + 'nsICMSSecureMessage.idl', + 'nsICRLInfo.idl', + 'nsICRLManager.idl', + 'nsICertOverrideService.idl', + 'nsICertPickDialogs.idl', + 'nsICertificateDialogs.idl', + 'nsICertificatePrincipal.idl', + 'nsIClientAuthDialogs.idl', + 'nsIDOMCryptoDialogs.idl', + 'nsIDataSignatureVerifier.idl', + 'nsIFormSigningDialog.idl', + 'nsIGenKeypairInfoDlg.idl', + 'nsIIdentityInfo.idl', + 'nsIKeyModule.idl', + 'nsIKeygenThread.idl', + 'nsINSSCertCache.idl', + 'nsINSSVersion.idl', + 'nsIPK11Token.idl', + 'nsIPK11TokenDB.idl', + 'nsIPKCS11.idl', + 'nsIPKCS11Module.idl', + 'nsIPKCS11ModuleDB.idl', + 'nsIPKCS11Slot.idl', + 'nsIProtectedAuthThread.idl', + 'nsIRecentBadCertsService.idl', + 'nsISMimeCert.idl', + 'nsISSLCertErrorDialog.idl', + 'nsISSLErrorListener.idl', + 'nsISSLStatus.idl', + 'nsISignatureVerifier.idl', + 'nsIStreamCipher.idl', + 'nsITokenDialogs.idl', + 'nsITokenPasswordDialogs.idl', + 'nsIUserCertPicker.idl', + 'nsIX509Cert.idl', + 'nsIX509Cert2.idl', + 'nsIX509Cert3.idl', + 'nsIX509CertDB.idl', + 'nsIX509CertDB2.idl', + 'nsIX509CertList.idl', + 'nsIX509CertValidity.idl', +] + +if CONFIG['MOZ_XUL']: + XPIDL_SOURCES += [ + 'nsICertTree.idl', + ] + diff --git a/services/crypto/component/Makefile.in b/services/crypto/component/Makefile.in index 23d53707fd3..8de3eb4d498 100644 --- a/services/crypto/component/Makefile.in +++ b/services/crypto/component/Makefile.in @@ -12,12 +12,6 @@ include $(DEPTH)/config/autoconf.mk FAIL_ON_WARNINGS := 1 MODULE := services-crypto -XPIDL_MODULE := services-crypto-component - -XPIDLSRCS := \ - nsISyncJPAKE.idl \ - $(NULL) - LIBRARY_NAME := services-crypto EXPORT_LIBRARY := 1 IS_COMPONENT := 1 diff --git a/services/crypto/component/moz.build b/services/crypto/component/moz.build index d0193307adb..194d3df91e9 100644 --- a/services/crypto/component/moz.build +++ b/services/crypto/component/moz.build @@ -4,3 +4,10 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsISyncJPAKE.idl', +] + +XPIDL_MODULE = 'services-crypto-component' + diff --git a/startupcache/Makefile.in b/startupcache/Makefile.in index fb7e15ef57d..2dfe774bed7 100644 --- a/startupcache/Makefile.in +++ b/startupcache/Makefile.in @@ -29,7 +29,4 @@ EXPORTS_mozilla/scache = StartupCache.h \ StartupCacheUtils.h \ $(NULL) -XPIDLSRCS = nsIStartupCache.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/startupcache/moz.build b/startupcache/moz.build index 75980e46ba9..6449a870404 100644 --- a/startupcache/moz.build +++ b/startupcache/moz.build @@ -4,3 +4,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_TOOL_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIStartupCache.idl', +] + diff --git a/storage/public/Makefile.in b/storage/public/Makefile.in index 8e2ba1cc7df..66311692008 100644 --- a/storage/public/Makefile.in +++ b/storage/public/Makefile.in @@ -15,30 +15,6 @@ GRE_MODULE = 1 # NOTE When adding something to this list, you probably need to add it to the # storage.h file too. -XPIDLSRCS = \ - mozIStorageService.idl \ - mozIStorageConnection.idl \ - mozIStorageAggregateFunction.idl \ - mozIStorageFunction.idl \ - mozIStorageProgressHandler.idl \ - mozIStorageStatement.idl \ - mozIStorageValueArray.idl \ - mozIStorageResultSet.idl \ - mozIStorageRow.idl \ - mozIStorageError.idl \ - mozIStorageStatementParams.idl \ - mozIStorageStatementRow.idl \ - mozIStorageStatementCallback.idl \ - mozIStoragePendingStatement.idl \ - mozIStorageBindingParamsArray.idl \ - mozIStorageBindingParams.idl \ - mozIStorageCompletionCallback.idl \ - mozIStorageBaseStatement.idl \ - mozIStorageAsyncStatement.idl \ - mozIStorageVacuumParticipant.idl \ - $(NULL) -# SEE ABOVE NOTE! - EXPORTS_NAMESPACES = mozilla mozilla/storage EXPORTS = \ diff --git a/storage/public/moz.build b/storage/public/moz.build index 58ce5e27339..811087d944a 100644 --- a/storage/public/moz.build +++ b/storage/public/moz.build @@ -3,3 +3,26 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'mozIStorageAggregateFunction.idl', + 'mozIStorageAsyncStatement.idl', + 'mozIStorageBaseStatement.idl', + 'mozIStorageBindingParams.idl', + 'mozIStorageBindingParamsArray.idl', + 'mozIStorageCompletionCallback.idl', + 'mozIStorageConnection.idl', + 'mozIStorageError.idl', + 'mozIStorageFunction.idl', + 'mozIStoragePendingStatement.idl', + 'mozIStorageProgressHandler.idl', + 'mozIStorageResultSet.idl', + 'mozIStorageRow.idl', + 'mozIStorageService.idl', + 'mozIStorageStatement.idl', + 'mozIStorageStatementCallback.idl', + 'mozIStorageStatementParams.idl', + 'mozIStorageStatementRow.idl', + 'mozIStorageVacuumParticipant.idl', + 'mozIStorageValueArray.idl', +] + diff --git a/toolkit/components/alerts/Makefile.in b/toolkit/components/alerts/Makefile.in index 642f94c339a..ac8610bc1f4 100644 --- a/toolkit/components/alerts/Makefile.in +++ b/toolkit/components/alerts/Makefile.in @@ -10,8 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = alerts -XPIDLSRCS = nsIAlertsService.idl - LIBRARY_NAME = alerts_s FORCE_STATIC_LIB = 1 LIBXUL_LIBRARY = 1 @@ -20,10 +18,6 @@ CPPSRCS = \ $(NULL) LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/components/build/ -ifneq (,$(filter cocoa, $(MOZ_WIDGET_TOOLKIT))) -XPIDLSRCS += nsINotificationsList.idl -endif - include $(topsrcdir)/config/config.mk include $(topsrcdir)/ipc/chromium/chromium-config.mk diff --git a/toolkit/components/alerts/moz.build b/toolkit/components/alerts/moz.build index 2f7fadfd472..60a64937a45 100644 --- a/toolkit/components/alerts/moz.build +++ b/toolkit/components/alerts/moz.build @@ -8,3 +8,13 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': TOOL_DIRS += ['mac/growl', 'mac'] TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIAlertsService.idl', +] + +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': + XPIDL_SOURCES += [ + 'nsINotificationsList.idl' + ] + diff --git a/toolkit/components/autocomplete/Makefile.in b/toolkit/components/autocomplete/Makefile.in index 6e999647c0a..d53663c3352 100644 --- a/toolkit/components/autocomplete/Makefile.in +++ b/toolkit/components/autocomplete/Makefile.in @@ -18,15 +18,6 @@ EXPORT_LIBRARY = 1 LIBXUL_LIBRARY = 1 FAIL_ON_WARNINGS = 1 -XPIDLSRCS = \ - nsIAutoCompleteController.idl \ - nsIAutoCompleteInput.idl \ - nsIAutoCompletePopup.idl \ - nsIAutoCompleteResult.idl \ - nsIAutoCompleteSearch.idl \ - nsIAutoCompleteSimpleResult.idl \ - $(NULL) - CPPSRCS = \ nsAutoCompleteController.cpp \ nsAutoCompleteSimpleResult.cpp \ diff --git a/toolkit/components/autocomplete/moz.build b/toolkit/components/autocomplete/moz.build index d0193307adb..ceca4fef005 100644 --- a/toolkit/components/autocomplete/moz.build +++ b/toolkit/components/autocomplete/moz.build @@ -4,3 +4,13 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsIAutoCompleteController.idl', + 'nsIAutoCompleteInput.idl', + 'nsIAutoCompletePopup.idl', + 'nsIAutoCompleteResult.idl', + 'nsIAutoCompleteSearch.idl', + 'nsIAutoCompleteSimpleResult.idl', +] + diff --git a/toolkit/components/captivedetect/Makefile.in b/toolkit/components/captivedetect/Makefile.in index 9576f498388..e040c2f2209 100644 --- a/toolkit/components/captivedetect/Makefile.in +++ b/toolkit/components/captivedetect/Makefile.in @@ -11,10 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = captivedetect -XPIDLSRCS = \ - nsICaptivePortalDetector.idl \ - $(NULL) - EXTRA_COMPONENTS = \ CaptivePortalDetectComponents.manifest \ captivedetect.js \ diff --git a/toolkit/components/captivedetect/moz.build b/toolkit/components/captivedetect/moz.build index fb0e881f427..e83a180a13a 100644 --- a/toolkit/components/captivedetect/moz.build +++ b/toolkit/components/captivedetect/moz.build @@ -5,3 +5,7 @@ TEST_DIRS += ['test'] +XPIDL_SOURCES += [ + 'nsICaptivePortalDetector.idl', +] + diff --git a/toolkit/components/commandlines/Makefile.in b/toolkit/components/commandlines/Makefile.in index 39d8c386769..ebaf3a7b33b 100644 --- a/toolkit/components/commandlines/Makefile.in +++ b/toolkit/components/commandlines/Makefile.in @@ -10,7 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = toolkitcomps -XPIDL_MODULE = commandlines LIBRARY_NAME = commandlines SHORT_LIBNAME = cmdlines EXPORT_LIBRARY = 1 @@ -18,13 +17,6 @@ IS_COMPONENT = 1 MODULE_NAME = CommandLineModule LIBXUL_LIBRARY = 1 -XPIDLSRCS = \ - nsICommandLine.idl \ - nsICommandLineHandler.idl \ - nsICommandLineRunner.idl \ - nsICommandLineValidator.idl \ - $(NULL) - CPPSRCS = \ nsCommandLine.cpp \ $(NULL) diff --git a/toolkit/components/commandlines/moz.build b/toolkit/components/commandlines/moz.build index 493f80dc6ef..2fde8817e1f 100644 --- a/toolkit/components/commandlines/moz.build +++ b/toolkit/components/commandlines/moz.build @@ -4,3 +4,13 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsICommandLine.idl', + 'nsICommandLineHandler.idl', + 'nsICommandLineRunner.idl', + 'nsICommandLineValidator.idl', +] + +XPIDL_MODULE = 'commandlines' + diff --git a/toolkit/components/downloads/Makefile.in b/toolkit/components/downloads/Makefile.in index 37f05ff01dc..d41ec402ab9 100644 --- a/toolkit/components/downloads/Makefile.in +++ b/toolkit/components/downloads/Makefile.in @@ -15,13 +15,6 @@ LIBRARY_NAME = download_s FORCE_STATIC_LIB = 1 LIBXUL_LIBRARY = 1 -XPIDLSRCS = \ - nsIDownload.idl \ - nsIDownloadManager.idl \ - nsIDownloadManagerUI.idl \ - nsIDownloadProgressListener.idl \ - $(NULL) - CPPSRCS = \ nsDownloadManager.cpp \ SQLFunctions.cpp \ diff --git a/toolkit/components/downloads/moz.build b/toolkit/components/downloads/moz.build index 493f80dc6ef..3f3f19d3d88 100644 --- a/toolkit/components/downloads/moz.build +++ b/toolkit/components/downloads/moz.build @@ -4,3 +4,11 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIDownload.idl', + 'nsIDownloadManager.idl', + 'nsIDownloadManagerUI.idl', + 'nsIDownloadProgressListener.idl', +] + diff --git a/toolkit/components/exthelper/Makefile.in b/toolkit/components/exthelper/Makefile.in index 102f5f7264c..9b4c6ac1ab5 100644 --- a/toolkit/components/exthelper/Makefile.in +++ b/toolkit/components/exthelper/Makefile.in @@ -11,6 +11,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = exthelper -XPIDLSRCS = extIApplication.idl - include $(topsrcdir)/config/rules.mk diff --git a/toolkit/components/exthelper/moz.build b/toolkit/components/exthelper/moz.build index 58ce5e27339..a1f98e0f250 100644 --- a/toolkit/components/exthelper/moz.build +++ b/toolkit/components/exthelper/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'extIApplication.idl', +] + diff --git a/toolkit/components/feeds/Makefile.in b/toolkit/components/feeds/Makefile.in index 329d41a6f11..a319a4ac4b0 100644 --- a/toolkit/components/feeds/Makefile.in +++ b/toolkit/components/feeds/Makefile.in @@ -16,19 +16,6 @@ MOZILLA_INTERNAL_API = 1 FORCE_STATIC_LIB = 1 LIBXUL_LIBRARY = 1 -XPIDLSRCS = \ - nsIFeed.idl \ - nsIFeedContainer.idl \ - nsIFeedElementBase.idl \ - nsIFeedEntry.idl \ - nsIFeedGenerator.idl \ - nsIFeedListener.idl \ - nsIFeedPerson.idl \ - nsIFeedProcessor.idl \ - nsIFeedResult.idl \ - nsIFeedTextConstruct.idl \ - $(NULL) - EXTRA_COMPONENTS = FeedProcessor.js FeedProcessor.manifest include $(topsrcdir)/config/rules.mk diff --git a/toolkit/components/feeds/moz.build b/toolkit/components/feeds/moz.build index 493f80dc6ef..4a78a6d5c9d 100644 --- a/toolkit/components/feeds/moz.build +++ b/toolkit/components/feeds/moz.build @@ -4,3 +4,17 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIFeed.idl', + 'nsIFeedContainer.idl', + 'nsIFeedElementBase.idl', + 'nsIFeedEntry.idl', + 'nsIFeedGenerator.idl', + 'nsIFeedListener.idl', + 'nsIFeedPerson.idl', + 'nsIFeedProcessor.idl', + 'nsIFeedResult.idl', + 'nsIFeedTextConstruct.idl', +] + diff --git a/toolkit/components/filepicker/Makefile.in b/toolkit/components/filepicker/Makefile.in index 2b36461f696..c1c7cf78e46 100644 --- a/toolkit/components/filepicker/Makefile.in +++ b/toolkit/components/filepicker/Makefile.in @@ -20,9 +20,6 @@ EXPORT_LIBRARY = 1 IS_COMPONENT = 1 MODULE_NAME = nsFileViewModule LIBXUL_LIBRARY = 1 -XPIDLSRCS = \ - nsIFileView.idl \ - $(NULL) CPPSRCS = \ nsFileView.cpp \ $(NULL) diff --git a/toolkit/components/filepicker/moz.build b/toolkit/components/filepicker/moz.build index 58ce5e27339..28d9ecb3d1c 100644 --- a/toolkit/components/filepicker/moz.build +++ b/toolkit/components/filepicker/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +if CONFIG['MOZ_XUL'] and \ + CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('android', 'qt', 'os2', 'cocoa', 'windows'): + + XPIDL_SOURCES += [ + 'nsIFileView.idl', + ] + diff --git a/toolkit/components/find/Makefile.in b/toolkit/components/find/Makefile.in index 0143af466b1..feb5bbdca7a 100644 --- a/toolkit/components/find/Makefile.in +++ b/toolkit/components/find/Makefile.in @@ -15,10 +15,6 @@ LIBRARY_NAME = mozfind_s FORCE_STATIC_LIB = 1 LIBXUL_LIBRARY = 1 -XPIDLSRCS = \ - nsIFindService.idl \ - $(NULL) - CPPSRCS = \ nsFindService.cpp \ $(NULL) diff --git a/toolkit/components/find/moz.build b/toolkit/components/find/moz.build index 58ce5e27339..66bc32525fa 100644 --- a/toolkit/components/find/moz.build +++ b/toolkit/components/find/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIFindService.idl', +] + diff --git a/toolkit/components/parentalcontrols/Makefile.in b/toolkit/components/parentalcontrols/Makefile.in index eb8d07f7b5f..0cc0597f5aa 100644 --- a/toolkit/components/parentalcontrols/Makefile.in +++ b/toolkit/components/parentalcontrols/Makefile.in @@ -12,10 +12,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = parentalcontrols -XPIDLSRCS = \ - nsIParentalControlsService.idl \ - $(NULL) - ifndef MOZ_DISABLE_PARENTAL_CONTROLS ifeq (WINNT,$(OS_ARCH)) LIBRARY_NAME = parentalcontrols_s diff --git a/toolkit/components/parentalcontrols/moz.build b/toolkit/components/parentalcontrols/moz.build index 58ce5e27339..087a0984008 100644 --- a/toolkit/components/parentalcontrols/moz.build +++ b/toolkit/components/parentalcontrols/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIParentalControlsService.idl', +] + diff --git a/toolkit/components/passwordmgr/Makefile.in b/toolkit/components/passwordmgr/Makefile.in index 290a3c099d6..33a15e37a06 100644 --- a/toolkit/components/passwordmgr/Makefile.in +++ b/toolkit/components/passwordmgr/Makefile.in @@ -11,16 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = loginmgr -XPIDLSRCS = \ - nsILoginInfo.idl \ - nsILoginManager.idl \ - nsILoginManagerCrypto.idl \ - nsILoginManagerIEMigrationHelper.idl \ - nsILoginManagerPrompter.idl \ - nsILoginManagerStorage.idl \ - nsILoginMetaInfo.idl \ - $(NULL) - EXTRA_COMPONENTS = \ crypto-SDR.js \ nsLoginInfo.js \ diff --git a/toolkit/components/passwordmgr/moz.build b/toolkit/components/passwordmgr/moz.build index 493f80dc6ef..476fe612062 100644 --- a/toolkit/components/passwordmgr/moz.build +++ b/toolkit/components/passwordmgr/moz.build @@ -4,3 +4,14 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsILoginInfo.idl', + 'nsILoginManager.idl', + 'nsILoginManagerCrypto.idl', + 'nsILoginManagerIEMigrationHelper.idl', + 'nsILoginManagerPrompter.idl', + 'nsILoginManagerStorage.idl', + 'nsILoginMetaInfo.idl', +] + diff --git a/toolkit/components/places/Makefile.in b/toolkit/components/places/Makefile.in index 8ca8be832a4..d67993293ba 100644 --- a/toolkit/components/places/Makefile.in +++ b/toolkit/components/places/Makefile.in @@ -11,10 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = places -XPIDLSRCS = \ - nsINavHistoryService.idl \ - $(NULL) - ifdef MOZ_PLACES LIBRARY_NAME = places LIBXUL_LIBRARY = 1 @@ -22,21 +18,6 @@ EXPORT_LIBRARY = 1 MODULE_NAME = nsPlacesModule IS_COMPONENT = 1 -XPIDLSRCS += \ - mozIAsyncHistory.idl \ - mozIAsyncFavicons.idl \ - mozIAsyncLivemarks.idl \ - mozIPlacesAutoComplete.idl \ - mozIColorAnalyzer.idl \ - nsIAnnotationService.idl \ - nsIBrowserHistory.idl \ - nsIFaviconService.idl \ - nsINavBookmarksService.idl \ - nsITaggingService.idl \ - nsPIPlacesDatabase.idl \ - nsPIPlacesHistoryListenersNotifier.idl \ - $(NULL) - EXPORTS_NAMESPACES = mozilla/places EXPORTS_mozilla/places = \ diff --git a/toolkit/components/places/moz.build b/toolkit/components/places/moz.build index f2ab7b7b136..f9c9c78cbf9 100644 --- a/toolkit/components/places/moz.build +++ b/toolkit/components/places/moz.build @@ -5,3 +5,24 @@ if CONFIG['MOZ_PLACES']: TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsINavHistoryService.idl', +] + +if CONFIG['MOZ_PLACES']: + XPIDL_SOURCES += [ + 'mozIAsyncHistory.idl', + 'mozIAsyncFavicons.idl', + 'mozIAsyncLivemarks.idl', + 'mozIPlacesAutoComplete.idl', + 'mozIColorAnalyzer.idl', + 'nsIAnnotationService.idl', + 'nsIBrowserHistory.idl', + 'nsIFaviconService.idl', + 'nsINavBookmarksService.idl', + 'nsITaggingService.idl ', + 'nsPIPlacesDatabase.idl', + 'nsPIPlacesHistoryListenersNotifier.idl', + ] + diff --git a/toolkit/components/remote/Makefile.in b/toolkit/components/remote/Makefile.in index 82dbe670dc3..4cee916f045 100644 --- a/toolkit/components/remote/Makefile.in +++ b/toolkit/components/remote/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = toolkitcomps -XPIDL_MODULE = toolkitremote LIBRARY_NAME = remoteservice EXPORT_LIBRARY = 1 IS_COMPONENT = 1 @@ -20,8 +19,6 @@ MODULE_NAME = RemoteServiceModule LIBXUL_LIBRARY = 1 -XPIDLSRCS = nsIRemoteService.idl - CPPSRCS += nsXRemoteService.cpp ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT))) CPPSRCS += nsGTKRemoteService.cpp diff --git a/toolkit/components/remote/moz.build b/toolkit/components/remote/moz.build index 58ce5e27339..52a1c099f33 100644 --- a/toolkit/components/remote/moz.build +++ b/toolkit/components/remote/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIRemoteService.idl', +] + +XPIDL_MODULE = 'toolkitremote' + diff --git a/toolkit/components/satchel/Makefile.in b/toolkit/components/satchel/Makefile.in index 850162c6cc3..a33c476f198 100644 --- a/toolkit/components/satchel/Makefile.in +++ b/toolkit/components/satchel/Makefile.in @@ -16,13 +16,6 @@ IS_COMPONENT = 1 LIBXUL_LIBRARY = 1 EXPORT_LIBRARY = 1 -XPIDLSRCS = \ - nsIFormAutoComplete.idl \ - nsIFormFillController.idl \ - nsIFormHistory.idl \ - nsIInputListAutoComplete.idl \ - $(NULL) - LOCAL_INCLUDES = \ -I$(srcdir)/../build \ $(NULL) diff --git a/toolkit/components/satchel/moz.build b/toolkit/components/satchel/moz.build index 493f80dc6ef..ab2016b5663 100644 --- a/toolkit/components/satchel/moz.build +++ b/toolkit/components/satchel/moz.build @@ -4,3 +4,11 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIFormAutoComplete.idl', + 'nsIFormFillController.idl', + 'nsIFormHistory.idl', + 'nsIInputListAutoComplete.idl', +] + diff --git a/toolkit/components/startup/public/Makefile.in b/toolkit/components/startup/public/Makefile.in index 0bfe751ea49..6f758c41c1e 100644 --- a/toolkit/components/startup/public/Makefile.in +++ b/toolkit/components/startup/public/Makefile.in @@ -12,11 +12,4 @@ include $(DEPTH)/config/autoconf.mk # note: everything depends on appcomps, so to avoid confusion these IDL files are # exported there, not toolkitcomps, which would be more logical MODULE = appcomps -XPIDL_MODULE = appstartup - -XPIDLSRCS = \ - nsIAppStartup.idl \ - nsIUserInfo.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/toolkit/components/startup/public/moz.build b/toolkit/components/startup/public/moz.build index 58ce5e27339..eff42e3ba11 100644 --- a/toolkit/components/startup/public/moz.build +++ b/toolkit/components/startup/public/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIAppStartup.idl', + 'nsIUserInfo.idl', +] + +XPIDL_MODULE = 'appstartup' + diff --git a/toolkit/components/telemetry/Makefile.in b/toolkit/components/telemetry/Makefile.in index 6d480aca0ad..0c6ca179dcd 100644 --- a/toolkit/components/telemetry/Makefile.in +++ b/toolkit/components/telemetry/Makefile.in @@ -30,11 +30,6 @@ EXPORTS_mozilla = \ TelemetryHistogramEnums.h \ $(NULL) -XPIDLSRCS = \ - nsITelemetry.idl \ - nsITelemetryPing.idl \ - $(NULL) - EXTRA_PP_COMPONENTS = \ TelemetryPing.js \ $(NULL) diff --git a/toolkit/components/telemetry/moz.build b/toolkit/components/telemetry/moz.build index d0193307adb..90c11876fe7 100644 --- a/toolkit/components/telemetry/moz.build +++ b/toolkit/components/telemetry/moz.build @@ -4,3 +4,9 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsITelemetry.idl', + 'nsITelemetryPing.idl', +] + diff --git a/toolkit/components/typeaheadfind/Makefile.in b/toolkit/components/typeaheadfind/Makefile.in index 7c881c17468..c1c3814f731 100644 --- a/toolkit/components/typeaheadfind/Makefile.in +++ b/toolkit/components/typeaheadfind/Makefile.in @@ -15,10 +15,6 @@ GRE_MODULE = 1 FORCE_STATIC_LIB = 1 LIBXUL_LIBRARY = 1 -XPIDLSRCS = \ - nsITypeAheadFind.idl \ - $(NULL) - CPPSRCS = \ nsTypeAheadFind.cpp \ $(NULL) diff --git a/toolkit/components/typeaheadfind/moz.build b/toolkit/components/typeaheadfind/moz.build index 58ce5e27339..0bcb78e6fbc 100644 --- a/toolkit/components/typeaheadfind/moz.build +++ b/toolkit/components/typeaheadfind/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsITypeAheadFind.idl', +] + diff --git a/toolkit/components/url-classifier/Makefile.in b/toolkit/components/url-classifier/Makefile.in index 644e63cf3a7..97abb690b33 100644 --- a/toolkit/components/url-classifier/Makefile.in +++ b/toolkit/components/url-classifier/Makefile.in @@ -16,15 +16,6 @@ LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 FAIL_ON_WARNINGS = 1 -XPIDLSRCS = \ - nsIUrlClassifierDBService.idl \ - nsIUrlClassifierHashCompleter.idl \ - nsIUrlClassifierStreamUpdater.idl \ - nsIUrlClassifierPrefixSet.idl \ - nsIUrlClassifierUtils.idl \ - nsIUrlListManager.idl \ - $(NULL) - CPPSRCS = \ ChunkSet.cpp \ Classifier.cpp \ diff --git a/toolkit/components/url-classifier/moz.build b/toolkit/components/url-classifier/moz.build index 5243706d0ac..9f63b020e44 100644 --- a/toolkit/components/url-classifier/moz.build +++ b/toolkit/components/url-classifier/moz.build @@ -4,3 +4,13 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_TOOL_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsIUrlClassifierDBService.idl', + 'nsIUrlClassifierHashCompleter.idl', + 'nsIUrlClassifierPrefixSet.idl', + 'nsIUrlClassifierStreamUpdater.idl', + 'nsIUrlClassifierUtils.idl', + 'nsIUrlListManager.idl', +] + diff --git a/toolkit/components/urlformatter/Makefile.in b/toolkit/components/urlformatter/Makefile.in index 607ade21067..b9e7a71b12d 100644 --- a/toolkit/components/urlformatter/Makefile.in +++ b/toolkit/components/urlformatter/Makefile.in @@ -12,10 +12,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = urlformatter -XPIDLSRCS = \ - nsIURLFormatter.idl \ - $(NULL) - EXTRA_COMPONENTS = \ nsURLFormatter.manifest \ nsURLFormatter.js \ diff --git a/toolkit/components/urlformatter/moz.build b/toolkit/components/urlformatter/moz.build index d0193307adb..cab324a0c77 100644 --- a/toolkit/components/urlformatter/moz.build +++ b/toolkit/components/urlformatter/moz.build @@ -4,3 +4,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsIURLFormatter.idl', +] + diff --git a/toolkit/devtools/debugger/Makefile.in b/toolkit/devtools/debugger/Makefile.in index e017e8def62..2adefab57f0 100644 --- a/toolkit/devtools/debugger/Makefile.in +++ b/toolkit/devtools/debugger/Makefile.in @@ -27,10 +27,6 @@ EXTRA_DSO_LDOPTS += \ $(MOZ_JS_LIBS) \ $(NULL) -XPIDLSRCS = \ - nsIJSInspector.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk libs:: diff --git a/toolkit/devtools/debugger/moz.build b/toolkit/devtools/debugger/moz.build index d0193307adb..5e7fb1513b8 100644 --- a/toolkit/devtools/debugger/moz.build +++ b/toolkit/devtools/debugger/moz.build @@ -4,3 +4,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsIJSInspector.idl', +] + diff --git a/toolkit/identity/Makefile.in b/toolkit/identity/Makefile.in index 46ba7a446bb..2a5b53dc415 100644 --- a/toolkit/identity/Makefile.in +++ b/toolkit/identity/Makefile.in @@ -20,10 +20,6 @@ IS_COMPONENT = 1 GRE_MODULE = 1 EXPORT_LIBRARY = 1 -XPIDLSRCS = \ - nsIIdentityCryptoService.idl \ - $(NULL) - CPPSRCS = \ IdentityCryptoService.cpp \ $(NULL) diff --git a/toolkit/identity/moz.build b/toolkit/identity/moz.build index d0193307adb..2ac0474bb3a 100644 --- a/toolkit/identity/moz.build +++ b/toolkit/identity/moz.build @@ -4,3 +4,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsIIdentityCryptoService.idl', +] + diff --git a/toolkit/mozapps/extensions/Makefile.in b/toolkit/mozapps/extensions/Makefile.in index 526ca30182d..73c8588272c 100644 --- a/toolkit/mozapps/extensions/Makefile.in +++ b/toolkit/mozapps/extensions/Makefile.in @@ -27,12 +27,6 @@ endif MODULE = extensions -XPIDLSRCS = \ - amIInstallTrigger.idl \ - amIWebInstallListener.idl \ - amIWebInstaller.idl \ - $(NULL) - EXTRA_PP_COMPONENTS = \ nsBlocklistService.js \ extensions.manifest \ diff --git a/toolkit/mozapps/extensions/moz.build b/toolkit/mozapps/extensions/moz.build index 493f80dc6ef..fe0b4e74108 100644 --- a/toolkit/mozapps/extensions/moz.build +++ b/toolkit/mozapps/extensions/moz.build @@ -4,3 +4,10 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'amIInstallTrigger.idl', + 'amIWebInstallListener.idl', + 'amIWebInstaller.idl', +] + diff --git a/toolkit/mozapps/update/Makefile.in b/toolkit/mozapps/update/Makefile.in index 21f205938c5..38dfaca12ba 100644 --- a/toolkit/mozapps/update/Makefile.in +++ b/toolkit/mozapps/update/Makefile.in @@ -11,8 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = update -XPIDLSRCS = nsIUpdateTimerManager.idl - EXTRA_COMPONENTS = \ nsUpdateTimerManager.js \ nsUpdateTimerManager.manifest \ @@ -20,8 +18,6 @@ EXTRA_COMPONENTS = \ ifdef MOZ_UPDATER -XPIDLSRCS += nsIUpdateService.idl - EXTRA_PP_COMPONENTS += \ nsUpdateService.js \ $(NULL) diff --git a/toolkit/mozapps/update/moz.build b/toolkit/mozapps/update/moz.build index a74888d6c58..dad7a8df6e6 100644 --- a/toolkit/mozapps/update/moz.build +++ b/toolkit/mozapps/update/moz.build @@ -15,9 +15,18 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android': TEST_DIRS += ['test_timermanager'] +XPIDL_SOURCES += [ + 'nsIUpdateTimerManager.idl', +] + # Update tests require the updater binary if CONFIG['MOZ_UPDATER']: TEST_DIRS += ['test'] if CONFIG['MOZ_MAINTENANCE_SERVICE']: TEST_DIRS += ['test_svc'] + + XPIDL_SOURCES += [ + 'nsIUpdateService.idl', + ] + diff --git a/toolkit/profile/Makefile.in b/toolkit/profile/Makefile.in index 0e741a4b6d6..c698ce82aa0 100644 --- a/toolkit/profile/Makefile.in +++ b/toolkit/profile/Makefile.in @@ -11,17 +11,10 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = xulapp -XPIDL_MODULE = toolkitprofile LIBRARY_NAME = profile_s FORCE_STATIC_LIB = 1 LIBXUL_LIBRARY = 1 -XPIDLSRCS = \ - nsIProfileMigrator.idl \ - nsIToolkitProfile.idl \ - nsIToolkitProfileService.idl \ - $(NULL) - CPPSRCS = \ nsProfileLock.cpp \ nsToolkitProfileService.cpp \ diff --git a/toolkit/profile/moz.build b/toolkit/profile/moz.build index 493f80dc6ef..8f41b4d00d2 100644 --- a/toolkit/profile/moz.build +++ b/toolkit/profile/moz.build @@ -4,3 +4,12 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsIProfileMigrator.idl', + 'nsIToolkitProfile.idl', + 'nsIToolkitProfileService.idl', +] + +XPIDL_MODULE = 'toolkitprofile' + diff --git a/toolkit/xre/Makefile.in b/toolkit/xre/Makefile.in index 2bfcc4e0a8f..0d3a5c0c255 100644 --- a/toolkit/xre/Makefile.in +++ b/toolkit/xre/Makefile.in @@ -23,14 +23,6 @@ LIBXUL_LIBRARY = 1 FORCE_STATIC_LIB = 1 -XPIDLSRCS = \ - nsINativeAppSupport.idl \ - $(NULL) - -ifeq ($(OS_ARCH),WINNT) -XPIDLSRCS += nsIWinAppHelper.idl -endif - CPPSRCS = \ nsAppRunner.cpp \ nsConsoleWriter.cpp \ diff --git a/toolkit/xre/moz.build b/toolkit/xre/moz.build index 493f80dc6ef..77b6d3232eb 100644 --- a/toolkit/xre/moz.build +++ b/toolkit/xre/moz.build @@ -4,3 +4,13 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['test'] + +XPIDL_SOURCES += [ + 'nsINativeAppSupport.idl', +] + +if CONFIG['OS_ARCH'] == 'WINNT': + XPIDL_SOURCES += [ + 'nsIWinAppHelper.idl', + ] + diff --git a/tools/profiler/Makefile.in b/tools/profiler/Makefile.in index 7a69ded148c..878c13c4a11 100644 --- a/tools/profiler/Makefile.in +++ b/tools/profiler/Makefile.in @@ -54,10 +54,6 @@ CPPSRCS = \ JSCustomObjectBuilder.cpp \ $(NULL) -XPIDLSRCS = \ - nsIProfiler.idl \ - $(NULL) - EXTRA_JS_MODULES = \ Profiler.jsm \ $(NULL) diff --git a/tools/profiler/moz.build b/tools/profiler/moz.build index 58ce5e27339..77b20df187d 100644 --- a/tools/profiler/moz.build +++ b/tools/profiler/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +if CONFIG['MOZ_ENABLE_PROFILER_SPS']: + XPIDL_SOURCES += [ + 'nsIProfiler.idl', + ] + diff --git a/uriloader/base/Makefile.in b/uriloader/base/Makefile.in index c9e139e41f8..9fe2ebe1b0e 100644 --- a/uriloader/base/Makefile.in +++ b/uriloader/base/Makefile.in @@ -22,21 +22,6 @@ CPPSRCS = \ nsDocLoader.cpp \ $(NULL) -SDK_XPIDLSRCS = \ - nsIURIContentListener.idl \ - nsIWebProgress.idl \ - nsIWebProgressListener.idl \ - $(NULL) - -XPIDLSRCS = \ - nsIContentHandler.idl \ - nsIURILoader.idl \ - nsCURILoader.idl \ - nsITransfer.idl \ - nsIDocumentLoader.idl \ - nsIWebProgressListener2.idl \ - $(NULL) - EXPORTS = \ nsURILoader.h \ nsDocLoader.h \ diff --git a/uriloader/base/moz.build b/uriloader/base/moz.build index 58ce5e27339..979aba11d74 100644 --- a/uriloader/base/moz.build +++ b/uriloader/base/moz.build @@ -3,3 +3,15 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsCURILoader.idl', + 'nsIContentHandler.idl', + 'nsIDocumentLoader.idl', + 'nsITransfer.idl', + 'nsIURIContentListener.idl', + 'nsIURILoader.idl', + 'nsIWebProgress.idl', + 'nsIWebProgressListener.idl', + 'nsIWebProgressListener2.idl', +] + diff --git a/uriloader/exthandler/Makefile.in b/uriloader/exthandler/Makefile.in index 5557f1bd2a1..37cd0a064a3 100644 --- a/uriloader/exthandler/Makefile.in +++ b/uriloader/exthandler/Makefile.in @@ -97,17 +97,6 @@ EXPORTS += \ nsExternalHelperAppService.h \ $(NULL) -XPIDLSRCS = \ - nsCExternalHandlerService.idl \ - nsIExternalProtocolService.idl \ - nsIExternalHelperAppService.idl \ - nsIHelperAppLauncherDialog.idl \ - nsIContentDispatchChooser.idl \ - nsIHandlerService.idl \ - nsIExternalSharingAppService.idl \ - nsIExternalURLHandlerService.idl \ - $(NULL) - CPPSRCS = \ nsExternalHelperAppService.cpp \ nsExternalProtocolHandler.cpp \ diff --git a/uriloader/exthandler/moz.build b/uriloader/exthandler/moz.build index d0193307adb..30c73c662a4 100644 --- a/uriloader/exthandler/moz.build +++ b/uriloader/exthandler/moz.build @@ -4,3 +4,15 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. TEST_DIRS += ['tests'] + +XPIDL_SOURCES += [ + 'nsCExternalHandlerService.idl', + 'nsIContentDispatchChooser.idl', + 'nsIExternalHelperAppService.idl', + 'nsIExternalProtocolService.idl', + 'nsIExternalSharingAppService.idl', + 'nsIExternalURLHandlerService.idl', + 'nsIHandlerService.idl', + 'nsIHelperAppLauncherDialog.idl', +] + diff --git a/uriloader/prefetch/Makefile.in b/uriloader/prefetch/Makefile.in index c56d699852d..7de32787e7f 100644 --- a/uriloader/prefetch/Makefile.in +++ b/uriloader/prefetch/Makefile.in @@ -31,11 +31,6 @@ CPPSRCS = \ OfflineCacheUpdateParent.cpp \ $(NULL) -XPIDLSRCS = \ - nsIPrefetchService.idl \ - nsIOfflineCacheUpdate.idl \ - $(NULL) - EXPORTS = \ nsCPrefetchService.h \ $(NULL) diff --git a/uriloader/prefetch/moz.build b/uriloader/prefetch/moz.build index 58ce5e27339..bc954fbd5f2 100644 --- a/uriloader/prefetch/moz.build +++ b/uriloader/prefetch/moz.build @@ -3,3 +3,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIOfflineCacheUpdate.idl', + 'nsIPrefetchService.idl', +] + diff --git a/widget/Makefile.in b/widget/Makefile.in index 66bc8457c88..caebb5a6ec6 100644 --- a/widget/Makefile.in +++ b/widget/Makefile.in @@ -68,67 +68,6 @@ EXPORTS += \ $(NULL) endif -XPIDLSRCS = \ - nsIAppShell.idl \ - nsIFilePicker.idl \ - nsISound.idl \ - nsITransferable.idl \ - nsIClipboardDragDropHooks.idl \ - nsIClipboardDragDropHookList.idl \ - nsIDragSession.idl \ - nsIDragService.idl \ - nsIFormatConverter.idl \ - nsIClipboard.idl \ - nsIClipboardHelper.idl \ - nsIClipboardOwner.idl \ - nsIBaseWindow.idl \ - nsIBidiKeyboard.idl \ - nsIScreen.idl \ - nsIScreenManager.idl \ - nsIPrintSession.idl \ - nsIPrintSettings.idl \ - nsIPrintSettingsService.idl \ - nsIPrintOptions.idl \ - nsIIdleService.idl \ - nsIIdleServiceInternal.idl \ - nsIGfxInfo.idl \ - nsIGfxInfoDebug.idl \ - nsIIMEPicker.idl \ - $(NULL) - -ifeq ($(MOZ_WIDGET_TOOLKIT),windows) -XPIDLSRCS += nsIPrintSettingsWin.idl \ - nsIWinTaskbar.idl \ - nsITaskbarPreview.idl \ - nsITaskbarTabPreview.idl \ - nsITaskbarWindowPreview.idl \ - nsITaskbarPreviewController.idl \ - nsITaskbarPreviewButton.idl \ - nsITaskbarProgress.idl \ - nsITaskbarOverlayIconController.idl \ - nsIJumpListBuilder.idl \ - nsIJumpListItem.idl \ - $(NULL) -endif - -ifdef MOZ_METRO -XPIDLSRCS += nsIWinMetroUtils.idl \ - MetroUIUtils.idl \ - $(NULL) -endif - -ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa) -XPIDLSRCS += nsIMacDockSupport.idl \ - nsIStandaloneNativeMenu.idl \ - nsIMacWebAppUtils.idl \ - nsITaskbarProgress.idl \ - $(NULL) -endif - -ifeq ($(MOZ_WIDGET_TOOLKIT),os2) -XPIDLSRCS += nsIRwsService.idl -endif - EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) include $(topsrcdir)/config/rules.mk diff --git a/widget/android/Makefile.in b/widget/android/Makefile.in index 7183ebb6596..cf2673fc15f 100644 --- a/widget/android/Makefile.in +++ b/widget/android/Makefile.in @@ -11,7 +11,6 @@ include $(DEPTH)/config/autoconf.mk MODULE = widget LIBRARY_NAME = widget_android -XPIDL_MODULE = widget_android EXPORT_LIBRARY = 1 IS_COMPONENT = 1 MODULE_NAME = nsWidgetAndroidModule @@ -55,10 +54,6 @@ NOT_THERE_YET_CPPSRCS = \ nsSound.cpp \ $(NULL) -XPIDLSRCS = \ - nsIAndroidBridge.idl \ - $(NULL) - SHARED_LIBRARY_LIBS = ../xpwidgets/libxpwidgets_s.a EXPORTS = AndroidBridge.h AndroidJavaWrappers.h diff --git a/widget/android/moz.build b/widget/android/moz.build index 58ce5e27339..95321fb8d37 100644 --- a/widget/android/moz.build +++ b/widget/android/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIAndroidBridge.idl', +] + +XPIDL_MODULE = 'widget_android' + diff --git a/widget/cocoa/Makefile.in b/widget/cocoa/Makefile.in index 6dbb0e08ed3..ee40f897112 100644 --- a/widget/cocoa/Makefile.in +++ b/widget/cocoa/Makefile.in @@ -15,7 +15,6 @@ LIBRARY_NAME = widget_mac EXPORT_LIBRARY = 1 IS_COMPONENT = 1 MODULE_NAME = nsWidgetMacModule -XPIDL_MODULE = widget_cocoa GRE_MODULE = 1 LIBXUL_LIBRARY = 1 @@ -71,10 +70,6 @@ ifeq (x86_64,$(TARGET_CPU)) CMMSRCS += ComplexTextInputPanel.mm endif -XPIDLSRCS += \ - nsPIWidgetCocoa.idl \ - $(NULL) - SHARED_LIBRARY_LIBS = ../xpwidgets/libxpwidgets_s.a include $(topsrcdir)/config/rules.mk diff --git a/widget/cocoa/moz.build b/widget/cocoa/moz.build index 58ce5e27339..d8e7351b7c0 100644 --- a/widget/cocoa/moz.build +++ b/widget/cocoa/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsPIWidgetCocoa.idl', +] + +XPIDL_MODULE = 'widget_cocoa' + diff --git a/widget/moz.build b/widget/moz.build index ef2be56f3f8..95eceb73cbb 100644 --- a/widget/moz.build +++ b/widget/moz.build @@ -13,6 +13,31 @@ if toolkit in ('os2', 'cocoa', 'qt', 'android', 'gonk'): if toolkit == 'windows': DIRS += ['windows'] + XPIDL_SOURCES += [ + 'nsIJumpListBuilder.idl', + 'nsIJumpListItem.idl', + 'nsIPrintSettingsWin.idl', + 'nsITaskbarPreview.idl', + 'nsITaskbarTabPreview.idl', + 'nsITaskbarWindowPreview.idl', + 'nsITaskbarPreviewController.idl', + 'nsITaskbarPreviewButton.idl', + 'nsITaskbarProgress.idl', + 'nsITaskbarOverlayIconController.idl', + 'nsIWinTaskbar.idl', + ] +elif toolkit == 'cocoa': + XPIDL_SOURCES += [ + 'nsIMacDockSupport.idl', + 'nsIMacWebAppUtils.idl', + 'nsIStandaloneNativeMenu.idl', + 'nsITaskbarProgress.idl', + ] +elif toolkit == 'os2': + XPIDL_SOURCES += [ + 'nsIRwsService.idl', + ] + TEST_TOOL_DIRS += ['tests'] # Don't build the DSO under the 'build' directory as windows does. @@ -26,3 +51,38 @@ if CONFIG['MOZ_ENABLE_GTK2']: if CONFIG['MOZ_X11']: DIRS += ['gtkxtbin'] + +XPIDL_SOURCES += [ + 'nsIAppShell.idl', + 'nsIBaseWindow.idl', + 'nsIBidiKeyboard.idl', + 'nsIClipboard.idl', + 'nsIClipboardDragDropHookList.idl', + 'nsIClipboardDragDropHooks.idl', + 'nsIClipboardHelper.idl', + 'nsIClipboardOwner.idl', + 'nsIDragService.idl', + 'nsIDragSession.idl', + 'nsIFilePicker.idl', + 'nsIFormatConverter.idl', + 'nsIGfxInfo.idl', + 'nsIGfxInfoDebug.idl', + 'nsIIMEPicker.idl', + 'nsIIdleService.idl', + 'nsIIdleServiceInternal.idl', + 'nsIPrintOptions.idl', + 'nsIPrintSession.idl', + 'nsIPrintSettings.idl', + 'nsIPrintSettingsService.idl', + 'nsIScreen.idl', + 'nsIScreenManager.idl', + 'nsISound.idl', + 'nsITransferable.idl', +] + +if CONFIG['MOZ_METRO']: + XPIDL_SOURCES += [ + 'MetroUIUtils.idl', + 'nsIWinMetroUtils.idl', + ] + diff --git a/xpcom/base/Makefile.in b/xpcom/base/Makefile.in index 359ac08b8a6..7cab5cb6c12 100644 --- a/xpcom/base/Makefile.in +++ b/xpcom/base/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = xpcom -XPIDL_MODULE = xpcom_base LIBRARY_NAME = xpcombase_s GRE_MODULE = 1 MOZILLA_INTERNAL_API =1 @@ -99,16 +98,6 @@ endif endif #if OS_ARCH == WINNT -SDK_XPIDLSRCS = \ - nsIDebug.idl \ - nsIInterfaceRequestor.idl \ - nsIMemory.idl \ - nsIProgrammingLanguage.idl \ - nsISupports.idl \ - nsITraceRefcnt.idl \ - nsIWeakReference.idl \ - nsrootidl.idl - SDK_HEADERS = \ nsAutoPtr.h \ nsError.h \ @@ -127,28 +116,6 @@ SDK_HEADERS += \ $(NULL) endif -XPIDLSRCS = \ - nsIConsoleListener.idl \ - nsIConsoleMessage.idl \ - nsIConsoleService.idl \ - nsICycleCollectorListener.idl \ - nsIDebug2.idl \ - nsIErrorService.idl \ - nsIException.idl \ - nsIExceptionService.idl \ - nsIVersionComparator.idl \ - nsIUUIDGenerator.idl \ - nsIMutable.idl \ - nsIMemoryInfoDumper.idl \ - nsIMemoryReporter.idl \ - nsIGZFileWriter.idl \ - nsIMessageLoop.idl \ - $(NULL) - -ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) -XPIDLSRCS += nsIMacUtils.idl -endif - # we don't want the shared lib, but we want to force the creation of a static lib. FORCE_STATIC_LIB = 1 diff --git a/xpcom/base/moz.build b/xpcom/base/moz.build index 58ce5e27339..9a03a4f58d9 100644 --- a/xpcom/base/moz.build +++ b/xpcom/base/moz.build @@ -3,3 +3,36 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIConsoleListener.idl', + 'nsIConsoleMessage.idl', + 'nsIConsoleService.idl', + 'nsICycleCollectorListener.idl', + 'nsIDebug.idl', + 'nsIDebug2.idl', + 'nsIErrorService.idl', + 'nsIException.idl', + 'nsIExceptionService.idl', + 'nsIGZFileWriter.idl', + 'nsIInterfaceRequestor.idl', + 'nsIMemory.idl', + 'nsIMemoryInfoDumper.idl', + 'nsIMemoryReporter.idl', + 'nsIMessageLoop.idl', + 'nsIMutable.idl', + 'nsIProgrammingLanguage.idl', + 'nsISupports.idl', + 'nsITraceRefcnt.idl', + 'nsIUUIDGenerator.idl', + 'nsIVersionComparator.idl', + 'nsIWeakReference.idl', + 'nsrootidl.idl', +] + +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': + XPIDL_SOURCES += [ + 'nsIMacUtils.idl', + ] + +XPIDL_MODULE = 'xpcom_base' + diff --git a/xpcom/components/Makefile.in b/xpcom/components/Makefile.in index 0678242529d..83d32d1e602 100644 --- a/xpcom/components/Makefile.in +++ b/xpcom/components/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = xpcom -XPIDL_MODULE = xpcom_components LIBRARY_NAME = xpcomcomponents_s GRE_MODULE = 1 LIBXUL_LIBRARY = 1 @@ -36,16 +35,6 @@ CPPSRCS = \ nsNativeComponentLoader.cpp \ $(NULL) -SDK_XPIDLSRCS = \ - nsIClassInfo.idl \ - nsIComponentRegistrar.idl \ - nsIFactory.idl \ - nsIModule.idl \ - nsIServiceManager.idl \ - nsIComponentManager.idl \ - nsICategoryManager.idl \ - $(NULL) - LOCAL_INCLUDES = \ -I$(srcdir)/../reflect/xptinfo/src \ -I$(srcdir)/../base \ diff --git a/xpcom/components/moz.build b/xpcom/components/moz.build index 58ce5e27339..233512f482d 100644 --- a/xpcom/components/moz.build +++ b/xpcom/components/moz.build @@ -3,3 +3,15 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsICategoryManager.idl', + 'nsIClassInfo.idl', + 'nsIComponentManager.idl', + 'nsIComponentRegistrar.idl', + 'nsIFactory.idl', + 'nsIModule.idl', + 'nsIServiceManager.idl', +] + +XPIDL_MODULE = 'xpcom_components' + diff --git a/xpcom/ds/Makefile.in b/xpcom/ds/Makefile.in index 995eb7014cf..c6d509a1b36 100644 --- a/xpcom/ds/Makefile.in +++ b/xpcom/ds/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = xpcom -XPIDL_MODULE = xpcom_ds LIBRARY_NAME = xpcomds_s GRE_MODULE = 1 LIBXUL_LIBRARY = 1 @@ -90,39 +89,8 @@ EXPORTS = \ nsCharSeparatedTokenizer.h \ $(NULL) -XPIDLSRCS = \ - nsIAtom.idl \ - nsIAtomService.idl \ - nsICollection.idl \ - nsIEnumerator.idl \ - nsIINIParser.idl \ - nsIPersistentProperties2.idl \ - nsIProperty.idl \ - nsIPropertyBag.idl \ - nsIPropertyBag2.idl \ - nsIWritablePropertyBag.idl \ - nsIWritablePropertyBag2.idl \ - nsIVariant.idl \ - nsISerializable.idl \ - nsIStringEnumerator.idl \ - nsISupportsArray.idl \ - nsISupportsIterators.idl \ - $(NULL) - -SDK_XPIDLSRCS = \ - nsIArray.idl \ - nsIHashable.idl \ - nsIMutableArray.idl \ - nsIObserverService.idl \ - nsIObserver.idl \ - nsIProperties.idl \ - nsISimpleEnumerator.idl \ - nsISupportsPrimitives.idl \ - $(NULL) - ifeq ($(OS_ARCH),WINNT) CPPSRCS += nsWindowsRegKey.cpp -XPIDLSRCS += nsIWindowsRegKey.idl EXPORTS += nsWindowsRegKey.h endif diff --git a/xpcom/ds/moz.build b/xpcom/ds/moz.build index 58ce5e27339..06b81d8a573 100644 --- a/xpcom/ds/moz.build +++ b/xpcom/ds/moz.build @@ -3,3 +3,37 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIArray.idl', + 'nsIAtom.idl', + 'nsIAtomService.idl', + 'nsICollection.idl', + 'nsIEnumerator.idl', + 'nsIHashable.idl', + 'nsIINIParser.idl', + 'nsIMutableArray.idl', + 'nsIObserver.idl', + 'nsIObserverService.idl', + 'nsIPersistentProperties2.idl', + 'nsIProperties.idl', + 'nsIProperty.idl', + 'nsIPropertyBag.idl', + 'nsIPropertyBag2.idl', + 'nsISerializable.idl', + 'nsISimpleEnumerator.idl', + 'nsIStringEnumerator.idl', + 'nsISupportsArray.idl', + 'nsISupportsIterators.idl', + 'nsISupportsPrimitives.idl', + 'nsIVariant.idl', + 'nsIWritablePropertyBag.idl', + 'nsIWritablePropertyBag2.idl', +] + +if CONFIG['OS_ARCH'] == 'WINNT': + XPIDL_SOURCES += [ + 'nsIWindowsRegKey.idl', + ] + +XPIDL_MODULE = 'xpcom_ds' + diff --git a/xpcom/io/Makefile.in b/xpcom/io/Makefile.in index 307afc23b00..51421027917 100644 --- a/xpcom/io/Makefile.in +++ b/xpcom/io/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = xpcom -XPIDL_MODULE = xpcom_io LIBRARY_NAME = xpcomio_s GRE_MODULE = 1 MOZILLA_INTERNAL_API = 1 @@ -99,51 +98,6 @@ EXPORTS_mozilla = \ Base64.h \ $(NULL) -XPIDLSRCS = \ - nsIBinaryInputStream.idl \ - nsIBinaryOutputStream.idl \ - nsIDirectoryEnumerator.idl \ - nsIInputStreamTee.idl \ - nsILocalFileWin.idl \ - nsILineInputStream.idl \ - nsIUnicharLineInputStream.idl \ - nsISimpleUnicharStreamFactory.idl \ - nsIMultiplexInputStream.idl \ - nsIObjectInputStream.idl \ - nsIObjectOutputStream.idl \ - nsIPipe.idl \ - nsISeekableStream.idl \ - nsIStorageStream.idl \ - nsIStringStream.idl \ - nsIStreamBufferAccess.idl \ - nsIAsyncInputStream.idl \ - nsIAsyncOutputStream.idl \ - nsIUnicharInputStream.idl \ - nsIUnicharOutputStream.idl \ - nsIConverterInputStream.idl \ - nsIConverterOutputStream.idl \ - nsIIOUtil.idl \ - nsISafeOutputStream.idl \ - nsIScriptableBase64Encoder.idl \ - $(NULL) - -ifeq ($(MOZ_WIDGET_TOOLKIT),os2) -XPIDLSRCS += nsILocalFileOS2.idl -else -ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa) -XPIDLSRCS += nsILocalFileMac.idl -endif # cocoa -endif # os2 - -SDK_XPIDLSRCS = \ - nsIDirectoryService.idl \ - nsIFile.idl \ - nsILocalFile.idl \ - nsIInputStream.idl \ - nsIOutputStream.idl \ - nsIScriptableInputStream.idl \ - $(NULL) - SDK_HEADERS = \ nsDirectoryServiceDefs.h \ nsDirectoryServiceUtils.h \ diff --git a/xpcom/io/moz.build b/xpcom/io/moz.build index 58ce5e27339..91efc2b9f53 100644 --- a/xpcom/io/moz.build +++ b/xpcom/io/moz.build @@ -3,3 +3,48 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIAsyncInputStream.idl', + 'nsIAsyncOutputStream.idl', + 'nsIBinaryInputStream.idl', + 'nsIBinaryOutputStream.idl', + 'nsIConverterInputStream.idl', + 'nsIConverterOutputStream.idl', + 'nsIDirectoryEnumerator.idl', + 'nsIDirectoryService.idl', + 'nsIFile.idl', + 'nsIIOUtil.idl', + 'nsIInputStream.idl', + 'nsIInputStreamTee.idl', + 'nsILineInputStream.idl', + 'nsILocalFile.idl', + 'nsILocalFileWin.idl', + 'nsIMultiplexInputStream.idl', + 'nsIObjectInputStream.idl', + 'nsIObjectOutputStream.idl', + 'nsIOutputStream.idl', + 'nsIPipe.idl', + 'nsISafeOutputStream.idl', + 'nsIScriptableBase64Encoder.idl', + 'nsIScriptableInputStream.idl', + 'nsISeekableStream.idl', + 'nsISimpleUnicharStreamFactory.idl', + 'nsIStorageStream.idl', + 'nsIStreamBufferAccess.idl', + 'nsIStringStream.idl', + 'nsIUnicharInputStream.idl', + 'nsIUnicharLineInputStream.idl', + 'nsIUnicharOutputStream.idl', +] + +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2': + XPIDL_SOURCES += [ + 'nsILocalFileOS2.idl', + ] +elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': + XPIDL_SOURCES += [ + 'nsILocalFileMac.idl', + ] + +XPIDL_MODULE = 'xpcom_io' + diff --git a/xpcom/reflect/xptinfo/public/Makefile.in b/xpcom/reflect/xptinfo/public/Makefile.in index dcb0e770d86..743301c0afd 100644 --- a/xpcom/reflect/xptinfo/public/Makefile.in +++ b/xpcom/reflect/xptinfo/public/Makefile.in @@ -12,19 +12,12 @@ include $(DEPTH)/config/autoconf.mk MODULE = xpcom -XPIDL_MODULE = xpcom_xpti - GRE_MODULE = 1 EXPORTS = \ xptinfo.h \ $(NULL) -XPIDLSRCS = \ - nsIInterfaceInfo.idl \ - nsIInterfaceInfoManager.idl \ - $(NULL) - EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) include $(topsrcdir)/config/rules.mk diff --git a/xpcom/reflect/xptinfo/public/moz.build b/xpcom/reflect/xptinfo/public/moz.build index 58ce5e27339..a7c5dd8dd75 100644 --- a/xpcom/reflect/xptinfo/public/moz.build +++ b/xpcom/reflect/xptinfo/public/moz.build @@ -3,3 +3,10 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIInterfaceInfo.idl', + 'nsIInterfaceInfoManager.idl', +] + +XPIDL_MODULE = 'xpcom_xpti' + diff --git a/xpcom/sample/Makefile.in b/xpcom/sample/Makefile.in index 39c4a699acb..7acca3937d2 100644 --- a/xpcom/sample/Makefile.in +++ b/xpcom/sample/Makefile.in @@ -37,10 +37,6 @@ CPPSRCS = \ nsSampleModule.cpp \ $(NULL) -# XPIDLSRCS specified IDL files. The build system runs the xpidl tool on these -# files to generate C++ headers and .xpt typelib files. -XPIDLSRCS = nsISample.idl - include $(topsrcdir)/config/config.mk # EXTRA_COMPONENTS installs components written JavaScript to diff --git a/xpcom/sample/moz.build b/xpcom/sample/moz.build index ccd9f915cf3..7df1a216d10 100644 --- a/xpcom/sample/moz.build +++ b/xpcom/sample/moz.build @@ -4,3 +4,8 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. DIRS += ['program'] + +# XPIDL_SOURCES specifies IDL files. The build system runs the xpidl tool +# on these files to generate C++ headers and .xpt typelib files. +XPIDL_SOURCES += ['nsISample.idl'] + diff --git a/xpcom/system/Makefile.in b/xpcom/system/Makefile.in index f7958b9b50c..50ec83202e4 100644 --- a/xpcom/system/Makefile.in +++ b/xpcom/system/Makefile.in @@ -10,23 +10,4 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = xpcom -XPIDL_MODULE = xpcom_system - -XPIDLSRCS = \ - nsIXULAppInfo.idl \ - nsIXULRuntime.idl \ - nsIGConfService.idl \ - nsIGnomeVFSService.idl \ - nsIBlocklistService.idl \ - nsIGIOService.idl \ - nsIGSettingsService.idl \ - nsIDeviceSensors.idl \ - nsIGeolocationProvider.idl \ - nsIHapticFeedback.idl \ - $(NULL) - -ifdef MOZ_CRASHREPORTER -XPIDLSRCS += nsICrashReporter.idl -endif - include $(topsrcdir)/config/rules.mk diff --git a/xpcom/system/moz.build b/xpcom/system/moz.build index 58ce5e27339..95f7188db79 100644 --- a/xpcom/system/moz.build +++ b/xpcom/system/moz.build @@ -3,3 +3,23 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIBlocklistService.idl', + 'nsIDeviceSensors.idl', + 'nsIGConfService.idl', + 'nsIGIOService.idl', + 'nsIGSettingsService.idl', + 'nsIGeolocationProvider.idl', + 'nsIGnomeVFSService.idl', + 'nsIHapticFeedback.idl', + 'nsIXULAppInfo.idl', + 'nsIXULRuntime.idl', +] + +if CONFIG['MOZ_CRASHREPORTER']: + XPIDL_SOURCES += [ + 'nsICrashReporter.idl', + ] + +XPIDL_MODULE = 'xpcom_system' + diff --git a/xpcom/threads/Makefile.in b/xpcom/threads/Makefile.in index 754eb2c7b6d..e72a3bafc6f 100644 --- a/xpcom/threads/Makefile.in +++ b/xpcom/threads/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = xpcom -XPIDL_MODULE = xpcom_threads LIBRARY_NAME = xpcomthreads_s GRE_MODULE = 1 MOZILLA_INTERNAL_API = 1 @@ -43,20 +42,6 @@ EXPORTS_mozilla = \ LazyIdleThread.h \ $(NULL) -XPIDLSRCS = \ - nsIEventTarget.idl \ - nsIThread.idl \ - nsIThreadInternal.idl \ - nsIThreadManager.idl \ - nsIThreadPool.idl \ - nsITimer.idl \ - nsIRunnable.idl \ - nsICancelableRunnable.idl \ - nsIEnvironment.idl \ - nsIProcess.idl \ - nsISupportsPriority.idl \ - $(NULL) - EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS)) LOCAL_INCLUDES = -I$(srcdir)/../components diff --git a/xpcom/threads/moz.build b/xpcom/threads/moz.build index 58ce5e27339..75b5cbd66be 100644 --- a/xpcom/threads/moz.build +++ b/xpcom/threads/moz.build @@ -3,3 +3,19 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsICancelableRunnable.idl', + 'nsIEnvironment.idl', + 'nsIEventTarget.idl', + 'nsIProcess.idl', + 'nsIRunnable.idl', + 'nsISupportsPriority.idl', + 'nsIThread.idl', + 'nsIThreadInternal.idl', + 'nsIThreadManager.idl', + 'nsIThreadPool.idl', + 'nsITimer.idl', +] + +XPIDL_MODULE = 'xpcom_threads' + diff --git a/xpfe/appshell/public/Makefile.in b/xpfe/appshell/public/Makefile.in index 64cd0b743c3..2541d409a77 100644 --- a/xpfe/appshell/public/Makefile.in +++ b/xpfe/appshell/public/Makefile.in @@ -17,14 +17,5 @@ EXPORTS = \ nsAppShellCID.h \ $(NULL) -XPIDLSRCS = \ - nsIAppShellService.idl \ - nsIWindowMediator.idl \ - nsIWindowMediatorListener.idl \ - nsIXULWindow.idl \ - nsIPopupWindowManager.idl \ - nsIXULBrowserWindow.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/xpfe/appshell/public/moz.build b/xpfe/appshell/public/moz.build index 58ce5e27339..d5e3caaeec1 100644 --- a/xpfe/appshell/public/moz.build +++ b/xpfe/appshell/public/moz.build @@ -3,3 +3,12 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIAppShellService.idl', + 'nsIPopupWindowManager.idl', + 'nsIWindowMediator.idl', + 'nsIWindowMediatorListener.idl', + 'nsIXULBrowserWindow.idl', + 'nsIXULWindow.idl', +] + diff --git a/xpfe/components/autocomplete/public/Makefile.in b/xpfe/components/autocomplete/public/Makefile.in index 19c1dadc939..4610d5c98b4 100644 --- a/xpfe/components/autocomplete/public/Makefile.in +++ b/xpfe/components/autocomplete/public/Makefile.in @@ -11,13 +11,5 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = appcomps -XPIDL_MODULE = xpautocomplete - -XPIDLSRCS = \ - nsIAutoCompleteListener.idl \ - nsIAutoCompleteResults.idl \ - nsIAutoCompleteSession.idl \ - $(NULL) - include $(topsrcdir)/config/rules.mk diff --git a/xpfe/components/autocomplete/public/moz.build b/xpfe/components/autocomplete/public/moz.build index 58ce5e27339..901e4252180 100644 --- a/xpfe/components/autocomplete/public/moz.build +++ b/xpfe/components/autocomplete/public/moz.build @@ -3,3 +3,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIAutoCompleteListener.idl', + 'nsIAutoCompleteResults.idl', + 'nsIAutoCompleteSession.idl', +] + +XPIDL_MODULE = 'xpautocomplete' + diff --git a/xpfe/components/directory/Makefile.in b/xpfe/components/directory/Makefile.in index c51bd1efe9a..c86f7513888 100644 --- a/xpfe/components/directory/Makefile.in +++ b/xpfe/components/directory/Makefile.in @@ -11,12 +11,9 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = appcomps -XPIDL_MODULE = directory LIBRARY_NAME = directory_s LIBXUL_LIBRARY = 1 -XPIDLSRCS = nsIHTTPIndex.idl - CPPSRCS = nsDirectoryViewer.cpp # we don't want the shared lib, but we want to force the creation of a diff --git a/xpfe/components/directory/moz.build b/xpfe/components/directory/moz.build index 58ce5e27339..d63b4264e22 100644 --- a/xpfe/components/directory/moz.build +++ b/xpfe/components/directory/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIHTTPIndex.idl', +] + +XPIDL_MODULE = 'directory' + diff --git a/xpfe/components/windowds/Makefile.in b/xpfe/components/windowds/Makefile.in index a98192fc0b9..b48af3eb5e6 100644 --- a/xpfe/components/windowds/Makefile.in +++ b/xpfe/components/windowds/Makefile.in @@ -11,7 +11,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = appcomps -XPIDL_MODULE = windowds LIBRARY_NAME = windowds MODULE_NAME = nsWindowDataSourceModule LIBXUL_LIBRARY = 1 @@ -21,6 +20,4 @@ EXPORT_LIBRARY = 1 CPPSRCS = nsWindowDataSource.cpp -XPIDLSRCS = nsIWindowDataSource.idl - include $(topsrcdir)/config/rules.mk diff --git a/xpfe/components/windowds/moz.build b/xpfe/components/windowds/moz.build index 58ce5e27339..1a881c15bc2 100644 --- a/xpfe/components/windowds/moz.build +++ b/xpfe/components/windowds/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIWindowDataSource.idl', +] + +XPIDL_MODULE = 'windowds' + diff --git a/xulrunner/examples/simple/components/public/Makefile.in b/xulrunner/examples/simple/components/public/Makefile.in index 9c5c49dd2e7..767b37d43c8 100644 --- a/xulrunner/examples/simple/components/public/Makefile.in +++ b/xulrunner/examples/simple/components/public/Makefile.in @@ -13,6 +13,4 @@ include $(DEPTH)/config/autoconf.mk MODULE = simple XPI_NAME = simple -XPIDLSRCS = nsISimpleTest.idl - include $(topsrcdir)/config/rules.mk diff --git a/xulrunner/examples/simple/components/public/moz.build b/xulrunner/examples/simple/components/public/moz.build index 58ce5e27339..6334f823896 100644 --- a/xulrunner/examples/simple/components/public/moz.build +++ b/xulrunner/examples/simple/components/public/moz.build @@ -3,3 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsISimpleTest.idl', +] + diff --git a/xulrunner/setup/Makefile.in b/xulrunner/setup/Makefile.in index f128377fefa..cfd2c891782 100644 --- a/xulrunner/setup/Makefile.in +++ b/xulrunner/setup/Makefile.in @@ -10,12 +10,6 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = xulrunner -XPIDL_MODULE = xulapp_setup - -XPIDLSRCS = \ - nsIXULAppInstall.idl \ - $(NULL) - EXTRA_COMPONENTS = nsXULAppInstall.manifest EXTRA_PP_COMPONENTS = nsXULAppInstall.js diff --git a/xulrunner/setup/moz.build b/xulrunner/setup/moz.build index 58ce5e27339..7383239f105 100644 --- a/xulrunner/setup/moz.build +++ b/xulrunner/setup/moz.build @@ -3,3 +3,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +XPIDL_SOURCES += [ + 'nsIXULAppInstall.idl', +] + +XPIDL_MODULE = 'xulapp_setup' +