2012-03-31 04:42:20 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
2013-12-12 07:26:38 +00:00
|
|
|
# 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/.
|
|
|
|
|
|
|
|
webidl_base := $(topsrcdir)/dom/webidl
|
2012-03-31 04:42:20 +00:00
|
|
|
|
2016-01-15 07:14:58 +00:00
|
|
|
ifdef COMPILE_ENVIRONMENT
|
|
|
|
|
2013-09-05 15:20:26 +00:00
|
|
|
# Generated by moz.build
|
|
|
|
include webidlsrcs.mk
|
2012-03-31 04:42:20 +00:00
|
|
|
|
2013-12-12 07:26:38 +00:00
|
|
|
# These come from webidlsrcs.mk.
|
2016-05-16 19:43:56 +00:00
|
|
|
# TODO Write directly into backend.mk (bug 1281618)
|
2013-12-12 07:26:38 +00:00
|
|
|
CPPSRCS += $(globalgen_sources) $(unified_binding_cpp_files)
|
2013-02-24 20:36:44 +00:00
|
|
|
|
2012-03-31 04:42:20 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2013-12-12 07:26:38 +00:00
|
|
|
# TODO This list should be emitted to a .pp file via
|
2016-05-16 19:43:56 +00:00
|
|
|
# GenerateCSS2PropertiesWebIDL.py (bug 1281614)
|
2013-12-12 07:26:38 +00:00
|
|
|
css2properties_dependencies = \
|
|
|
|
$(topsrcdir)/layout/style/nsCSSPropList.h \
|
|
|
|
$(topsrcdir)/layout/style/nsCSSPropAliasList.h \
|
|
|
|
$(webidl_base)/CSS2Properties.webidl.in \
|
2015-09-22 05:58:20 +00:00
|
|
|
$(topsrcdir)/layout/style/PythonCSSProps.h \
|
2013-12-12 07:26:38 +00:00
|
|
|
$(srcdir)/GenerateCSS2PropertiesWebIDL.py \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(GLOBAL_DEPS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-12-12 07:26:38 +00:00
|
|
|
CSS2Properties.webidl: $(css2properties_dependencies)
|
2012-08-24 04:08:09 +00:00
|
|
|
|
2013-12-12 07:26:38 +00:00
|
|
|
# Most of the logic for dependencies lives inside Python so it can be
|
|
|
|
# used by multiple build backends. We simply have rules to generate
|
|
|
|
# and include the .pp file.
|
|
|
|
#
|
|
|
|
# The generated .pp file contains all the important dependencies such as
|
|
|
|
# changes to .webidl or .py files should result in code generation being
|
2014-03-17 19:41:42 +00:00
|
|
|
# performed. But we do pull in file-lists.jon to catch file additions.
|
2013-12-12 07:26:38 +00:00
|
|
|
codegen_dependencies := \
|
2014-03-17 19:41:42 +00:00
|
|
|
file-lists.json \
|
2013-12-12 07:26:38 +00:00
|
|
|
$(nonstatic_webidl_files) \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(GLOBAL_DEPS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2017-07-25 15:17:32 +00:00
|
|
|
-include codegen.pp
|
2013-07-15 17:49:42 +00:00
|
|
|
|
2013-12-16 21:15:37 +00:00
|
|
|
codegen.pp: $(codegen_dependencies)
|
2013-12-12 07:26:38 +00:00
|
|
|
$(call py_action,webidl,$(srcdir))
|
2013-05-09 17:05:33 +00:00
|
|
|
@$(TOUCH) $@
|
|
|
|
|
2013-12-12 07:26:38 +00:00
|
|
|
.PHONY: compiletests
|
|
|
|
compiletests:
|
|
|
|
$(call SUBMAKE,libs,test)
|
|
|
|
|
2016-01-15 07:14:58 +00:00
|
|
|
endif
|
|
|
|
|
2012-03-31 04:42:20 +00:00
|
|
|
GARBAGE += \
|
2013-12-12 07:26:38 +00:00
|
|
|
codegen.pp \
|
|
|
|
codegen.json \
|
2012-03-31 04:42:20 +00:00
|
|
|
parser.out \
|
2013-12-12 07:26:38 +00:00
|
|
|
WebIDLGrammar.pkl \
|
|
|
|
$(wildcard *.h) \
|
|
|
|
$(wildcard *Binding.cpp) \
|
|
|
|
$(wildcard *Event.cpp) \
|
|
|
|
$(wildcard *-event.cpp) \
|
|
|
|
$(wildcard *.webidl) \
|
2012-03-31 04:42:20 +00:00
|
|
|
$(NULL)
|
2012-06-12 14:22:05 +00:00
|
|
|
|
2013-12-12 07:26:38 +00:00
|
|
|
DIST_GARBAGE += \
|
|
|
|
file-lists.json \
|
|
|
|
$(NULL)
|