2012-03-31 04:42:20 +00: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-05-23 16:44:48 +00:00
|
|
|
# Do NOT export this library. We don't actually want our test code
|
|
|
|
# being added to libxul or anything.
|
|
|
|
|
2013-04-09 22:39:44 +00:00
|
|
|
# pymake can't handle descending into dom/bindings several times simultaneously
|
|
|
|
ifdef .PYMAKE
|
|
|
|
.NOTPARALLEL:
|
|
|
|
endif
|
|
|
|
|
2012-05-23 16:44:48 +00:00
|
|
|
# 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))
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(topsrcdir)/js/xpconnect/src \
|
|
|
|
-I$(topsrcdir)/js/xpconnect/wrappers \
|
2012-06-11 20:04:34 +00:00
|
|
|
-I$(topsrcdir)/dom/bindings \
|
2012-05-23 16:44:48 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2012-03-31 04:42:20 +00:00
|
|
|
|
2012-05-23 16:44:48 +00:00
|
|
|
# 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 \
|
2013-05-09 17:05:33 +00:00
|
|
|
../ParserResults.pkl \
|
2012-06-11 22:21:35 +00:00
|
|
|
../parser/WebIDL.py \
|
2012-05-23 16:44:48 +00:00
|
|
|
../Makefile \
|
|
|
|
$(GLOBAL_DEPS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-08-04 07:43:57 +00:00
|
|
|
MOCHITEST_FILES := \
|
|
|
|
test_bug773326.html \
|
2012-06-21 07:11:07 +00:00
|
|
|
test_enums.html \
|
2012-06-26 03:37:47 +00:00
|
|
|
test_integers.html \
|
2012-05-02 13:28:17 +00:00
|
|
|
test_interfaceToString.html \
|
2012-03-31 04:42:20 +00:00
|
|
|
test_lookupGetter.html \
|
2012-05-03 04:35:38 +00:00
|
|
|
test_InstanceOf.html \
|
2013-02-22 09:25:24 +00:00
|
|
|
file_InstanceOf.html \
|
2012-05-02 12:49:43 +00:00
|
|
|
test_traceProtos.html \
|
2012-07-03 21:34:56 +00:00
|
|
|
test_forOf.html \
|
|
|
|
forOf_iframe.html \
|
2012-07-27 04:09:09 +00:00
|
|
|
test_sequence_wrapping.html \
|
2012-08-23 01:16:14 +00:00
|
|
|
file_bug775543.html \
|
2013-08-04 03:38:55 +00:00
|
|
|
file_bug707564.html \
|
2012-09-07 15:07:12 +00:00
|
|
|
test_bug788369.html \
|
2012-10-16 18:06:10 +00:00
|
|
|
test_bug742191.html \
|
2012-11-09 07:48:42 +00:00
|
|
|
test_namedNoIndexed.html \
|
2012-12-14 07:32:13 +00:00
|
|
|
test_bug759621.html \
|
2013-01-14 10:29:49 +00:00
|
|
|
test_queryInterface.html \
|
2013-03-05 18:41:24 +00:00
|
|
|
test_exceptionThrowing.html \
|
2013-03-20 16:22:25 +00:00
|
|
|
test_bug852846.html \
|
2013-04-16 17:02:57 +00:00
|
|
|
test_bug862092.html \
|
2013-05-02 18:38:20 +00:00
|
|
|
test_bug560072.html \
|
2013-05-06 02:36:38 +00:00
|
|
|
test_lenientThis.html \
|
2013-06-13 05:20:10 +00:00
|
|
|
test_ByteString.html \
|
2013-06-17 20:31:13 +00:00
|
|
|
test_exception_messages.html \
|
2013-08-04 03:38:54 +00:00
|
|
|
test_bug707564.html \
|
2013-08-31 04:21:28 +00:00
|
|
|
test_defineProperty.html \
|
2012-08-23 01:16:14 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MOCHITEST_CHROME_FILES = \
|
|
|
|
test_bug775543.html \
|
2013-08-04 03:38:55 +00:00
|
|
|
test_bug707564-chrome.html \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2013-03-10 07:58:21 +00:00
|
|
|
ifdef GNU_CC
|
|
|
|
CXXFLAGS += -Wno-uninitialized
|
|
|
|
endif
|
|
|
|
|
2012-07-26 16:38:03 +00:00
|
|
|
# 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
|
|
|
|
|
2013-05-09 17:05:33 +00:00
|
|
|
$(CPPSRCS): .BindingGen
|
2012-05-23 16:44:48 +00:00
|
|
|
|
2013-05-09 17:05:33 +00:00
|
|
|
.BindingGen: $(bindinggen_dependencies) \
|
|
|
|
$(test_webidl_files) \
|
|
|
|
$(NULL)
|
|
|
|
# The export phase in dom/bindings is what actually looks at
|
|
|
|
# dependencies and regenerates things as needed, so just go ahead and
|
|
|
|
# make that phase here. Also make our example interface files. If the
|
|
|
|
# target used here ever changes, change the conditional around
|
|
|
|
# $(CPPSRCS) in dom/bindings/Makefile.in.
|
|
|
|
$(MAKE) -C .. export TestExampleInterface-example TestExampleProxyInterface-example
|
|
|
|
@$(TOUCH) $@
|
2012-11-09 16:24:32 +00:00
|
|
|
|
2012-06-10 23:44:50 +00:00
|
|
|
check::
|
2012-07-02 20:32:42 +00:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
|
|
|
$(PLY_INCLUDE) $(srcdir)/../parser/runtests.py
|
2012-06-22 20:18:50 +00:00
|
|
|
|
|
|
|
check-interactive:
|
2012-07-02 20:32:42 +00:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
|
|
|
$(PLY_INCLUDE) $(srcdir)/../parser/runtests.py -q
|
2013-05-09 17:05:33 +00:00
|
|
|
|
|
|
|
# Since we define MOCHITEST_FILES, config/makefiles/mochitest.mk goes ahead and
|
|
|
|
# sets up a rule with libs:: in itm which makes our .DEFAULT_TARGET be "libs".
|
|
|
|
# Then ruls.mk does |.DEFAULT_TARGET ?= default| which leaves it as "libs". So
|
|
|
|
# if we make without an explicit target in this directory, we try to make
|
|
|
|
# "libs", but with a $(MAKECMDGOALS) of empty string. And then rules.mk
|
|
|
|
# helpfully does not include our *.o.pp files, since it includes them only if
|
|
|
|
# filtering some stuff out from $(MAKECMDGOALS) leaves it nonempty. The upshot
|
|
|
|
# is that if some headers change and we run make in this dir without an explicit
|
|
|
|
# target things don't get rebuilt.
|
|
|
|
#
|
|
|
|
# On the other hand, if we set .DEFAULT_TARGET to "default" explicitly here,
|
|
|
|
# then rules.mk will reinvoke make with "export" and "libs" but this time hey
|
|
|
|
# will be passed as explicit targets, show up in $(MAKECMDGOALS), and things
|
|
|
|
# will work. Do this at the end of our Makefile so the rest of the build system
|
|
|
|
# does not get a chance to muck with it after we set it.
|
|
|
|
.DEFAULT_GOAL := default
|
|
|
|
|
|
|
|
# Make sure to add .BindingGen to GARBAGE so we'll rebuild our example
|
|
|
|
# files if someone goes through and deletes GARBAGE all over, which
|
|
|
|
# will delete example files from our parent dir.
|
|
|
|
GARBAGE += \
|
|
|
|
.BindingGen \
|
|
|
|
$(NULL)
|