dom/bindings/Makefile.in
author Bryce Van Dyk <bvandyk@mozilla.com>
Mon, 14 Jan 2019 16:40:29 +0000
changeset 513748 bd1e99a6325ade1c8839e8e7b7310b76609e3c0a
parent 472478 359cecde7c3ea604dc7f55ae958b9de420924f44
child 539509 ba230c7ab42169c4dc6b45c737117a4750af48ee
permissions -rw-r--r--
Bug 1516669 - Check init value of clearkey WMF decoder for failure. r=cpearce We weren't checking this value and it was causing compiler warnings. Instead this change means we check the value and log an error if init has failed. Differential Revision: https://phabricator.services.mozilla.com/D15519

# 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/.

webidl_base := $(topsrcdir)/dom/webidl

ifdef COMPILE_ENVIRONMENT

# Generated by moz.build
include webidlsrcs.mk

# These come from webidlsrcs.mk.
# TODO Write directly into backend.mk (bug 1281618)
CPPSRCS += $(globalgen_sources) $(unified_binding_cpp_files)

include $(topsrcdir)/config/rules.mk

# 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
# performed. But we do pull in file-lists.jon to catch file additions.
codegen_dependencies := \
  file-lists.json \
  $(nonstatic_webidl_files) \
  $(GLOBAL_DEPS) \
  $(NULL)

export:: webidl.stub

# codegen.pp is created as a side-effect of the webidl action
-include codegen.pp

webidl.stub: $(codegen_dependencies)
	$(call py_action,webidl,$(srcdir))
	@$(TOUCH) $@

.PHONY: compiletests
compiletests:
	$(call SUBMAKE,libs,test)

endif

GARBAGE += \
  webidl.stub \
  codegen.pp \
  codegen.json \
  parser.out \
  WebIDLGrammar.pkl \
  $(wildcard *.h) \
  $(wildcard *Binding.cpp) \
  $(wildcard *Event.cpp) \
  $(wildcard *-event.cpp) \
  $(wildcard *.webidl) \
  $(NULL)

DIST_GARBAGE += \
  file-lists.json \
  $(NULL)