Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 # You can obtain one at http://mozilla.org/MPL/2.0/.
5 modules := \
6 hawkclient.js \
7 hawkrequest.js \
8 storageservice.js \
9 stringbundle.js \
10 tokenserverclient.js \
11 utils.js \
12 $(NULL)
14 pp_modules := \
15 async.js \
16 bagheeraclient.js \
17 observers.js \
18 rest.js \
19 $(NULL)
21 testing_modules := \
22 bagheeraserver.js \
23 logging.js \
24 storageserver.js \
25 utils.js \
26 $(NULL)
28 PREF_JS_EXPORTS = $(srcdir)/services-common.js
30 MODULES_FILES := $(modules)
31 MODULES_DEST = $(FINAL_TARGET)/modules/services-common
32 INSTALL_TARGETS += MODULES
34 TESTING_JS_MODULES := $(addprefix modules-testing/,$(testing_modules))
35 TESTING_JS_MODULE_DIR := services-common
37 PP_JS_MODULES := $(pp_modules)
38 PP_JS_MODULES_PATH = $(FINAL_TARGET)/modules/services-common
39 PP_TARGETS += PP_JS_MODULES
41 include $(topsrcdir)/config/rules.mk
43 # What follows is a helper to launch a standalone storage server instance.
44 # Most of the code lives in a Python script in the tests directory. If we
45 # ever consolidate our Python code, and/or have a supplemental driver for the
46 # build system, this can go away.
48 server_port := 8080
50 storage-server:
51 $(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
52 $(MOZ_BUILD_ROOT) run_storage_server.js --port $(server_port)
54 bagheera-server:
55 $(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
56 $(MOZ_BUILD_ROOT) run_bagheera_server.js --port $(server_port)