accessible/src/xpcom/Makefile.in
author Bobby Holley <bobbyholley@gmail.com>
Fri, 26 Jul 2013 18:56:53 -0700
changeset 148087 43e8b15601b8c303e779d152bcbd1ff51841a3cc
parent 147249 d4f61f0a66fd084876fc00fbbfbae9532801d29a
child 150279 b7d6458d2a3cc8a7fa5417400d5a41355dd95c84
permissions -rw-r--r--
Bug 889714 - Reduce the number of places where we pull |env| off cx. r=mrbkap

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

DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

LIBXUL_LIBRARY = 1

# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1

EXTRA_MDDEPEND_FILES = xpcAccEvents.pp

include $(topsrcdir)/config/rules.mk

LOCAL_INCLUDES = \
  -I$(srcdir)/../base \
  -I$(srcdir)/../generic \
  $(NULL)

ifdef MOZ_ENABLE_GTK
LOCAL_INCLUDES += \
  -I$(srcdir)/../atk \
  $(NULL)
else
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
LOCAL_INCLUDES += \
  -I$(srcdir)/../windows/msaa \
  $(NULL)
else
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
LOCAL_INCLUDES += \
  -I$(srcdir)/../mac \
  $(NULL)
else
LOCAL_INCLUDES += \
  -I$(srcdir)/../other \
  $(NULL)
endif
endif
endif

ifneq ($(A11Y_LOG),0)
  DEFINES += -DA11Y_LOG
endif

xpcAccEvents.h: $(srcdir)/AccEvents.conf \
                   $(srcdir)/AccEventGen.py \
                   $(LIBXUL_DIST)/sdk/bin/header.py \
                   $(LIBXUL_DIST)/sdk/bin/xpidl.py \
                   $(DEPTH)/js/src/js-confdefs.h
	$(PYTHON) $(topsrcdir)/config/pythonpath.py \
	  -I$(LIBXUL_DIST)/sdk/bin \
	  $(srcdir)/AccEventGen.py \
	  -I $(DEPTH)/dist/idl \
	  --header-output xpcAccEvents.h \
	  $(srcdir)/AccEvents.conf

xpcAccEvents.cpp: $(srcdir)/AccEvents.conf \
                     $(srcdir)/AccEventGen.py \
                     $(LIBXUL_DIST)/sdk/bin/header.py \
                     $(LIBXUL_DIST)/sdk/bin/xpidl.py \
                     $(DEPTH)/js/src/js-confdefs.h
	$(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

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