# 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

MODULE           = dom
LIBRARY_NAME     = dom_browserelement_s
XPIDL_MODULE     = dom_browserelement
LIBXUL_LIBRARY   = 1
FORCE_STATIC_LIB = 1
FAIL_ON_WARNINGS := 1

include $(topsrcdir)/dom/dom-config.mk

TEST_DIRS += mochitest

XPIDLSRCS = \
  nsIOpenWindowEventDetail.idl \
  $(NULL)

EXPORTS = \
  nsOpenWindowEventDetail.h \
  $(NULL)

EXPORTS_NAMESPACES = mozilla
EXPORTS_mozilla = \
  BrowserElementParent.h \
  $(NULL)

CPPSRCS = \
  nsOpenWindowEventDetail.cpp \
  BrowserElementParent.cpp \
  $(NULL)

EXTRA_COMPONENTS = \
  BrowserElementParent.js \
  BrowserElementParent.manifest \
  $(NULL)

EXTRA_JS_MODULES = \
  BrowserElementPromptService.jsm \
  $(NULL)

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

INCLUDES	+= \
		-I$(topsrcdir)/dom/base \
		-I$(topsrcdir)/dom/ipc \
		-I$(topsrcdir)/content/base/src \
		$(NULL)
