services/common/Makefile.in
author Vicamo Yang <vyang@mozilla.com>
Wed, 31 Oct 2012 16:35:11 +0800
changeset 111876 5bf3abe91210f94d5d92ba95e114181e366d82ea
parent 110962 6fc02deb63dad3f73af99b488db40bf2dccb5880
child 113824 c73d02e3cc39e30a9517866048ff18189850cf7a
permissions -rw-r--r--
Backout 67cb43bb8865: Breaks B2G Marionette

# 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/.

DEPTH     = @DEPTH@
topsrcdir = @top_srcdir@
srcdir    = @srcdir@
VPATH     = @srcdir@

include $(DEPTH)/config/autoconf.mk

modules := \
  async.js \
  log4moz.js \
  observers.js \
  preferences.js \
  rest.js \
  storageservice.js \
  stringbundle.js \
  tokenserverclient.js \
  utils.js \
  $(NULL)

testing_modules := \
  aitcserver.js \
  logging.js \
  storageserver.js \
  utils.js \
  $(NULL)

TEST_DIRS += tests

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))
TESTING_JS_MODULE_DIR := services-common

include $(topsrcdir)/config/rules.mk

# 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.

storage_server_hostname := localhost
storage_server_port := 8080

head_path = $(srcdir)/tests/unit

storage-server:
	$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
	  $(MOZ_BUILD_ROOT) run_storage_server.js --port $(storage_server_port)

# And the same thing for an AITC server.
aitc_server_hostname := localhost
aitc_server_port := 8080

aitc-server:
	$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
		$(MOZ_BUILD_ROOT) run_aitc_server.js --port $(aitc_server_port)