Skip to content

Commit

Permalink
Bug 1124736: Move PREF_JS_EXPORTS to moz.build (c-c easy moves) r=jcr…
Browse files Browse the repository at this point in the history
…anmer
  • Loading branch information
Brian O'Keefe committed Jan 19, 2015
1 parent 63ba43d commit 2c9e15f
Show file tree
Hide file tree
Showing 26 changed files with 71 additions and 147 deletions.
8 changes: 0 additions & 8 deletions calendar/lightning/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
# 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/.

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

# Calendar builders currently use STRIP_XPI to reduce the binary component in
# Lightning.

Expand All @@ -19,7 +12,6 @@ XPI_VERSION = $(LIGHTNING_VERSION)
XPI_EM_ID = {e2fda1a4-762b-4020-b5ad-a41df1933103}

DIST_FILES = install.rdf application.ini
PREF_JS_EXPORTS = $(srcdir)/content/lightning.js

# Lighting version number
THUNDERBIRD_VERSION := $(shell cat $(topsrcdir)/mail/config/version.txt)
Expand Down
5 changes: 5 additions & 0 deletions calendar/lightning/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
DEFINES['THEME'] = 'osx'
else:
DEFINES['THEME'] = 'linux'

JS_PREFERENCE_FILES += [
'content/lightning.js',
]

9 changes: 0 additions & 9 deletions calendar/providers/gdata/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
# 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/.

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

USE_EXTENSION_MANIFEST = 1
DIST_FILES = install.rdf
XPI_PKGNAME = gdata-provider-$(GDATA_VERSION).$(AB_CD).$(MOZ_PKG_PLATFORM)
Expand All @@ -32,8 +25,6 @@ DEFINES += -DAB_CD=$(AB_CD) \
-DGDATA_VERSION=$(GDATA_VERSION) \
$(NULL)

PREF_JS_EXPORTS = $(srcdir)/defaults/preferences.js

ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
# If the macbundle dist dir was already created, sync the gdata provider here to avoid
# the need to make -C objdir/mail/app each time
Expand Down
5 changes: 5 additions & 0 deletions calendar/providers/gdata/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ EXTRA_COMPONENTS += [
]

JAR_MANIFESTS += ['jar.mn']

JS_PREFERENCE_FILES += [
'defaults/preferences.js',
]

9 changes: 0 additions & 9 deletions calendar/timezones/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,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/.

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

USE_EXTENSION_MANIFEST = 1
DIST_FILES = install.rdf
XPI_PKGNAME = calendar-timezones

PREF_JS_EXPORTS = $(srcdir)/defaults/preferences.js

ifndef DISABLE_LIGHTNING_INSTALL
# install as a global extension in dist/bin/extensions/
INSTALL_EXTENSION_ID = calendar-timezones@mozilla.org
Expand Down
5 changes: 5 additions & 0 deletions calendar/timezones/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ XPI_NAME = 'calendar-timezones'
export('XPI_NAME')

JAR_MANIFESTS += ['jar.mn']

JS_PREFERENCE_FILES += [
'defaults/preferences.js',
]

14 changes: 0 additions & 14 deletions chat/Makefile.in

This file was deleted.

4 changes: 4 additions & 0 deletions chat/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ DIRS += [
if CONFIG['MOZ_DEBUG']:
DIRS += ['protocols/jsTest']

JS_PREFERENCE_FILES += [
'chat-prefs.js',
]

16 changes: 0 additions & 16 deletions editor/ui/Makefile.in

This file was deleted.

5 changes: 5 additions & 0 deletions editor/ui/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ EXTRA_JS_MODULES += [
]

JAR_MANIFESTS += ['jar.mn']

if not CONFIG['MOZ_STANDALONE_COMPOSER']:
JS_PREFERENCE_FILES += [
'composer.js'
]
12 changes: 0 additions & 12 deletions im/app/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
# 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/.

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

AB_CD = $(MOZ_UI_LOCALE)

GRE_MILESTONE = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build Milestone)
Expand All @@ -26,11 +19,6 @@ ifdef SOURCE_REPO
DEFINES += -DMOZ_SOURCE_REPO="$(SOURCE_REPO)"
endif

PREF_JS_EXPORTS = \
$(srcdir)/profile/all-instantbird.js \
$(srcdir)/profile/channel-prefs.js \
$(NULL)

DEFINES += \
-DAB_CD=$(AB_CD) \
-DINSTANTBIRD_ICO=\"$(DIST)/branding/instantbird.ico\" \
Expand Down
6 changes: 6 additions & 0 deletions im/app/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ if CONFIG['MOZILLA_OFFICIAL']:
DEFINES['MOZILLA_OFFICIAL'] = True

