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.
14 $(DEPTH
)/config
/autoconf.mk \
15 $(topsrcdir
)/config
/config.mk \
18 # Generated by moz.build
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
:= \
36 $(nonstatic_webidl_files
) \
42 # codegen.pp is created as a side-effect of the webidl action
45 webidl.stub
: $(codegen_dependencies
)
46 $(call py_action
,webidl
,$(srcdir))
51 $(call SUBMAKE
,libs
,test)