Bug 901567 - Move EXTRA_PP_JS_MODULES to moz.build, r=Standard8, a=Standard8.
authorJoshua Cranmer <Pidgeot18@gmail.com>
Mon, 12 Aug 2013 07:56:12 -0500
changeset 14592 e8d5b9e910b33401db1d2a70315038af5b0532ab
parent 14591 3c04043d01b87123410256c2e2d703fcec7bce1f
child 14593 b97f9f43d5e17d4ca7940c431c087ff41a08210d
push id1061
push userbugzilla@standard8.plus.com
push dateTue, 17 Sep 2013 17:45:46 +0000
treeherdercomm-aurora@a5a311c8696f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8, Standard8
bugs901567
Bug 901567 - Move EXTRA_PP_JS_MODULES to moz.build, r=Standard8, a=Standard8. CLOSED TREE seamonkey changes, too.
chat/modules/Makefile.in
chat/modules/moz.build
mail/components/search/Makefile.in
mail/components/search/moz.build
--- a/chat/modules/Makefile.in
+++ b/chat/modules/Makefile.in
@@ -5,18 +5,13 @@
 DEPTH		= @DEPTH@
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 relativesrcdir = @relativesrcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-EXTRA_PP_JS_MODULES = \
-	hiddenWindow.jsm \
-	imTextboxUtils.jsm \
-	$(NULL)
-
 ifdef ENABLE_TESTS
 TESTING_JS_MODULES := test/appInfoUtils.jsm
 endif
 
 include $(topsrcdir)/config/rules.mk
--- a/chat/modules/moz.build
+++ b/chat/modules/moz.build
@@ -10,8 +10,14 @@ EXTRA_JS_MODULES += [
     'imServices.jsm',
     'imSmileys.jsm',
     'imStatusUtils.jsm',
     'imThemes.jsm',
     'imXPCOMUtils.jsm',
     'jsProtoHelper.jsm',
     'socket.jsm',
 ]
+
+EXTRA_PP_JS_MODULES += [
+    'hiddenWindow.jsm',
+    'imTextboxUtils.jsm',
+]
+
--- a/mail/components/search/Makefile.in
+++ b/mail/components/search/Makefile.in
@@ -4,37 +4,20 @@
 
 DEPTH     = @DEPTH@
 topsrcdir = @top_srcdir@
 srcdir    = @srcdir@
 VPATH     = @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
-# Include SearchIntegration.js on all platforms
-EXTRA_PP_JS_MODULES = \
-  SearchIntegration.js \
-  $(NULL)
-
-# If on Mac, build Spotlight integration
-ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
-EXTRA_PP_JS_MODULES += \
-  SpotlightIntegration.js \
-  $(NULL)
-endif
-
 # If on Windows, build Windows Search integration
 ifneq (,$(filter windows, $(MOZ_WIDGET_TOOLKIT)))
 LIBRARY_NAME = winsearch_s
 MODULE_NAME = nsMailWinSearchHelperModule
 ifneq ($(MOZ_WIDGET_TOOLKIT), gtk2)
 MOZILLA_INTERNAL_API = 1
 endif
 
-# Windows Search component
-EXTRA_PP_JS_MODULES += \
-  WinSearchIntegration.js \
-  $(NULL)
-
 FORCE_STATIC_LIB = 1
 endif
 
 include $(topsrcdir)/config/rules.mk
--- a/mail/components/search/moz.build
+++ b/mail/components/search/moz.build
@@ -1,15 +1,21 @@
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # 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_WIDGET_TOOLKIT'] == 'cocoa':
     DIRS += ['mdimporter']
+    EXTRA_PP_JS_MODULES += ['SpotlightIntegration.js']
 elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
     DIRS += ['wsenable']
     CPP_SOURCES += ['nsMailWinSearchHelper.cpp']
+    EXTRA_PP_JS_MODULES += ['WinSearchIntegration.js']
 
 MODULE = 'mailwinsearch'
 
 DIRS += ['public']
 
+EXTRA_PP_JS_MODULES += [
+    'SearchIntegration.js',
+]
+