DISABLE_STL_WRAPPING = True

JS_PREFERENCE_FILES += [
'profile/all-instantbird.js',
'profile/channel-prefs.js',
]

12 changes: 0 additions & 12 deletions mail/app/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
# 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/.

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

AB_CD = $(MOZ_UI_LOCALE)

GRE_MILESTONE = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build Milestone)
Expand All @@ -24,11 +17,6 @@ ifdef SOURCE_REPO
DEFINES += -DMOZ_SOURCE_REPO="$(SOURCE_REPO)"
endif

PREF_JS_EXPORTS = \
$(srcdir)/profile/all-thunderbird.js \
$(srcdir)/profile/channel-prefs.js \
$(NULL)

DEFINES += \
-DAB_CD=$(AB_CD) \
-DTHUNDERBIRD_ICO='"$(DIST)/branding/thunderbird.ico"' \
Expand Down
6 changes: 6 additions & 0 deletions mail/app/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ if CONFIG['MOZILLA_OFFICIAL']:
DEFINES['MOZILLA_OFFICIAL'] = True

DISABLE_STL_WRAPPING = True

JS_PREFERENCE_FILES += [
'profile/all-thunderbird.js',
'profile/channel-prefs.js',
]

9 changes: 0 additions & 9 deletions mail/branding/aurora/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@

# Branding Makefile for nightlies/unofficial branding

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

PREF_JS_EXPORTS += $(srcdir)/thunderbird-branding.js

include $(topsrcdir)/config/rules.mk

export::
Expand Down
5 changes: 5 additions & 0 deletions mail/branding/aurora/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@
DIRS += ['locales']

JAR_MANIFESTS += ['jar.mn']

JS_PREFERENCE_FILES += [
'thunderbird-branding.js',
]

9 changes: 0 additions & 9 deletions mail/branding/nightly/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@

# Branding Makefile for nightlies/unofficial branding

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

PREF_JS_EXPORTS += $(srcdir)/thunderbird-branding.js

include $(topsrcdir)/config/rules.mk

export::
Expand Down
5 changes: 5 additions & 0 deletions mail/branding/nightly/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@
DIRS += ['locales']

JAR_MANIFESTS += ['jar.mn']

JS_PREFERENCE_FILES += [
'thunderbird-branding.js',
]

14 changes: 0 additions & 14 deletions mail/components/im/Makefile.in

This file was deleted.

5 changes: 5 additions & 0 deletions mail/components/im/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ EXTRA_JS_MODULES += [
]

JAR_MANIFESTS += ['jar.mn']

JS_PREFERENCE_FILES += [
'all-im.js',
]

9 changes: 0 additions & 9 deletions mailnews/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
# 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/.

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

PREF_JS_EXPORTS = $(srcdir)/mailnews.js

include $(topsrcdir)/config/rules.mk

ifdef ENABLE_TESTS
Expand Down
5 changes: 5 additions & 0 deletions mailnews/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,8 @@ TESTING_JS_MODULES.mailnews += [
'test/resources/MockFactory.js',
'test/resources/PromiseTestUtils.jsm',
]

JS_PREFERENCE_FILES += [
'mailnews.js',
]

9 changes: 0 additions & 9 deletions other-licenses/branding/thunderbird/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
# - copies artwork to appropriate places in objdir for bundling into app
# resources

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

PREF_JS_EXPORTS = $(srcdir)/thunderbird-branding.js

include $(topsrcdir)/config/rules.mk

export::
Expand Down
5 changes: 5 additions & 0 deletions other-licenses/branding/thunderbird/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@
DIRS += ['locales']

JAR_MANIFESTS += ['jar.mn']

JS_PREFERENCE_FILES += [
'thunderbird-branding.js',
]

17 changes: 0 additions & 17 deletions suite/browser/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@
# 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/.

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

PREF_JS_EXPORTS = \
$(srcdir)/browser-prefs.js \
$(NULL)

ifdef LIBXUL_SDK
PREF_JS_EXPORTS += \
$(srcdir)/channel-prefs.js
$(NULL)
endif

include $(topsrcdir)/config/rules.mk

ifndef LIBXUL_SDK
Expand Down
10 changes: 10 additions & 0 deletions suite/browser/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ for var in ('MOZ_APP_NAME', 'MOZ_APP_DISPLAYNAME', 'MOZ_APP_VERSION'):

if CONFIG['MOZILLA_OFFICIAL']:
DEFINES['OFFICIAL_BUILD'] = 1

if CONFIG['LIBXUL_SDK']:
PREF_JS_EXPORTS += [
'channel-prefs.js'
]

JS_PREFERENCE_FILES += [
'browser-prefs.js',
]

0 comments on commit 2c9e15f

Please sign in to comment.