1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/services/common/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,56 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 +# You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +modules := \ 1.9 + hawkclient.js \ 1.10 + hawkrequest.js \ 1.11 + storageservice.js \ 1.12 + stringbundle.js \ 1.13 + tokenserverclient.js \ 1.14 + utils.js \ 1.15 + $(NULL) 1.16 + 1.17 +pp_modules := \ 1.18 + async.js \ 1.19 + bagheeraclient.js \ 1.20 + observers.js \ 1.21 + rest.js \ 1.22 + $(NULL) 1.23 + 1.24 +testing_modules := \ 1.25 + bagheeraserver.js \ 1.26 + logging.js \ 1.27 + storageserver.js \ 1.28 + utils.js \ 1.29 + $(NULL) 1.30 + 1.31 +PREF_JS_EXPORTS = $(srcdir)/services-common.js 1.32 + 1.33 +MODULES_FILES := $(modules) 1.34 +MODULES_DEST = $(FINAL_TARGET)/modules/services-common 1.35 +INSTALL_TARGETS += MODULES 1.36 + 1.37 +TESTING_JS_MODULES := $(addprefix modules-testing/,$(testing_modules)) 1.38 +TESTING_JS_MODULE_DIR := services-common 1.39 + 1.40 +PP_JS_MODULES := $(pp_modules) 1.41 +PP_JS_MODULES_PATH = $(FINAL_TARGET)/modules/services-common 1.42 +PP_TARGETS += PP_JS_MODULES 1.43 + 1.44 +include $(topsrcdir)/config/rules.mk 1.45 + 1.46 +# What follows is a helper to launch a standalone storage server instance. 1.47 +# Most of the code lives in a Python script in the tests directory. If we 1.48 +# ever consolidate our Python code, and/or have a supplemental driver for the 1.49 +# build system, this can go away. 1.50 + 1.51 +server_port := 8080 1.52 + 1.53 +storage-server: 1.54 + $(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \ 1.55 + $(MOZ_BUILD_ROOT) run_storage_server.js --port $(server_port) 1.56 + 1.57 +bagheera-server: 1.58 + $(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \ 1.59 + $(MOZ_BUILD_ROOT) run_bagheera_server.js --port $(server_port)