Bug 571902 - Land sync and crypto components on trunk [r=mconnor r=ted]

Hook 'services' into the build system with MOZ_SERVICES_SYNC not-yet-set as a browser confvar.
This commit is contained in:
Philipp von Weitershausen 2010-06-21 17:07:13 -07:00
Родитель ad9a8c7276
Коммит 68ba9af9dc
8 изменённых файлов: 30 добавлений и 0 удалений

Просмотреть файл

@ -113,3 +113,6 @@ done
if test -z "$LIBXUL_SDK"; then
. "${srcdir}/toolkit/toolkit-makefiles.sh"
fi
# Services makefiles
. "${srcdir}/services/makefiles.sh"

Просмотреть файл

@ -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

Просмотреть файл

@ -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
@ -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/*
@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -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@

Просмотреть файл

@ -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=

Просмотреть файл

@ -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