2012-03-31 08:42:20 +04: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-08-04 22:26:44 +04:00
|
|
|
DEPTH = @DEPTH@
|
2012-03-31 08:42:20 +04:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2012-08-04 22:26:44 +04:00
|
|
|
relativesrcdir = @relativesrcdir@
|
2012-03-31 08:42:20 +04:00
|
|
|
|
2012-05-23 20:44:48 +04:00
|
|
|
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.
|
|
|
|
|
2012-03-31 08:42:20 +04:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2012-05-23 20:44:48 +04: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))
|
|
|
|
|
|
|
|
CPPSRCS := $(subst .webidl,Binding.cpp,$(test_webidl_files))
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(topsrcdir)/js/xpconnect/src \
|
|
|
|
-I$(topsrcdir)/js/xpconnect/wrappers \
|
2012-06-12 00:04:34 +04:00
|
|
|
-I$(topsrcdir)/dom/bindings \
|
2012-05-23 20:44:48 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2012-03-31 08:42:20 +04:00
|
|
|
|
2012-05-23 20:44:48 +04: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 \
|
2012-06-12 02:21:35 +04:00
|
|
|
../parser/WebIDL.py \
|
2012-05-23 20:44:48 +04:00
|
|
|
../Makefile \
|
|
|
|
$(GLOBAL_DEPS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-08-04 11:43:57 +04:00
|
|
|
MOCHITEST_FILES := \
|
|
|
|
test_bug773326.html \
|
2012-06-21 11:11:07 +04:00
|
|
|
test_enums.html \
|
2012-06-26 07:37:47 +04:00
|
|
|
test_integers.html \
|
2012-05-02 17:28:17 +04:00
|
|
|
test_interfaceToString.html \
|
2012-03-31 08:42:20 +04:00
|
|
|
test_lookupGetter.html \
|
2012-05-03 08:35:38 +04:00
|
|
|
test_InstanceOf.html \
|
2013-02-22 13:25:24 +04:00
|
|
|
file_InstanceOf.html \
|
2012-05-02 16:49:43 +04:00
|
|
|
test_traceProtos.html \
|
2012-07-04 01:34:56 +04:00
|
|
|
test_forOf.html \
|
|
|
|
forOf_iframe.html \
|
2012-07-27 08:09:09 +04:00
|
|
|
test_sequence_wrapping.html \
|
2012-08-23 05:16:14 +04:00
|
|
|
file_bug775543.html \
|
2012-09-07 19:07:12 +04:00
|
|
|
test_bug788369.html \
|
2012-10-16 22:06:10 +04:00
|
|
|
test_bug742191.html \
|
2012-11-09 11:48:42 +04:00
|
|
|
test_namedNoIndexed.html \
|
2012-12-14 11:32:13 +04:00
|
|
|
test_bug759621.html \
|
2013-01-14 14:29:49 +04:00
|
|
|
test_queryInterface.html \
|
2013-03-05 22:41:24 +04:00
|
|
|
test_exceptionThrowing.html \
|
2012-08-23 05:16:14 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MOCHITEST_CHROME_FILES = \
|
|
|
|
test_bug775543.html \
|
2012-03-31 08:42:20 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2013-03-10 11:58:21 +04:00
|
|
|
ifdef GNU_CC
|
|
|
|
CXXFLAGS += -Wno-uninitialized
|
|
|
|
endif
|
|
|
|
|
2012-07-26 20:38:03 +04: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
|
|
|
|
|
|
|
|
$(CPPSRCS): ../%Binding.cpp: $(bindinggen_dependencies) \
|
|
|
|
../%.webidl \
|
2012-10-18 05:17:16 +04:00
|
|
|
TestExampleInterface-example \
|
2012-11-09 20:24:32 +04:00
|
|
|
TestExampleProxyInterface-example \
|
2012-07-26 20:38:03 +04:00
|
|
|
$(NULL)
|
|
|
|
$(MAKE) -C .. $*Binding.h
|
|
|
|
$(MAKE) -C .. $*Binding.cpp
|
2012-05-23 20:44:48 +04:00
|
|
|
|
2012-10-18 05:17:16 +04:00
|
|
|
TestExampleInterface-example:
|
|
|
|
$(MAKE) -C .. TestExampleInterface-example
|
|
|
|
|
2012-11-09 20:24:32 +04:00
|
|
|
TestExampleProxyInterface-example:
|
|
|
|
$(MAKE) -C .. TestExampleProxyInterface-example
|
|
|
|
|
2012-06-11 03:44:50 +04:00
|
|
|
check::
|
2012-07-03 00:32:42 +04:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
|
|
|
$(PLY_INCLUDE) $(srcdir)/../parser/runtests.py
|
2012-06-23 00:18:50 +04:00
|
|
|
|
|
|
|
check-interactive:
|
2012-07-03 00:32:42 +04:00
|
|
|
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
|
|
|
$(PLY_INCLUDE) $(srcdir)/../parser/runtests.py -q
|