2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# 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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-01-26 04:11:00 -08:00
|
|
|
DEPTH = ../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2010-01-26 04:11:00 -08:00
|
|
|
MODULE = update
|
|
|
|
|
|
|
|
XPIDLSRCS = nsIUpdateTimerManager.idl
|
|
|
|
|
2010-06-22 09:59:15 -07:00
|
|
|
EXTRA_PP_COMPONENTS = nsUpdateTimerManager.js nsUpdateTimerManager.manifest
|
2010-01-26 04:11:00 -08:00
|
|
|
|
|
|
|
ifdef MOZ_UPDATER
|
2012-03-21 15:50:53 -07:00
|
|
|
ifneq (android,$(MOZ_WIDGET_TOOLKIT))
|
2012-01-04 20:19:14 -08:00
|
|
|
DIRS += common
|
2010-09-14 13:38:28 -07:00
|
|
|
DIRS += updater
|
2010-09-10 16:48:52 -07:00
|
|
|
endif
|
2010-01-26 04:11:00 -08:00
|
|
|
|
|
|
|
XPIDLSRCS += nsIUpdateService.idl
|
|
|
|
|
|
|
|
EXTRA_PP_COMPONENTS += \
|
|
|
|
nsUpdateService.js \
|
|
|
|
nsUpdateServiceStub.js \
|
2010-06-22 09:59:15 -07:00
|
|
|
nsUpdateService.manifest \
|
2010-01-26 04:11:00 -08:00
|
|
|
$(NULL)
|
2012-01-10 08:28:50 -08:00
|
|
|
else
|
|
|
|
|
|
|
|
# If only the maintenance service is installed and not
|
|
|
|
# the updater, then the maintenance service may still be
|
|
|
|
# used for other things. We need to build update/common
|
|
|
|
# which the maintenance service uses.
|
|
|
|
ifdef MOZ_MAINTENANCE_SERVICE
|
2012-03-21 15:50:53 -07:00
|
|
|
ifneq (android,$(MOZ_WIDGET_TOOLKIT))
|
2012-01-10 08:28:50 -08:00
|
|
|
DIRS += common
|
|
|
|
endif
|
|
|
|
endif
|
2010-01-26 04:11:00 -08:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-02-10 13:06:56 -08:00
|
|
|
TEST_DIRS += test_timermanager
|
2009-02-08 13:44:02 -08:00
|
|
|
# Update tests require the updater binary
|
|
|
|
ifdef MOZ_UPDATER
|
2012-02-10 13:06:56 -08:00
|
|
|
TEST_DIRS += test
|
2012-01-04 20:19:15 -08:00
|
|
|
ifdef MOZ_MAINTENANCE_SERVICE
|
2012-02-10 13:06:56 -08:00
|
|
|
TEST_DIRS += test_svc
|
2008-08-16 22:40:34 -07:00
|
|
|
endif
|
2009-02-08 13:44:02 -08:00
|
|
|
endif
|
2008-08-16 22:40:34 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|