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 file, michael@0: # You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: modules := \ michael@0: hawkclient.js \ michael@0: hawkrequest.js \ michael@0: storageservice.js \ michael@0: stringbundle.js \ michael@0: tokenserverclient.js \ michael@0: utils.js \ michael@0: $(NULL) michael@0: michael@0: pp_modules := \ michael@0: async.js \ michael@0: bagheeraclient.js \ michael@0: observers.js \ michael@0: rest.js \ michael@0: $(NULL) michael@0: michael@0: testing_modules := \ michael@0: bagheeraserver.js \ michael@0: logging.js \ michael@0: storageserver.js \ michael@0: utils.js \ michael@0: $(NULL) michael@0: michael@0: PREF_JS_EXPORTS = $(srcdir)/services-common.js michael@0: michael@0: MODULES_FILES := $(modules) michael@0: MODULES_DEST = $(FINAL_TARGET)/modules/services-common michael@0: INSTALL_TARGETS += MODULES michael@0: michael@0: TESTING_JS_MODULES := $(addprefix modules-testing/,$(testing_modules)) michael@0: TESTING_JS_MODULE_DIR := services-common michael@0: michael@0: PP_JS_MODULES := $(pp_modules) michael@0: PP_JS_MODULES_PATH = $(FINAL_TARGET)/modules/services-common michael@0: PP_TARGETS += PP_JS_MODULES michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: # What follows is a helper to launch a standalone storage server instance. michael@0: # Most of the code lives in a Python script in the tests directory. If we michael@0: # ever consolidate our Python code, and/or have a supplemental driver for the michael@0: # build system, this can go away. michael@0: michael@0: server_port := 8080 michael@0: michael@0: storage-server: michael@0: $(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \ michael@0: $(MOZ_BUILD_ROOT) run_storage_server.js --port $(server_port) michael@0: michael@0: bagheera-server: michael@0: $(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \ michael@0: $(MOZ_BUILD_ROOT) run_bagheera_server.js --port $(server_port)