2012-04-06 06:26:06 +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/.
|
|
|
|
|
|
|
|
modules := \
|
2014-02-25 17:19:47 +00:00
|
|
|
hawkclient.js \
|
|
|
|
hawkrequest.js \
|
2012-06-29 20:30:05 +00:00
|
|
|
storageservice.js \
|
2012-04-06 06:26:06 +00:00
|
|
|
stringbundle.js \
|
2012-04-09 22:40:06 +00:00
|
|
|
tokenserverclient.js \
|
2012-04-06 06:26:06 +00:00
|
|
|
utils.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-01-30 15:07:22 +00:00
|
|
|
pp_modules := \
|
|
|
|
async.js \
|
|
|
|
bagheeraclient.js \
|
|
|
|
observers.js \
|
|
|
|
rest.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-08-01 20:50:55 +00:00
|
|
|
testing_modules := \
|
2012-11-08 00:25:09 +00:00
|
|
|
bagheeraserver.js \
|
2012-09-24 20:43:02 +00:00
|
|
|
logging.js \
|
2012-08-01 19:05:29 +00:00
|
|
|
storageserver.js \
|
2012-08-01 20:50:55 +00:00
|
|
|
utils.js \
|
2012-08-01 19:05:29 +00:00
|
|
|
$(NULL)
|
2013-01-10 22:02:38 +00:00
|
|
|
|
2014-05-06 01:28:55 +00:00
|
|
|
JS_EXPORTS_FILES := $(srcdir)/services-common.js
|
|
|
|
JS_EXPORTS_DEST = $(FINAL_TARGET)/$(PREF_DIR)
|
|
|
|
INSTALL_TARGETS += JS_EXPORTS
|
2012-08-09 20:12:29 +00:00
|
|
|
|
|
|
|
MODULES_FILES := $(modules)
|
|
|
|
MODULES_DEST = $(FINAL_TARGET)/modules/services-common
|
|
|
|
INSTALL_TARGETS += MODULES
|
|
|
|
|
|
|
|
TESTING_JS_MODULES := $(addprefix modules-testing/,$(testing_modules))
|
2012-06-29 20:28:17 +00:00
|
|
|
TESTING_JS_MODULE_DIR := services-common
|
2012-06-01 13:12:40 +00:00
|
|
|
|
2013-01-30 15:07:22 +00:00
|
|
|
PP_JS_MODULES := $(pp_modules)
|
2013-01-27 19:26:48 +00:00
|
|
|
PP_JS_MODULES_PATH = $(FINAL_TARGET)/modules/services-common
|
|
|
|
PP_TARGETS += PP_JS_MODULES
|
|
|
|
|
2012-08-09 20:12:29 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2012-06-01 13:12:40 +00:00
|
|
|
# What follows is a helper to launch a standalone storage server instance.
|
|
|
|
# Most of the code lives in a Python script in the tests directory. If we
|
|
|
|
# ever consolidate our Python code, and/or have a supplemental driver for the
|
|
|
|
# build system, this can go away.
|
|
|
|
|
2012-11-08 00:25:09 +00:00
|
|
|
server_port := 8080
|
2012-06-01 13:12:40 +00:00
|
|
|
|
|
|
|
storage-server:
|
|
|
|
$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
|
2012-11-08 00:25:09 +00:00
|
|
|
$(MOZ_BUILD_ROOT) run_storage_server.js --port $(server_port)
|
2012-06-01 13:12:43 +00:00
|
|
|
|
2012-11-08 00:25:09 +00:00
|
|
|
bagheera-server:
|
|
|
|
$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
|
|
|
|
$(MOZ_BUILD_ROOT) run_bagheera_server.js --port $(server_port)
|