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

EXTRA_MDDEPEND_FILES = xpcAccEvents.pp

INSTALL_TARGETS += xpcaccevents
xpcaccevents_FILES := xpcAccEvents.h
xpcaccevents_DEST = $(DIST)/include
xpcaccevents_TARGET := export

include $(topsrcdir)/config/rules.mk

xpcAccEvents.cpp: $(srcdir)/AccEvents.conf \
                     $(srcdir)/AccEventGen.py \
                     $(LIBXUL_DIST)/sdk/bin/header.py \
                     $(LIBXUL_DIST)/sdk/bin/xpidl.py
	$(PYTHON) $(topsrcdir)/config/pythonpath.py \
	  -I$(LIBXUL_DIST)/sdk/bin \
	  $(srcdir)/AccEventGen.py \
	  -I $(DEPTH)/dist/idl \
	  --header-output xpcAccEvents.h \
	  --stub-output xpcAccEvents.cpp \
	  --makedepend-output $(MDDEPDIR)/xpcAccEvents.pp \
	  $(srcdir)/AccEvents.conf

xpcAccEvents.h: xpcAccEvents.cpp

GARBAGE += \
  xpcAccEvents.cpp \
  xpcAccEvents.h \
  $(null)
