Skip to content

Commit

Permalink
Bug 765294 - Fix packaging of services components; r=ted
Browse files Browse the repository at this point in the history
  • Loading branch information
indygreg committed Jun 22, 2012
1 parent 547a3fc commit b71c8ae
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 7 deletions.
2 changes: 0 additions & 2 deletions browser/build.mk
Expand Up @@ -14,9 +14,7 @@ endif

tier_app_dirs += $(MOZ_BRANDING_DIRECTORY)

ifdef MOZ_SERVICES_SYNC
tier_app_dirs += services
endif

ifdef MOZ_WEBAPP_RUNTIME
tier_app_dirs += webapprt
Expand Down
2 changes: 2 additions & 0 deletions browser/confvars.sh
Expand Up @@ -17,6 +17,8 @@ fi

MOZ_CHROME_FILE_FORMAT=omni
MOZ_SAFE_BROWSING=1
MOZ_SERVICES_AITC=1
MOZ_SERVICES_NOTIFICATIONS=1
MOZ_SERVICES_SYNC=1
MOZ_APP_VERSION=$FIREFOX_VERSION
MOZ_EXTENSIONS_DEFAULT=" gnomevfs"
Expand Down
15 changes: 11 additions & 4 deletions browser/installer/package-manifest.in
Expand Up @@ -447,15 +447,17 @@
@BINPATH@/components/nsINIProcessor.js
@BINPATH@/components/nsPrompter.manifest
@BINPATH@/components/nsPrompter.js
#ifdef MOZ_SERVICES_SYNC
@BINPATH@/components/SyncComponents.manifest
#ifdef MOZ_SERVICES_AITC
@BINPATH@/components/AitcComponents.manifest
@BINPATH@/components/Weave.js
@BINPATH@/components/Aitc.js
#endif
#ifdef MOZ_SERVICES_NOTIFICATIONS
@BINPATH@/components/NotificationsComponents.manifest
#endif
#ifdef MOZ_SERVICES_SYNC
@BINPATH@/components/SyncComponents.manifest
@BINPATH@/components/Weave.js
#endif
@BINPATH@/components/TelemetryPing.js
@BINPATH@/components/TelemetryPing.manifest
@BINPATH@/components/messageWakeupService.js
Expand Down Expand Up @@ -535,9 +537,14 @@
; All the pref files must be part of base to prevent migration bugs
@BINPATH@/@PREF_DIR@/firefox.js
@BINPATH@/@PREF_DIR@/firefox-branding.js
#ifdef MOZ_SERVICES_AITC
@BINPATH@/@PREF_DIR@/services-aitc.js
#endif
#ifdef MOZ_SERVICES_NOTIFICATIONS
@BINPATH@/@PREF_DIR@/services-notifications.js
#endif
#ifdef MOZ_SERVICES_SYNC
@BINPATH@/@PREF_DIR@/services-sync.js
@BINPATH@/@PREF_DIR@/services-aitc.js
#endif
@BINPATH@/greprefs.js
@BINPATH@/defaults/autoconfig/platform.js
Expand Down
2 changes: 2 additions & 0 deletions config/autoconf.mk.in
Expand Up @@ -627,6 +627,8 @@ HAVE_COMPILER_FLAG_MSSSE3 = @HAVE_COMPILER_FLAG_MSSSE3@

MOZ_THEME_FASTSTRIPE = @MOZ_THEME_FASTSTRIPE@

MOZ_SERVICES_AITC = @MOZ_SERVICES_AITC@
MOZ_SERVICES_NOTIFICATIONS = @MOZ_SERVICES_NOTIFICATIONS@
MOZ_SERVICES_SYNC = @MOZ_SERVICES_SYNC@

MOZ_WEBAPP_RUNTIME = @MOZ_WEBAPP_RUNTIME@
Expand Down
12 changes: 12 additions & 0 deletions configure.in
Expand Up @@ -8214,6 +8214,18 @@ if test "$MOZ_PLACES"; then
AC_DEFINE(MOZ_PLACES)
fi

dnl Build Apps in the Cloud (AITC) if required
AC_SUBST(MOZ_SERVICES_AITC)
if test -n "$MOZ_SERVICES_AITC"; then
AC_DEFINE(MOZ_SERVICES_AITC)
fi

dnl Build Notifications if required
AC_SUBST(MOZ_SERVICES_NOTIFICATIONS)
if test -n "$MOZ_SERVICES_NOTIFICATIONS"; then
AC_DEFINE(MOZ_SERVICES_NOTIFICATIONS)
fi

dnl Build Sync Services if required
AC_SUBST(MOZ_SERVICES_SYNC)
if test -n "$MOZ_SERVICES_SYNC"; then
Expand Down
12 changes: 11 additions & 1 deletion services/Makefile.in
Expand Up @@ -10,8 +10,18 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

PARALLEL_DIRS += common crypto

ifdef MOZ_SERVICES_AITC
PARALLEL_DIRS += aitc
endif

ifdef MOZ_SERVICES_NOTIFICATIONS
PARALLEL_DIRS += notifications
endif

ifdef MOZ_SERVICES_SYNC
PARALLEL_DIRS += aitc common crypto notifications sync
PARALLEL_DIRS += sync
endif

include $(topsrcdir)/config/rules.mk
2 changes: 2 additions & 0 deletions services/makefiles.sh
Expand Up @@ -5,6 +5,7 @@

add_makefiles "
services/Makefile
services/aitc/Makefile
services/common/Makefile
services/crypto/Makefile
services/crypto/component/Makefile
Expand All @@ -15,6 +16,7 @@ add_makefiles "

if [ "$ENABLE_TESTS" ]; then
add_makefiles "
services/aitc/tests/Makefile
services/common/tests/Makefile
services/crypto/tests/Makefile
services/notifications/tests/Makefile
Expand Down

0 comments on commit b71c8ae

Please sign in to comment.