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
|
|
|
|
2011-02-04 12:29:53 -08:00
|
|
|
# Definitions used by constants.js.
|
2014-06-09 11:50:02 -07:00
|
|
|
weave_version := 1.35.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) \
|
2013-12-02 13:34:21 -08:00
|
|
|
-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 \
|
2013-10-02 14:48:08 -07:00
|
|
|
browserid_identity.js \
|
2012-08-09 13:12:26 -07:00
|
|
|
engines.js \
|
2014-02-05 08:08:14 -08:00
|
|
|
healthreport.jsm \
|
2012-08-09 13:12:26 -07:00
|
|
|
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 \
|
|
|
|
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 \
|
2014-03-13 16:37:25 -07:00
|
|
|
declined.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 \
|
2014-03-16 15:39:31 -07:00
|
|
|
fxa_utils.js \
|
2012-09-24 13:42:31 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2014-05-05 18:28:55 -07:00
|
|
|
JS_EXPORTS_FILES := $(srcdir)/services-sync.js
|
|
|
|
JS_EXPORTS_DEST = $(FINAL_TARGET)/$(PREF_DIR)
|
|
|
|
INSTALL_TARGETS += JS_EXPORTS
|
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
|