Skip to content

Commit

Permalink
bug 880246: move EXTRA_PP_COMPONENTS to mozbuild (file batch #1) r=mshal
Browse files Browse the repository at this point in the history
UltraBlame original commit: a6d60a556ed4dbcc24e475c0c82ead4304d882f5
  • Loading branch information
marco-c committed Sep 29, 2019
1 parent f7df283 commit 2979e33
Show file tree
Hide file tree
Showing 44 changed files with 157 additions and 26 deletions.
4 changes: 2 additions & 2 deletions b2g/components/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
ActivitiesGlue.js \
AlertsService.js \
B2GAboutRedirector.js \
Expand All @@ -36,7 +36,7 @@ EXTRA_JS_MODULES = \
$(NULL)

ifdef MOZ_UPDATER
EXTRA_PP_COMPONENTS += UpdatePrompt.js
DISABLED_EXTRA_PP_COMPONENTS += UpdatePrompt.js
endif

include $(topsrcdir)/config/rules.mk
23 changes: 23 additions & 0 deletions b2g/components/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,26 @@ XPIDL_SOURCES += [

MODULE = 'B2GComponents'

EXTRA_PP_COMPONENTS += [
'ActivitiesGlue.js',
'AlertsService.js',
'B2GAboutRedirector.js',
'B2GComponents.manifest',
'ContentHandler.js',
'ContentPermissionPrompt.js',
'DirectoryProvider.js',
'FilePicker.js',
'MailtoProtocolHandler.js',
'MozKeyboard.js',
'PaymentGlue.js',
'ProcessGlobal.js',
'RecoveryService.js',
'SmsProtocolHandler.js',
'TelProtocolHandler.js',
'YoutubeProtocolHandler.js',
]

if CONFIG['MOZ_UPDATER']:
EXTRA_PP_COMPONENTS += [
'UpdatePrompt.js',
]
2 changes: 1 addition & 1 deletion browser/components/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DISABLED_EXTRA_COMPONENTS = \
BrowserComponents.manifest \
$(NULL)

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
nsBrowserContentHandler.js \
nsBrowserGlue.js \
$(NULL)
Expand Down
2 changes: 1 addition & 1 deletion browser/components/feeds/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ DISABLED_EXTRA_COMPONENTS = \
WebContentConverter.js \
$(NULL)

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
FeedWriter.js \
$(NULL)

Expand Down
4 changes: 4 additions & 0 deletions browser/components/feeds/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ EXTRA_COMPONENTS += [
'FeedConverter.js',
'WebContentConverter.js',
]

EXTRA_PP_COMPONENTS += [
'FeedWriter.js',
]
8 changes: 4 additions & 4 deletions browser/components/migration/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@ DISABLED_EXTRA_COMPONENTS = \
FirefoxProfileMigrator.js \
$(NULL)

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
ChromeProfileMigrator.js \
$(NULL)

ifeq ($(OS_ARCH),WINNT)
DISABLED_EXTRA_COMPONENTS += IEProfileMigrator.js \
$(NULL)

EXTRA_PP_COMPONENTS += SafariProfileMigrator.js \
DISABLED_EXTRA_PP_COMPONENTS += SafariProfileMigrator.js \
$(NULL)

DEFINES += -DHAS_IE_MIGRATOR -DHAS_SAFARI_MIGRATOR
endif

ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
EXTRA_PP_COMPONENTS += SafariProfileMigrator.js \
DISABLED_EXTRA_PP_COMPONENTS += SafariProfileMigrator.js \
$(NULL)
DEFINES += -DHAS_SAFARI_MIGRATOR
endif

EXTRA_PP_COMPONENTS += \
DISABLED_EXTRA_PP_COMPONENTS += \
BrowserProfileMigrators.manifest \
$(NULL)

Expand Down
15 changes: 15 additions & 0 deletions browser/components/migration/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,18 @@ if CONFIG['OS_ARCH'] == 'WINNT':
EXTRA_COMPONENTS += [
'IEProfileMigrator.js',
]

EXTRA_PP_COMPONENTS += [
'BrowserProfileMigrators.manifest',
'ChromeProfileMigrator.js',
]

if CONFIG['OS_ARCH'] == 'WINNT':
EXTRA_PP_COMPONENTS += [
'SafariProfileMigrator.js',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
EXTRA_PP_COMPONENTS += [
'SafariProfileMigrator.js',
]
4 changes: 4 additions & 0 deletions browser/components/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ MODULE = 'browsercomps'
EXTRA_COMPONENTS += [
'BrowserComponents.manifest',
]
EXTRA_PP_COMPONENTS += [
'nsBrowserContentHandler.js',
'nsBrowserGlue.js',
]
2 changes: 1 addition & 1 deletion browser/fuel/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk

DISABLED_EXTRA_COMPONENTS = fuelApplication.manifest
EXTRA_PP_COMPONENTS = fuelApplication.js
DISABLED_EXTRA_PP_COMPONENTS = fuelApplication.js

include $(topsrcdir)/config/rules.mk
4 changes: 4 additions & 0 deletions browser/fuel/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ MODULE = 'fuel'
EXTRA_COMPONENTS += [
'fuelApplication.manifest',
]

EXTRA_PP_COMPONENTS += [
'fuelApplication.js',
]
2 changes: 1 addition & 1 deletion browser/metro/components/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk

# metro/components.manifest
EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
components.manifest \
AboutRedirector.js \
BrowserCLH.js \
Expand Down
11 changes: 11 additions & 0 deletions browser/metro/components/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ XPIDL_SOURCES += [

MODULE = 'components'

# metro/components.manifest
EXTRA_PP_COMPONENTS += [
'AboutRedirector.js',
'BrowserCLH.js',
'BrowserStartup.js',
'DirectoryProvider.js',
'HelperAppDialog.js',
'SessionStore.js',
'Sidebar.js',
'components.manifest',
]
2 changes: 1 addition & 1 deletion content/base/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ EXTRA_COMPONENTS = \
messageWakeupService.manifest \
$(NULL)

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
contentSecurityPolicy.js \
$(NULL)

Expand Down
3 changes: 3 additions & 0 deletions content/base/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,6 @@ CPP_SOURCES += [
'nsXMLNameSpaceMap.cpp',
]

EXTRA_PP_COMPONENTS += [
'contentSecurityPolicy.js',
]
2 changes: 1 addition & 1 deletion dom/apps/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DISABLED_EXTRA_COMPONENTS = \
Webapps.manifest \
$(NULL)

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
Webapps.js \
$(NULL)

Expand Down
4 changes: 4 additions & 0 deletions dom/apps/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ EXTRA_COMPONENTS += [
'Webapps.manifest',
]

EXTRA_PP_COMPONENTS += [
'Webapps.js',
]

EXTRA_JS_MODULES += [
'AppDownloadManager.jsm',
'AppsServiceChild.jsm',
Expand Down
2 changes: 1 addition & 1 deletion image/decoders/icon/qt/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ LOCAL_INCLUDES += $(MOZ_QT_CFLAGS)
FORCE_STATIC_LIB = 1

EXTRA_COMPONENTS = gtkqticonsconverter.manifest
EXTRA_PP_COMPONENTS = gtkqticonsconverter.js
DISABLED_EXTRA_PP_COMPONENTS = gtkqticonsconverter.js

include $(topsrcdir)/config/rules.mk

3 changes: 3 additions & 0 deletions image/decoders/icon/qt/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ CPP_SOURCES += [
'nsIconChannel.cpp',
]

EXTRA_PP_COMPONENTS += [
'gtkqticonsconverter.js',
]
2 changes: 1 addition & 1 deletion mobile/android/components/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
MobileComponents.manifest \
AboutRedirector.js \
BrowserCLH.js \
Expand Down
9 changes: 9 additions & 0 deletions mobile/android/components/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@ XPIDL_SOURCES += [

MODULE = 'MobileComponents'

EXTRA_PP_COMPONENTS += [
'AboutRedirector.js',
'BrowserCLH.js',
'DirectoryProvider.js',
'HelperAppDialog.js',
'MobileComponents.manifest',
'SessionStore.js',
'Sidebar.js',
]
2 changes: 1 addition & 1 deletion services/datareporting/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EXTRA_COMPONENTS := \
DataReporting.manifest \
$(NULL)

EXTRA_PP_COMPONENTS := \
DISABLED_EXTRA_PP_COMPONENTS := \
DataReportingService.js \
$(NULL)

Expand Down
4 changes: 4 additions & 0 deletions services/datareporting/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

TEST_DIRS += ['tests']

EXTRA_PP_COMPONENTS += [
'DataReportingService.js',
]
2 changes: 1 addition & 1 deletion testing/marionette/components/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ifdef ENABLE_MARIONETTE
DEFINES += -DENABLE_MARIONETTE=1
endif

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
MarionetteComponents.manifest \
marionettecomponent.js \
$(NULL)
Expand Down
4 changes: 4 additions & 0 deletions testing/marionette/components/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,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/.

EXTRA_PP_COMPONENTS += [
'MarionetteComponents.manifest',
'marionettecomponent.js',
]
2 changes: 1 addition & 1 deletion toolkit/components/filepicker/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ IS_COMPONENT = 1
MODULE_NAME = nsFileViewModule
LIBXUL_LIBRARY = 1
DISABLED_EXTRA_COMPONENTS = nsFilePicker.js
EXTRA_PP_COMPONENTS = nsFilePicker.manifest
DISABLED_EXTRA_PP_COMPONENTS = nsFilePicker.manifest
endif
endif

Expand Down
3 changes: 3 additions & 0 deletions toolkit/components/filepicker/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ if CONFIG['MOZ_XUL'] and \
EXTRA_COMPONENTS += [
'nsFilePicker.js',
]
EXTRA_PP_COMPONENTS += [
'nsFilePicker.manifest',
]
2 changes: 1 addition & 1 deletion toolkit/components/passwordmgr/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ DISABLED_EXTRA_COMPONENTS = \
storage-Legacy.js \
$(NULL)

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
storage-mozStorage.js \
$(NULL)

Expand Down
4 changes: 4 additions & 0 deletions toolkit/components/passwordmgr/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ EXTRA_COMPONENTS += [
'passwordmgr.manifest',
'storage-Legacy.js',
]

EXTRA_PP_COMPONENTS += [
'storage-mozStorage.js',
]
2 changes: 1 addition & 1 deletion toolkit/components/satchel/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DISABLED_EXTRA_COMPONENTS = \
satchel.manifest \
$(NULL)

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
nsFormHistory.js \
$(NULL)

Expand Down
4 changes: 4 additions & 0 deletions toolkit/components/satchel/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ EXTRA_COMPONENTS += [
'nsInputListAutoComplete.js',
'satchel.manifest',
]

EXTRA_PP_COMPONENTS += [
'nsFormHistory.js',
]
2 changes: 1 addition & 1 deletion toolkit/components/search/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DISABLED_EXTRA_COMPONENTS = \
nsSearchSuggestions.js \
$(NULL)

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
nsSearchService.js \
$(NULL)

Expand Down
4 changes: 4 additions & 0 deletions toolkit/components/search/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ EXTRA_COMPONENTS += [
'nsSearchSuggestions.js',
'toolkitsearch.manifest',
]

EXTRA_PP_COMPONENTS += [
'nsSearchService.js',
]
2 changes: 1 addition & 1 deletion toolkit/components/telemetry/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ FAIL_ON_WARNINGS = 1
LIBRARY_NAME = telemetry
MSVC_ENABLE_PGO := 1

EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
TelemetryPing.js \
$(NULL)

Expand Down
4 changes: 4 additions & 0 deletions toolkit/components/telemetry/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ CPP_SOURCES += [
EXTRA_COMPONENTS += [
'TelemetryPing.manifest',
]

EXTRA_PP_COMPONENTS += [
'TelemetryPing.js',
]
2 changes: 1 addition & 1 deletion toolkit/components/url-classifier/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DISABLED_EXTRA_COMPONENTS = \
$(NULL)

# Same as JS components that are run through the pre-processor.
EXTRA_PP_COMPONENTS = \
DISABLED_EXTRA_PP_COMPONENTS = \
nsUrlClassifierLib.js \
nsUrlClassifierListManager.js \
$(NULL)
Expand Down
6 changes: 6 additions & 0 deletions toolkit/components/url-classifier/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ EXTRA_COMPONENTS += [
'nsURLClassifier.manifest',
'nsUrlClassifierHashCompleter.js',
]

# Same as JS components that are run through the pre-processor.
EXTRA_PP_COMPONENTS += [
'nsUrlClassifierLib.js',
'nsUrlClassifierListManager.js',
]
2 changes: 1 addition & 1 deletion toolkit/mozapps/downloads/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VPATH = @srcdir@
include $(topsrcdir)/config/config.mk

DISABLED_EXTRA_COMPONENTS = nsHelperAppDlg.manifest
EXTRA_PP_COMPONENTS = nsHelperAppDlg.js
DISABLED_EXTRA_PP_COMPONENTS = nsHelperAppDlg.js

EXTRA_JS_MODULES = \
DownloadLastDir.jsm \
Expand Down
4 changes: 4 additions & 0 deletions toolkit/mozapps/downloads/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ MODULE = 'helperAppDlg'
EXTRA_COMPONENTS += [
'nsHelperAppDlg.manifest',
]

EXTRA_PP_COMPONENTS += [
'nsHelperAppDlg.js',
]
Loading

0 comments on commit 2979e33

Please sign in to comment.