js/xpconnect/src/Makefile.in
author Phil Ringnalda <philringnalda@gmail.com>
Tue, 03 Sep 2013 21:55:21 -0700
changeset 153398 49c8cb0df3378b6301db79b632ca145429148ec6
parent 153394 cc6f66e761d86fc1f4b89e08eb8413fd95b56110
child 153401 ae9f95fc113658570613ede2924602f81d38ed69
permissions -rw-r--r--
Back out cc6f66e761d8 (bug 896797) for Windows build bustage CLOSED TREE

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

LOCAL_INCLUDES = \
		-I$(srcdir)/../wrappers \
		-I$(srcdir)/../loader \
		-I$(topsrcdir)/caps/include \
		-I$(topsrcdir)/content/base/src \
		-I$(topsrcdir)/content/base/public \
		-I$(topsrcdir)/content/events/src \
		-I$(topsrcdir)/content/html/content/src \
		-I$(topsrcdir)/content/html/document/src \
		-I$(topsrcdir)/content/svg/content/src \
		-I$(topsrcdir)/layout/style \
		-I$(topsrcdir)/layout/base \
		-I$(topsrcdir)/dom/base \
		-I$(topsrcdir)/xpcom/ds \
		-I$(topsrcdir)/js/ipc \
		$(NULL)

ifdef MOZ_B2G_BT
LOCAL_INCLUDES += \
    -I$(topsrcdir)/dom/bluetooth \
    $(NULL)
endif

SHARED_LIBRARY_LIBS = \
  ../loader/$(LIB_PREFIX)jsloader_s.$(LIB_SUFFIX) \
  ../wrappers/$(LIB_PREFIX)xpcwrappers_s.$(LIB_SUFFIX) \
  $(NULL)

EXTRA_MDDEPEND_FILES = dom_qsgen.pp dictionary_helper_gen.pp event_impl_gen.pp

include $(topsrcdir)/config/rules.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk

DEFINES += \
  -DJSFILE \
  -DJS_THREADSAFE \
  -DEXPORT_XPC_API \
  $(NULL)

ifdef MOZ_JSDEBUGGER
DEFINES += -DMOZ_JSDEBUGGER
endif

nsXPConnect.$(OBJ_SUFFIX): dom_quickstubs.h

XPCJSRuntime.$(OBJ_SUFFIX): dom_quickstubs.h

dom_quickstubs.h: dom_quickstubs.cpp

dom_quickstubs.cpp: $(srcdir)/dom_quickstubs.qsconf \
                    $(srcdir)/qsgen.py \
                    $(LIBXUL_DIST)/sdk/bin/header.py \
                    $(LIBXUL_DIST)/sdk/bin/xpidl.py \
                    $(DEPTH)/js/src/js-confdefs.h
	$(PYTHON) $(topsrcdir)/config/pythonpath.py \
	  $(PLY_INCLUDE) \
	  -I$(LIBXUL_DIST)/sdk/bin \
	  $(srcdir)/qsgen.py \
	  --idlpath=$(DEPTH)/dist/idl \
	  --header-output dom_quickstubs.h \
	  --stub-output dom_quickstubs.cpp \
	  --makedepend-output $(MDDEPDIR)/dom_qsgen.pp \
	  $(ENABLE_TRACEABLE_FLAGS) \
	  $(srcdir)/dom_quickstubs.qsconf

DictionaryHelpers.$(OBJ_SUFFIX): DictionaryHelpers.cpp

DictionaryHelpers.h: DictionaryHelpers.cpp

DictionaryHelpers.cpp: $(srcdir)/dictionary_helper_gen.conf \
                       event_impl_gen.conf \
                       $(srcdir)/dictionary_helper_gen.py \
                       $(LIBXUL_DIST)/sdk/bin/header.py \
                       $(LIBXUL_DIST)/sdk/bin/xpidl.py \
                       $(DEPTH)/js/src/js-confdefs.h
	$(PYTHON) $(topsrcdir)/config/pythonpath.py \
	  $(PLY_INCLUDE) \
	  -I$(LIBXUL_DIST)/sdk/bin \
	  $(srcdir)/dictionary_helper_gen.py \
	  -I $(DEPTH)/dist/idl \
	  --header-output DictionaryHelpers.h \
	  --stub-output DictionaryHelpers.cpp \
	  --makedepend-output $(MDDEPDIR)/dictionary_helper_gen.pp \
	  $(srcdir)/dictionary_helper_gen.conf \
	  event_impl_gen.conf

GeneratedEvents.$(OBJ_SUFFIX): GeneratedEvents.h \
                               GeneratedEvents.cpp

event_impl_gen.conf : $(srcdir)/event_impl_gen.conf.in
	$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $^ > event_impl_gen.conf

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

GeneratedEventClasses.h: GeneratedEvents.cpp

GeneratedEvents.cpp: DictionaryHelpers.h \
                     GeneratedEvents.h \
                     $(srcdir)/dictionary_helper_gen.conf \
                     event_impl_gen.conf \
                     $(srcdir)/dictionary_helper_gen.py \
                     $(srcdir)/event_impl_gen.py \
                     $(LIBXUL_DIST)/sdk/bin/header.py \
                     $(LIBXUL_DIST)/sdk/bin/xpidl.py \
                     $(DEPTH)/js/src/js-confdefs.h
	$(PYTHON) $(topsrcdir)/config/pythonpath.py \
	  $(PLY_INCLUDE) \
	  -I$(LIBXUL_DIST)/sdk/bin \
	  $(srcdir)/event_impl_gen.py \
	  -I $(DEPTH)/dist/idl \
	  --class-declarations GeneratedEventClasses.h \
	  --stub-output GeneratedEvents.cpp \
	  --makedepend-output $(MDDEPDIR)/event_impl_gen.pp \
	  event_impl_gen.conf

GeneratedEvents-webidl: event_impl_gen.conf
	$(PYTHON) $(topsrcdir)/config/pythonpath.py \
	  $(PLY_INCLUDE) \
	  -I$(LIBXUL_DIST)/sdk/bin \
	  $(srcdir)/event_impl_gen.py \
	  -I $(DEPTH)/dist/idl \
	  --webidltarget=$(top_srcdir)/dom/webidl \
	  event_impl_gen.conf

_EXTRA_EXPORT_FILES = \
  DictionaryHelpers.h \
  GeneratedEventClasses.h \
  $(NULL)

libs:: $(_EXTRA_EXPORT_FILES)
	$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/dist/include

GARBAGE += \
		dom_quickstubs.h \
		dom_quickstubs.cpp \
		DictionaryHelpers.h \
		DictionaryHelpers.cpp \
		GeneratedEvents.h \
		GeneratedEvents.cpp \
		GeneratedEventClasses.h \
		event_impl_gen.conf \
		xpidl_debug \
		$(MDDEPDIR)/dom_qsgen.pp \
		$(MDDEPDIR)/dombindingsgen.pp \
		$(MDDEPDIR)/dictionary_helper_gen.pp \
		$(MDDEPDIR)/event_impl_gen.pp \
		$(wildcard $(topsrcdir)/other-licenses/ply/ply/*.pyc) \
		$(NULL)