# 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 = browsercomps
XPIDL_MODULE = browsercompsbase

XPIDLSRCS = \
  nsIBrowserGlue.idl \
  nsIBrowserHandler.idl \
  $(NULL)

EXTRA_PP_COMPONENTS = \
  BrowserComponents.manifest \
  nsBrowserContentHandler.js \
  nsBrowserGlue.js \
  $(NULL)

EXTRA_JS_MODULES = distribution.js

PARALLEL_DIRS = \
  about \
  certerror \
  dirprovider \
  downloads \
  feeds \
  places \
  preferences \
  privatebrowsing \
  search \
  sessionstore \
  shell \
  sidebar \
  tabview \
  thumbnails \
  migration \
  $(NULL)

ifdef MOZ_SAFE_BROWSING
PARALLEL_DIRS += safebrowsing
endif

TEST_DIRS += test

DIRS += build

ifdef MOZILLA_OFFICIAL
DEFINES += -DOFFICIAL_BUILD=1
endif

include $(topsrcdir)/config/rules.mk
