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/.
6
topsrcdir = @top_srcdir@
10
include $(DEPTH)/config/autoconf.mk
20
tokenserverclient.js \
32
PREF_JS_EXPORTS = $(srcdir)/services-common.js
34
MODULES_FILES := $(modules)
35
MODULES_DEST = $(FINAL_TARGET)/modules/services-common
36
INSTALL_TARGETS += MODULES
38
TESTING_JS_MODULES := $(addprefix modules-testing/,$(testing_modules))
39
TESTING_JS_MODULE_DIR := services-common
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
storage_server_hostname := localhost
49
storage_server_port := 8080
51
head_path = $(srcdir)/tests/unit
54
$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
55
$(MOZ_BUILD_ROOT) run_storage_server.js --port $(storage_server_port)
57
# And the same thing for an AITC server.
58
aitc_server_hostname := localhost
59
aitc_server_port := 8080
62
$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
63
$(MOZ_BUILD_ROOT) run_aitc_server.js --port $(aitc_server_port)