services/common/Makefile.in
author Nick Alexander <nalexander@mozilla.com>
Mon, 15 Apr 2013 12:45:33 -0700
changeset 129158 05cf87d0435bb66c6fdecfec643694107942832e
parent 123689 c67860b9a9d3daf835838eb5a71577bd42fa308a
child 141416 f2528126addb5804de1b3ebfce42f164fb1c7a62
permissions -rw-r--r--
Bug 848519 - Part 2: Update Makefile.in and test harness. r=gavin

# 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 := \
  log4moz.js \
  storageservice.js \
  stringbundle.js \
  tokenserverclient.js \
  utils.js \
  $(NULL)

pp_modules := \
  async.js \
  bagheeraclient.js \
  observers.js \
  rest.js \
  $(NULL)

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

EXTRA_COMPONENTS := \
  servicesComponents.manifest \
  $(NULL)

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

PP_JS_MODULES := $(pp_modules)
PP_JS_MODULES_PATH = $(FINAL_TARGET)/modules/services-common
PP_TARGETS += PP_JS_MODULES

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.

server_port := 8080

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

bagheera-server:
	$(PYTHON) $(srcdir)/tests/run_server.py $(topsrcdir) \
		$(MOZ_BUILD_ROOT) run_bagheera_server.js --port $(server_port)