2012-03-30 21:42:20 -07: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/.
|
|
|
|
|
|
|
|
DEPTH = ../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
relativesrcdir = dom/bindings/test
|
|
|
|
|
2012-05-23 09:44:48 -07:00
|
|
|
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.
|
|
|
|
|
2012-03-30 21:42:20 -07:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2012-05-23 09:44:48 -07: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 \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-03-30 21:42:20 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2012-05-23 09:44:48 -07: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 \
|
|
|
|
../ParserResults.pkl \
|
|
|
|
../Makefile \
|
|
|
|
$(GLOBAL_DEPS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
$(CPPSRCS): ../%Binding.cpp: $(bindinggen_dependencies) \
|
|
|
|
../%.webidl \
|
|
|
|
$(NULL)
|
|
|
|
$(MAKE) -C .. $*Binding.h
|
|
|
|
$(MAKE) -C .. $*Binding.cpp
|
|
|
|
|
2012-03-30 21:42:20 -07:00
|
|
|
_TEST_FILES = \
|
2012-05-02 06:28:17 -07:00
|
|
|
test_interfaceToString.html \
|
2012-03-30 21:42:20 -07:00
|
|
|
test_lookupGetter.html \
|
2012-05-02 21:35:38 -07:00
|
|
|
test_InstanceOf.html \
|
2012-05-02 05:49:43 -07:00
|
|
|
test_traceProtos.html \
|
2012-03-30 21:42:20 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2012-05-23 09:44:48 -07:00
|
|
|
|
2012-03-30 21:42:20 -07:00
|
|
|
libs:: $(_TEST_FILES)
|
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
|