Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Bug 571902 - Land sync and crypto components on trunk [r=mconnor r=ted]
Browse files Browse the repository at this point in the history
Hook 'services' into the build system with MOZ_SERVICES_SYNC not-yet-set as a browser confvar.
  • Loading branch information
philikon committed Jun 22, 2010
1 parent ad9a8c7 commit 68ba9af
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions allmakefiles.sh
Expand Up @@ -113,3 +113,6 @@ done
if test -z "$LIBXUL_SDK"; then
. "${srcdir}/toolkit/toolkit-makefiles.sh"
fi

# Services makefiles
. "${srcdir}/services/makefiles.sh"
1 change: 1 addition & 0 deletions browser/confvars.sh
Expand Up @@ -45,6 +45,7 @@ MOZ_STATIC_BUILD_UNSUPPORTED=1
# always enabled for form history
MOZ_MORKREADER=1
MOZ_SAFE_BROWSING=1
MOZ_SERVICES_SYNC=
MOZ_APP_VERSION=$FIREFOX_VERSION
MOZ_EXTENSIONS_DEFAULT=" gnomevfs reporter"
# MOZ_APP_DISPLAYNAME will be set by branding/configure.sh
Expand Down
11 changes: 11 additions & 0 deletions browser/installer/package-manifest.in
Expand Up @@ -219,6 +219,9 @@
@BINPATH@/components/satchel.xpt
@BINPATH@/components/saxparser.xpt
@BINPATH@/components/sessionstore.xpt
#ifdef MOZ_SERVICES_SYNC
@BINPATH@/components/services-crypto.xpt
#endif
@BINPATH@/components/shellservice.xpt
@BINPATH@/components/shistory.xpt
@BINPATH@/components/spellchecker.xpt
Expand Down Expand Up @@ -334,6 +337,11 @@
#endif
@BINPATH@/components/nsINIProcessor.js
@BINPATH@/components/nsPrompter.js
#ifdef MOZ_SERVICES_SYNC
@BINPATH@/components/FormNotifier.js
@BINPATH@/components/Weave.js
@BINPATH@/components/WeaveCrypto.js
#endif

; Modules
@BINPATH@/modules/*
Expand Down Expand Up @@ -380,6 +388,9 @@
@BINPATH@/@PREF_DIR@/firefox.js
@BINPATH@/@PREF_DIR@/firefox-branding.js
@BINPATH@/@PREF_DIR@/channel-prefs.js
#ifdef MOZ_SERVICES_SYNC
@BINPATH@/@PREF_DIR@/services-sync.js
#endif
@BINPATH@/greprefs.js
@BINPATH@/defaults/autoconfig/platform.js
@BINPATH@/defaults/autoconfig/prefcalls.js
Expand Down
1 change: 1 addition & 0 deletions browser/locales/Makefile.in
Expand Up @@ -184,6 +184,7 @@ install:: $(addsuffix .xml,$(SEARCH_PLUGINS))
libs-%:
$(NSINSTALL) -D $(DIST)/install
@$(MAKE) -C ../../toolkit/locales libs-$* BOTH_MANIFESTS=1
@$(MAKE) -C ../../services/sync/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
@$(MAKE) -C ../../extensions/reporter/locales libs AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
@$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=defaults/pref BOTH_MANIFESTS=1
Expand Down
1 change: 1 addition & 0 deletions browser/locales/l10n.ini
Expand Up @@ -11,6 +11,7 @@ dirs = browser
# non-central apps might want to use %(topsrcdir)s here, or other vars
# RFE: that needs to be supported by compare-locales, too, though
toolkit = toolkit/locales/l10n.ini
services_sync = services/sync/locales/l10n.ini

[extras]
dirs = extensions/spellcheck
2 changes: 2 additions & 0 deletions config/autoconf.mk.in
Expand Up @@ -657,6 +657,8 @@ MOZ_SPLASHSCREEN = @MOZ_SPLASHSCREEN@

MOZ_THEME_FASTSTRIPE = @MOZ_THEME_FASTSTRIPE@

MOZ_SERVICES_SYNC = @MOZ_SERVICES_SYNC@

MOZ_OFFICIAL_BRANDING = @MOZ_OFFICIAL_BRANDING@

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

dnl Build Sync Services if required
AC_SUBST(MOZ_SERVICES_SYNC)
if test -n "$MOZ_SERVICES_SYNC"; then
AC_DEFINE(MOZ_SERVICES_SYNC)
fi

dnl ========================================================
if test "$MOZ_DEBUG" || test "$NS_TRACE_MALLOC"; then
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS=
Expand Down
5 changes: 5 additions & 0 deletions toolkit/toolkit-tiers.mk
Expand Up @@ -271,6 +271,11 @@ ifdef MOZ_MAPINFO
tier_platform_dirs += tools/codesighs
endif

ifdef MOZ_SERVICES_SYNC
tier_platform_dirs += services/crypto
tier_platform_dirs += services/sync
endif

ifdef ENABLE_TESTS
tier_platform_dirs += testing/mochitest
tier_platform_dirs += testing/xpcshell
Expand Down

0 comments on commit 68ba9af

Please sign in to comment.