dom/bindings/test/Makefile.in
author Boris Zbarsky <bzbarsky@mit.edu>
Wed, 08 Aug 2012 23:47:04 -0400
changeset 105034 e3e9040a6eb9f8e7d78fe91c98ac80d42bd06aa8
parent 104569 393b9e4e7404384c2abfaa91d8af4b46e512da86
child 106225 ea2cf37ddf54274777564f0da81f4e58cdd78d81
permissions -rw-r--r--
Bug 703855. Don't update performance timing or navigation timing state during document.open. r=jst

# 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@
relativesrcdir = @relativesrcdir@

MODULE           = dom
LIBRARY_NAME     = dombindings_test_s
LIBXUL_LIBRARY   = 1
FORCE_STATIC_LIB = 1
# Do NOT export this library.  We don't actually want our test code
# being added to libxul or anything.

include $(DEPTH)/config/autoconf.mk

# Need this to find all our DOM source files.
include $(topsrcdir)/dom/dom-config.mk

# And need this for $(test_webidl_files)
include $(topsrcdir)/dom/webidl/WebIDL.mk

# But the webidl actually lives in our parent dir
test_webidl_files := $(addprefix ../,$(test_webidl_files))

CPPSRCS := $(subst .webidl,Binding.cpp,$(test_webidl_files))

LOCAL_INCLUDES += \
  -I$(topsrcdir)/js/xpconnect/src \
  -I$(topsrcdir)/js/xpconnect/wrappers \
  -I$(topsrcdir)/dom/bindings \
  $(NULL)


# If you change bindinggen_dependencies here, change it in
# dom/bindings/Makefile.in too.  But note that we include ../Makefile
# here manually, since $(GLOBAL_DEPS) won't cover it.
bindinggen_dependencies := \
  ../BindingGen.py \
  ../Bindings.conf \
  ../Configuration.py \
  ../Codegen.py \
  ../parser/WebIDL.py \
  ../ParserResults.pkl \
  ../Makefile \
  $(GLOBAL_DEPS) \
  $(NULL)

MOCHITEST_FILES := \
  test_bug773326.html \
  test_enums.html \
  test_integers.html \
  test_interfaceToString.html \
  test_lookupGetter.html \
  test_InstanceOf.html \
  test_traceProtos.html \
  test_forOf.html \
  forOf_iframe.html \
  test_sequence_wrapping.html \
  $(NULL)

# Include rules.mk before any of our targets so our first target is coming from
# rules.mk and running make with no target in this dir does the right thing.
include $(topsrcdir)/config/rules.mk

$(CPPSRCS): ../%Binding.cpp: $(bindinggen_dependencies) \
                             ../%.webidl \
                             $(NULL)
	$(MAKE) -C .. $*Binding.h
	$(MAKE) -C .. $*Binding.cpp

check::
	PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
	  $(PLY_INCLUDE) $(srcdir)/../parser/runtests.py

check-interactive:
	PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
	  $(PLY_INCLUDE) $(srcdir)/../parser/runtests.py -q