2012-04-05 23:26:06 -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/.
|
|
|
|
|
|
|
|
modules := \
|
2014-02-25 09:19:47 -08:00
|
|
|
hawkclient.js \
|
|
|
|
hawkrequest.js \
|
2012-06-29 13:30:05 -07:00
|
|
|
storageservice.js \
|
2012-04-05 23:26:06 -07:00
|
|
|
stringbundle.js \
|
2012-04-09 15:40:06 -07:00
|
|
|
tokenserverclient.js \
|
2012-04-05 23:26:06 -07:00
|
|
|
utils.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-01-30 07:07:22 -08:00
|
|
|
pp_modules := \
|
|
|
|
async.js \
|
|
|
|
bagheeraclient.js \
|
|
|
|
observers.js \
|
|
|
|
rest.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-08-01 13:50:55 -07:00
|
|
|
testing_modules := \
|
2012-11-07 16:25:09 -08:00
|
|
|
bagheeraserver.js \
|
2012-09-24 13:43:02 -07:00
|
|
|
logging.js \
|
2012-08-01 12:05:29 -07:00
|
|
|
storageserver.js \
|
2012-08-01 13:50:55 -07:00
|
|
|
utils.js \
|
2012-08-01 12:05:29 -07:00
|
|
|
$(NULL)
|
2013-01-10 14:02:38 -08:00
|
|
|
|
2012-08-09 13:12:29 -07:00
|
|
|
PREF_JS_EXPORTS = $(srcdir)/services-common.js
|
|
|
|
|
|
|
|
MODULES_FILES := $(modules)
|
|
|
|
MODULES_DEST = $(FINAL_TARGET)/modules/services-common
|
|
|
|
INSTALL_TARGETS += MODULES
|
|
|
|
|
|
|
|
TESTING_JS_MODULES := $(addprefix modules-testing/,$(testing_modules))
|
2012-06-29 13:28:17 -07:00
|
|
|
TESTING_JS_MODULE_DIR := services-common
|
2012-06-01 06:12:40 -07:00
|
|
|
|
2013-01-30 07:07:22 -08:00
|
|
|
PP_JS_MODULES := $(pp_modules)
|
2013-01-27 11:26:48 -08:00
|
|
|
PP_JS_MODULES_PATH = $(FINAL_TARGET)/modules/services-common
|
|
|
|
PP_TARGETS += PP_JS_MODULES
|
|
|
|
|
2012-08-09 13:12:29 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2012-06-01 06:12:40 -07: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-07 16:25:09 -08:00
|
|
|
server_port := 8080
|
2012-06-01 06:12:40 -07:00
|
|
|
|
|
|
|
storage-server:
|
|
|
|
$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
|
2012-11-07 16:25:09 -08:00
|
|
|
$(MOZ_BUILD_ROOT) run_storage_server.js --port $(server_port)
|
2012-06-01 06:12:43 -07:00
|
|
|
|
2012-11-07 16:25:09 -08:00
|
|
|
bagheera-server:
|
|
|
|
$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
|
|
|
|
$(MOZ_BUILD_ROOT) run_bagheera_server.js --port $(server_port)
|