Skip to content

Commit

Permalink
Bug 880245 - Move EXTRA_JS_MODULES to moz.build (batch mozilla#2); r=…
Browse files Browse the repository at this point in the history
…joey
  • Loading branch information
mshal committed Jun 17, 2013
1 parent 3afe016 commit fab4df7
Show file tree
Hide file tree
Showing 40 changed files with 139 additions and 140 deletions.
6 changes: 0 additions & 6 deletions toolkit/components/contentprefs/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,4 @@ DISABLED_EXTRA_COMPONENTS = \
nsContentPrefService.manifest \
$(NULL)

EXTRA_JS_MODULES = \
ContentPrefInstance.jsm \
ContentPrefService2.jsm \
ContentPrefStore.jsm \
$(NULL)

include $(topsrcdir)/config/rules.mk
7 changes: 7 additions & 0 deletions toolkit/components/contentprefs/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ EXTRA_COMPONENTS += [
'nsContentPrefService.js',
'nsContentPrefService.manifest',
]

EXTRA_JS_MODULES += [
'ContentPrefInstance.jsm',
'ContentPrefService2.jsm',
'ContentPrefStore.jsm',
]

4 changes: 0 additions & 4 deletions toolkit/components/ctypes/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ include $(DEPTH)/config/autoconf.mk

MODULE_NAME = jsctypes

EXTRA_JS_MODULES = \
ctypes.jsm \
$(NULL)

LIBXUL_LIBRARY = 1
EXPORT_LIBRARY = 1
IS_COMPONENT = 1
Expand Down
3 changes: 3 additions & 0 deletions toolkit/components/ctypes/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ CPP_SOURCES += [

LIBRARY_NAME = 'jsctypes'

EXTRA_JS_MODULES += [
'ctypes.jsm',
]
8 changes: 0 additions & 8 deletions toolkit/components/jsdownloads/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ DISABLED_EXTRA_COMPONENTS = \
DownloadLegacy.js \
$(NULL)

EXTRA_JS_MODULES = \
Downloads.jsm \
DownloadCore.jsm \
DownloadList.jsm \
DownloadStore.jsm \
DownloadUIHelper.jsm \
$(NULL)

EXTRA_PP_JS_MODULES = \
DownloadIntegration.jsm \
$(NULL)
Expand Down
9 changes: 9 additions & 0 deletions toolkit/components/jsdownloads/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ EXTRA_COMPONENTS += [
'DownloadLegacy.js',
'Downloads.manifest',
]

EXTRA_JS_MODULES += [
'DownloadCore.jsm',
'DownloadList.jsm',
'DownloadStore.jsm',
'DownloadUIHelper.jsm',
'Downloads.jsm',
]

2 changes: 0 additions & 2 deletions toolkit/components/microformats/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

EXTRA_JS_MODULES = Microformats.js

include $(topsrcdir)/config/rules.mk
4 changes: 4 additions & 0 deletions toolkit/components/microformats/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ TEST_DIRS += ['tests']

MODULE = 'microformats'

EXTRA_JS_MODULES += [
'Microformats.js',
]

4 changes: 0 additions & 4 deletions toolkit/components/perf/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ include $(DEPTH)/config/autoconf.mk

MODULE_NAME = jsperf

EXTRA_JS_MODULES = \
PerfMeasurement.jsm \
$(NULL)

LIBXUL_LIBRARY = 1
EXPORT_LIBRARY = 1
IS_COMPONENT = 1
Expand Down
3 changes: 3 additions & 0 deletions toolkit/components/perf/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ CPP_SOURCES += [

LIBRARY_NAME = 'jsperf'

EXTRA_JS_MODULES += [
'PerfMeasurement.jsm',
]
9 changes: 0 additions & 9 deletions toolkit/components/places/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ ifdef MOZ_XUL
DISABLED_EXTRA_COMPONENTS += nsPlacesAutoComplete.js nsPlacesAutoComplete.manifest
endif

EXTRA_JS_MODULES = \
PlacesDBUtils.jsm \
ColorAnalyzer_worker.js \
ColorConversion.js \
ClusterLib.js \
BookmarkJSONUtils.jsm \
PlacesBackups.jsm \
$(NULL)

EXTRA_PP_JS_MODULES = \
BookmarkHTMLUtils.jsm \
PlacesUtils.jsm \
Expand Down
9 changes: 9 additions & 0 deletions toolkit/components/places/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ if CONFIG['MOZ_PLACES']:
'Database.cpp',
]

EXTRA_JS_MODULES = [
'BookmarkJSONUtils.jsm',
'ClusterLib.js',
'ColorAnalyzer_worker.js',
'ColorConversion.js',
'PlacesBackups.jsm',
'PlacesDBUtils.jsm',
]

MODULE = 'places'


Expand Down
4 changes: 0 additions & 4 deletions toolkit/components/prompts/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ DISABLED_EXTRA_COMPONENTS = \
nsPrompter.manifest \
$(NULL)

EXTRA_JS_MODULES = \
CommonDialog.jsm \
$(NULL)

include $(topsrcdir)/config/rules.mk
5 changes: 5 additions & 0 deletions toolkit/components/prompts/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ EXTRA_COMPONENTS += [
'nsPrompter.js',
'nsPrompter.manifest',
]

EXTRA_JS_MODULES += [
'CommonDialog.jsm',
]

4 changes: 0 additions & 4 deletions toolkit/components/reflect/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ include $(DEPTH)/config/autoconf.mk

MODULE_NAME = jsreflect

EXTRA_JS_MODULES = \
reflect.jsm \
$(NULL)

LIBXUL_LIBRARY = 1
EXPORT_LIBRARY = 1
IS_COMPONENT = 1
Expand Down
3 changes: 3 additions & 0 deletions toolkit/components/reflect/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ CPP_SOURCES += [

LIBRARY_NAME = 'jsreflect'

EXTRA_JS_MODULES += [
'reflect.jsm',
]
4 changes: 0 additions & 4 deletions toolkit/components/satchel/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ DISABLED_EXTRA_COMPONENTS = \
satchel.manifest \
$(NULL)

EXTRA_JS_MODULES = \
nsFormAutoCompleteResult.jsm \
$(NULL)

EXTRA_PP_JS_MODULES = \
FormHistory.jsm \
$(NULL)
Expand Down
3 changes: 3 additions & 0 deletions toolkit/components/satchel/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ EXTRA_PP_COMPONENTS += [

LIBRARY_NAME = 'satchel'

EXTRA_JS_MODULES += [
'nsFormAutoCompleteResult.jsm',
]
14 changes: 0 additions & 14 deletions toolkit/components/social/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,4 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

ifdef MOZ_SOCIAL
# social is turned off for android

EXTRA_JS_MODULES = \
FrameWorker.jsm \
MessagePortBase.jsm \
MessagePortWorker.js \
SocialService.jsm \
WorkerAPI.jsm \
MozSocialAPI.jsm \
$(NULL)

endif

include $(topsrcdir)/config/rules.mk
11 changes: 11 additions & 0 deletions toolkit/components/social/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,14 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

TEST_DIRS += ['test']

if CONFIG['MOZ_SOCIAL']:
# social is turned off for android
EXTRA_JS_MODULES = [
'FrameWorker.jsm',
'MessagePortBase.jsm',
'MessagePortWorker.js',
'MozSocialAPI.jsm',
'SocialService.jsm',
'WorkerAPI.jsm',
]
5 changes: 0 additions & 5 deletions toolkit/components/telemetry/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ DISABLED_EXTRA_COMPONENTS = \
TelemetryPing.manifest \
$(NULL)

EXTRA_JS_MODULES = \
TelemetryStopwatch.jsm \
ThirdPartyCookieProbe.jsm \
$(NULL)

LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/build
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/threads

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 @@ -31,3 +31,7 @@ EXTRA_PP_COMPONENTS += [
'TelemetryPing.js',
]

EXTRA_JS_MODULES += [
'TelemetryStopwatch.jsm',
'ThirdPartyCookieProbe.jsm',
]
6 changes: 0 additions & 6 deletions toolkit/components/thumbnails/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,4 @@ DISABLED_EXTRA_COMPONENTS = \
PageThumbsProtocol.js \
$(NULL)

EXTRA_JS_MODULES = \
BackgroundPageThumbs.jsm \
PageThumbsWorker.js \
PageThumbs.jsm \
$(NULL)

include $(topsrcdir)/config/rules.mk
7 changes: 7 additions & 0 deletions toolkit/components/thumbnails/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ EXTRA_COMPONENTS += [
'BrowserPageThumbs.manifest',
'PageThumbsProtocol.js',
]

EXTRA_JS_MODULES += [
'BackgroundPageThumbs.jsm',
'PageThumbs.jsm',
'PageThumbsWorker.js',
]

5 changes: 0 additions & 5 deletions toolkit/components/url-classifier/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,4 @@ DISABLED_EXTRA_COMPONENTS = \
nsURLClassifier.manifest \
$(NULL)

# Same as JS components that are run through the pre-processor.
EXTRA_JS_MODULES = \
SafeBrowsing.jsm \
$(NULL)

include $(topsrcdir)/config/rules.mk
3 changes: 3 additions & 0 deletions toolkit/components/url-classifier/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ EXTRA_PP_COMPONENTS += [

LIBRARY_NAME = 'urlclassifier_s'

EXTRA_JS_MODULES += [
'SafeBrowsing.jsm',
]
5 changes: 0 additions & 5 deletions toolkit/crashreporter/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ DEFINES += -DUNICODE -D_UNICODE

FORCE_STATIC_LIB = 1

EXTRA_JS_MODULES = \
CrashSubmit.jsm \
KeyValueParser.jsm \
$(NULL)

include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk
include $(topsrcdir)/config/rules.mk
Expand Down
7 changes: 6 additions & 1 deletion toolkit/crashreporter/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,13 @@ CPP_SOURCES += [
'nsExceptionHandler.cpp',
]


if CONFIG['OS_ARCH'] == 'Darwin':
CMMSRCS += [
'mac_utils.mm',
]

EXTRA_JS_MODULES += [
'CrashSubmit.jsm',
'KeyValueParser.jsm',
]

2 changes: 0 additions & 2 deletions toolkit/crashreporter/test/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ LOCAL_INCLUDES += \
$(NULL)
EXTRA_DSO_LDOPTS += $(LIBS_DIR) $(MOZ_COMPONENT_LIBS) $(XPCOM_GLUE_LDOPTS)

EXTRA_JS_MODULES = CrashTestUtils.jsm

MOCHITEST_BROWSER_FILES = \
browser/head.js \
browser/crashreport.sjs \
Expand Down
3 changes: 3 additions & 0 deletions toolkit/crashreporter/test/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ CPP_SOURCES += [

LIBRARY_NAME = 'testcrasher'

EXTRA_JS_MODULES += [
'CrashTestUtils.jsm',
]
4 changes: 0 additions & 4 deletions toolkit/forgetaboutsite/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@ VPATH := @srcdir@

include $(DEPTH)/config/autoconf.mk

EXTRA_JS_MODULES := \
ForgetAboutSite.jsm \
$(NULL)

include $(topsrcdir)/config/rules.mk
4 changes: 4 additions & 0 deletions toolkit/forgetaboutsite/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ TEST_DIRS += ['test']

MODULE = 'forgetaboutsite'

EXTRA_JS_MODULES += [
'ForgetAboutSite.jsm',
]

14 changes: 0 additions & 14 deletions toolkit/identity/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,4 @@ LIBXUL_LIBRARY = 1
IS_COMPONENT = 1
EXPORT_LIBRARY = 1

EXTRA_JS_MODULES = \
IdentityUtils.jsm \
Identity.jsm \
IdentityProvider.jsm \
IdentityStore.jsm \
jwcrypto.jsm \
LogUtils.jsm \
MinimalIdentity.jsm \
RelyingParty.jsm \
Sandbox.jsm \
$(NULL)

JS_MODULES_PATH = modules/identity

include $(topsrcdir)/config/rules.mk
13 changes: 13 additions & 0 deletions toolkit/identity/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,16 @@ CPP_SOURCES += [

LIBRARY_NAME = 'identity'

JS_MODULES_PATH = 'modules/identity'

EXTRA_JS_MODULES += [
'Identity.jsm',
'IdentityProvider.jsm',
'IdentityStore.jsm',
'IdentityUtils.jsm',
'LogUtils.jsm',
'MinimalIdentity.jsm',
'RelyingParty.jsm',
'Sandbox.jsm',
'jwcrypto.jsm',
]
Loading

0 comments on commit fab4df7

Please sign in to comment.