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/.
|
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2012-04-05 23:26:06 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
modules := \
|
|
|
|
async.js \
|
2012-11-07 16:25:09 -08:00
|
|
|
bagheeraclient.js \
|
2012-04-05 23:26:06 -07:00
|
|
|
log4moz.js \
|
|
|
|
observers.js \
|
|
|
|
preferences.js \
|
|
|
|
rest.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)
|
|
|
|
|
2012-08-01 13:50:55 -07:00
|
|
|
testing_modules := \
|
2012-08-01 12:05:29 -07:00
|
|
|
aitcserver.js \
|
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
|
|
|
|
|
|
|
EXTRA_COMPONENTS := \
|
|
|
|
servicesComponents.manifest \
|
|
|
|
$(NULL)
|
2012-08-01 12:05:29 -07:00
|
|
|
|
2012-08-09 13:12:29 -07:00
|
|
|
TEST_DIRS += tests
|
2012-08-01 13:50:55 -07: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
|
|
|
|
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
|
|
|
|
|
|
|
aitc-server:
|
|
|
|
$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
|
2012-11-07 16:25:09 -08:00
|
|
|
$(MOZ_BUILD_ROOT) run_aitc_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)
|