2012-05-21 11:12:37 +00: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-22 00:05:08 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH := @DEPTH@
|
2012-07-17 17:45:13 +00:00
|
|
|
topsrcdir := @top_srcdir@
|
|
|
|
srcdir := @srcdir@
|
|
|
|
VPATH := @srcdir@
|
2010-06-22 00:05:08 +00:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2011-02-04 20:29:53 +00:00
|
|
|
# Definitions used by constants.js.
|
2012-08-27 19:21:46 +00:00
|
|
|
weave_version := 1.20.0
|
2012-07-17 17:45:13 +00:00
|
|
|
weave_channel := rel
|
|
|
|
weave_id := {340c2bbc-ce74-4362-90b5-7c26312808ef}
|
2011-02-04 20:29:53 +00:00
|
|
|
|
2012-08-09 20:12:26 +00:00
|
|
|
# Preprocess files.
|
|
|
|
SYNC_PP := modules/constants.js
|
|
|
|
SYNC_PP_FLAGS := \
|
2012-07-17 17:45:13 +00:00
|
|
|
-Dweave_version=$(weave_version) \
|
|
|
|
-Dweave_channel=$(weave_channel) \
|
|
|
|
-Dweave_id=$(weave_id)
|
2012-08-09 20:12:26 +00:00
|
|
|
SYNC_PP_PATH = $(FINAL_TARGET)/modules/services-sync
|
|
|
|
PP_TARGETS += SYNC_PP
|
2011-02-04 20:29:53 +00:00
|
|
|
|
2012-08-09 20:12:26 +00: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 \
|
|
|
|
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 \
|
|
|
|
tabs.js \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DIRS += locales
|
|
|
|
TEST_DIRS += tests
|
2010-06-22 00:05:08 +00:00
|
|
|
|
2012-07-17 17:45:13 +00:00
|
|
|
EXTRA_COMPONENTS := \
|
2010-07-01 19:08:13 +00:00
|
|
|
SyncComponents.manifest \
|
2010-06-22 00:05:08 +00:00
|
|
|
Weave.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-07-17 17:45:13 +00:00
|
|
|
PREF_JS_EXPORTS := $(srcdir)/services-sync.js
|
2010-06-22 00:05:08 +00:00
|
|
|
|
2012-08-09 20:12:26 +00: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-22 00:05:08 +00:00
|
|
|
|
2012-08-09 20:12:26 +00: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-22 00:05:08 +00:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|