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/.
|
2010-06-21 17:05:08 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH := @DEPTH@
|
2012-07-17 10:45:13 -07:00
|
|
|
topsrcdir := @top_srcdir@
|
|
|
|
srcdir := @srcdir@
|
|
|
|
VPATH := @srcdir@
|
2010-06-21 17:05:08 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2011-02-04 12:29:53 -08:00
|
|
|
# Definitions used by constants.js.
|
2013-04-01 11:28:13 -07:00
|
|
|
weave_version := 1.25.0
|
2012-07-17 10:45:13 -07:00
|
|
|
weave_id := {340c2bbc-ce74-4362-90b5-7c26312808ef}
|
2011-02-04 12:29:53 -08:00
|
|
|
|
2012-08-09 13:12:26 -07:00
|
|
|
# Preprocess files.
|
|
|
|
SYNC_PP := modules/constants.js
|
|
|
|
SYNC_PP_FLAGS := \
|
2012-07-17 10:45:13 -07:00
|
|
|
-Dweave_version=$(weave_version) \
|
|
|
|
-Dweave_id=$(weave_id)
|
2012-08-09 13:12:26 -07:00
|
|
|
SYNC_PP_PATH = $(FINAL_TARGET)/modules/services-sync
|
|
|
|
PP_TARGETS += SYNC_PP
|
2011-02-04 12:29:53 -08:00
|
|
|
|
2012-08-09 13:12:26 -07:00
|
|
|
# The set of core JavaScript modules for Sync. These are copied as-is.
|
|
|
|
sync_modules := \
|
|
|
|
addonsreconciler.js \
|
|
|
|
addonutils.js \
|
|
|
|
engines.js \
|
|
|
|
identity.js \
|
|
|
|
jpakeclient.js \
|
|
|
|
keys.js \
|
|
|
|
main.js \
|
|
|
|
notifications.js \
|
|
|
|
policies.js \
|
|
|
|
record.js \
|
|
|
|
resource.js \
|
|
|
|
rest.js \
|
|
|
|
service.js \
|
|
|
|
status.js \
|
2012-08-29 14:43:39 -07:00
|
|
|
userapi.js \
|
2012-08-09 13:12:26 -07:00
|
|
|
util.js \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# The set of JavaScript modules provide engines for Sync. These are
|
|
|
|
# copied as-is.
|
|
|
|
sync_engine_modules := \
|
|
|
|
addons.js \
|
|
|
|
apps.js \
|
|
|
|
bookmarks.js \
|
|
|
|
clients.js \
|
|
|
|
forms.js \
|
|
|
|
history.js \
|
|
|
|
passwords.js \
|
|
|
|
prefs.js \
|
2013-02-17 17:49:25 -08:00
|
|
|
tabs.js \
|
2012-08-09 13:12:26 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2012-08-14 11:34:14 -07:00
|
|
|
sync_stage_modules := \
|
2012-08-14 11:34:20 -07:00
|
|
|
cluster.js \
|
2012-08-14 11:34:14 -07:00
|
|
|
enginesync.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-09-24 13:42:31 -07:00
|
|
|
sync_testing_modules := \
|
2012-09-24 13:42:54 -07:00
|
|
|
fakeservices.js \
|
2012-09-24 13:42:31 -07:00
|
|
|
rotaryengine.js \
|
2012-09-24 13:45:49 -07:00
|
|
|
utils.js \
|
2012-09-24 13:42:31 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2012-07-17 10:45:13 -07:00
|
|
|
EXTRA_COMPONENTS := \
|
2010-07-01 12:08:13 -07:00
|
|
|
SyncComponents.manifest \
|
2010-06-21 17:05:08 -07:00
|
|
|
Weave.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-07-17 10:45:13 -07:00
|
|
|
PREF_JS_EXPORTS := $(srcdir)/services-sync.js
|
2010-06-21 17:05:08 -07:00
|
|
|
|
2012-08-09 13:12:26 -07:00
|
|
|
# Install JS module files.
|
|
|
|
SYNC_MAIN_FILES := $(addprefix modules/,$(sync_modules))
|
|
|
|
SYNC_MAIN_DEST = $(FINAL_TARGET)/modules/services-sync
|
|
|
|
INSTALL_TARGETS += SYNC_MAIN
|
2010-06-21 17:05:08 -07:00
|
|
|
|
2012-08-09 13:12:26 -07:00
|
|
|
SYNC_ENGINES_FILES := $(addprefix modules/engines/,$(sync_engine_modules))
|
|
|
|
SYNC_ENGINES_DEST = $(FINAL_TARGET)/modules/services-sync/engines
|
|
|
|
INSTALL_TARGETS += SYNC_ENGINES
|
2010-06-21 17:05:08 -07:00
|
|
|
|
2012-08-14 11:34:14 -07:00
|
|
|
SYNC_STAGES_FILES := $(addprefix modules/stages/,$(sync_stage_modules))
|
|
|
|
SYNC_STAGES_DEST = $(FINAL_TARGET)/modules/services-sync/stages
|
|
|
|
INSTALL_TARGETS += SYNC_STAGES
|
|
|
|
|
2012-09-24 13:42:31 -07:00
|
|
|
TESTING_JS_MODULES := $(addprefix modules-testing/,$(sync_testing_modules))
|
|
|
|
TESTING_JS_MODULE_DIR := services/sync
|
|
|
|
|
2010-06-21 17:05:08 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|