services/common/Makefile.in
author Kartikaya Gupta <kgupta@mozilla.com>
Mon, 18 Jun 2012 22:29:52 -0400
changeset 96989 4180a4a2ebf2da0195b8899170e164b7d2d82112
parent 95738 bc696dba534d5b515653c8ee3f03dd8f68efb8a4
child 98761 ea5eedb6ff461e954fc7fe03e6cd6add214e4235
permissions -rw-r--r--
Bug 753665 - Ensure the mParent reference is nulled out when destroying a child window. r=blassey

# 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     = ../..
topsrcdir = @top_srcdir@
srcdir    = @srcdir@
VPATH     = @srcdir@

include $(DEPTH)/config/autoconf.mk

PREF_JS_EXPORTS = $(srcdir)/services-common.js

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

source_modules = $(foreach module,$(modules),$(srcdir)/$(module))
module_dir = $(FINAL_TARGET)/modules/services-common

libs::
	$(NSINSTALL) -D $(module_dir)
	$(NSINSTALL) $(source_modules) $(module_dir)

TEST_DIRS += tests

# TODO enable once build infra supports testing modules.
#TESTING_JS_MODULES := aitcserver.js storageserver.js
#TESTING_JS_MODULE_DIR := services-common

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

include $(topsrcdir)/config/rules.mk