mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
1b533138b8
CLOSED TREE
113 lines
3.1 KiB
Makefile
113 lines
3.1 KiB
Makefile
# 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@
|
|
|
|
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.
|
|
|
|
# pymake can't handle descending into dom/bindings several times simultaneously
|
|
ifdef .PYMAKE
|
|
.NOTPARALLEL:
|
|
endif
|
|
|
|
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 \
|
|
../Makefile \
|
|
$(GLOBAL_DEPS) \
|
|
$(NULL)
|
|
|
|
MOCHITEST_FILES := \
|
|
test_bug773326.html \
|
|
test_enums.html \
|
|
test_integers.html \
|
|
test_interfaceToString.html \
|
|
test_lookupGetter.html \
|
|
test_InstanceOf.html \
|
|
file_InstanceOf.html \
|
|
test_traceProtos.html \
|
|
test_forOf.html \
|
|
forOf_iframe.html \
|
|
test_sequence_wrapping.html \
|
|
file_bug775543.html \
|
|
test_bug788369.html \
|
|
test_bug742191.html \
|
|
test_namedNoIndexed.html \
|
|
test_bug759621.html \
|
|
test_queryInterface.html \
|
|
test_exceptionThrowing.html \
|
|
test_bug852846.html \
|
|
test_bug862092.html \
|
|
test_bug560072.html \
|
|
test_lenientThis.html \
|
|
$(NULL)
|
|
|
|
MOCHITEST_CHROME_FILES = \
|
|
test_bug775543.html \
|
|
$(NULL)
|
|
|
|
ifdef GNU_CC
|
|
CXXFLAGS += -Wno-uninitialized
|
|
endif
|
|
|
|
# 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 \
|
|
TestExampleInterface-example \
|
|
TestExampleProxyInterface-example \
|
|
$(NULL)
|
|
$(MAKE) -C .. $*Binding.h
|
|
$(MAKE) -C .. $*Binding.cpp
|
|
|
|
TestExampleInterface-example:
|
|
$(MAKE) -C .. TestExampleInterface-example
|
|
|
|
TestExampleProxyInterface-example:
|
|
$(MAKE) -C .. TestExampleProxyInterface-example
|
|
|
|
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
|