Bug 1707290 [wpt PR 28671] - Auto-expand details elements for find-in-page, a=testonly
[gecko.git] / dom / bindings / Makefile.in
blobc2a1766be73612ff9af2abd1c3d9073af7dc7598
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 webidl_base := $(topsrcdir)/dom/webidl
7 ifdef COMPILE_ENVIRONMENT
9 # Akin to GLOBAL_DEPS, but set early enough that webidlsrcs.mk
10 # can make use of them as dependencies.
11 WEBIDL_PP_DEPS := \
12 backend.mk \
13 Makefile \
14 $(DEPTH)/config/autoconf.mk \
15 $(topsrcdir)/config/config.mk \
16 $(NULL)
18 # Generated by moz.build
19 include webidlsrcs.mk
21 # These come from webidlsrcs.mk.
22 # TODO Write directly into backend.mk (bug 1281618)
23 CPPSRCS += $(globalgen_sources) $(unified_binding_cpp_files)
25 include $(topsrcdir)/config/rules.mk
27 # Most of the logic for dependencies lives inside Python so it can be
28 # used by multiple build backends. We simply have rules to generate
29 # and include the .pp file.
31 # The generated .pp file contains all the important dependencies such as
32 # changes to .webidl or .py files should result in code generation being
33 # performed. But we do pull in file-lists.jon to catch file additions.
34 codegen_dependencies := \
35 file-lists.json \
36 $(nonstatic_webidl_files) \
37 $(GLOBAL_DEPS) \
38 $(NULL)
40 export:: webidl.stub
42 # codegen.pp is created as a side-effect of the webidl action
43 -include codegen.pp
45 webidl.stub: $(codegen_dependencies)
46 $(call py_action,webidl,$(srcdir))
47 @$(TOUCH) $@
49 .PHONY: compiletests
50 compiletests:
51 $(call SUBMAKE,libs,test)
53 endif