michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # Definitions used by constants.js. michael@0: weave_version := 1.33.0 michael@0: weave_id := {340c2bbc-ce74-4362-90b5-7c26312808ef} michael@0: michael@0: # Preprocess files. michael@0: SYNC_PP := modules/constants.js michael@0: SYNC_PP_FLAGS := \ michael@0: -Dweave_version=$(weave_version) \ michael@0: -Dweave_id='$(weave_id)' michael@0: SYNC_PP_PATH = $(FINAL_TARGET)/modules/services-sync michael@0: PP_TARGETS += SYNC_PP michael@0: michael@0: # The set of core JavaScript modules for Sync. These are copied as-is. michael@0: sync_modules := \ michael@0: addonsreconciler.js \ michael@0: addonutils.js \ michael@0: browserid_identity.js \ michael@0: engines.js \ michael@0: healthreport.jsm \ michael@0: identity.js \ michael@0: jpakeclient.js \ michael@0: keys.js \ michael@0: main.js \ michael@0: notifications.js \ michael@0: policies.js \ michael@0: record.js \ michael@0: resource.js \ michael@0: rest.js \ michael@0: service.js \ michael@0: status.js \ michael@0: userapi.js \ michael@0: util.js \ michael@0: $(NULL) michael@0: michael@0: # The set of JavaScript modules provide engines for Sync. These are michael@0: # copied as-is. michael@0: sync_engine_modules := \ michael@0: addons.js \ michael@0: bookmarks.js \ michael@0: clients.js \ michael@0: forms.js \ michael@0: history.js \ michael@0: passwords.js \ michael@0: prefs.js \ michael@0: tabs.js \ michael@0: $(NULL) michael@0: michael@0: sync_stage_modules := \ michael@0: cluster.js \ michael@0: declined.js \ michael@0: enginesync.js \ michael@0: $(NULL) michael@0: michael@0: sync_testing_modules := \ michael@0: fakeservices.js \ michael@0: rotaryengine.js \ michael@0: utils.js \ michael@0: fxa_utils.js \ michael@0: $(NULL) michael@0: michael@0: PREF_JS_EXPORTS := $(srcdir)/services-sync.js michael@0: michael@0: # Install JS module files. michael@0: SYNC_MAIN_FILES := $(addprefix modules/,$(sync_modules)) michael@0: SYNC_MAIN_DEST = $(FINAL_TARGET)/modules/services-sync michael@0: INSTALL_TARGETS += SYNC_MAIN michael@0: michael@0: SYNC_ENGINES_FILES := $(addprefix modules/engines/,$(sync_engine_modules)) michael@0: SYNC_ENGINES_DEST = $(FINAL_TARGET)/modules/services-sync/engines michael@0: INSTALL_TARGETS += SYNC_ENGINES michael@0: michael@0: SYNC_STAGES_FILES := $(addprefix modules/stages/,$(sync_stage_modules)) michael@0: SYNC_STAGES_DEST = $(FINAL_TARGET)/modules/services-sync/stages michael@0: INSTALL_TARGETS += SYNC_STAGES michael@0: michael@0: TESTING_JS_MODULES := $(addprefix modules-testing/,$(sync_testing_modules)) michael@0: TESTING_JS_MODULE_DIR := services/sync