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

PARALLEL_DIRS = \
  interfaces/base \
  interfaces/canvas \
  interfaces/core \
  interfaces/html \
  interfaces/events \
  interfaces/devicestorage \
  interfaces/contacts \
  interfaces/settings \
  interfaces/stylesheets \
  interfaces/sidebar \
  interfaces/css \
  interfaces/traversal \
  interfaces/range \
  interfaces/xbl \
  interfaces/xpath \
  interfaces/load-save \
  interfaces/xul \
  interfaces/storage \
  interfaces/json \
  interfaces/offline \
  interfaces/geolocation \
  interfaces/notification \
  interfaces/permission \
  interfaces/svg \
  interfaces/smil \
  interfaces/apps \
  $(NULL)

PARALLEL_DIRS += \
  apps \
  base \
  activities \
  bindings \
  battery \
  bluetooth \
  browser-element \
  contacts \
  phonenumberutils \
  alarm \
  devicestorage \
  encoding \
  file \
  media \
  messages \
  power \
  settings \
  sms \
  mms \
  src \
  time \
  locales \
  network \
  permission \
  plugins/base \
  plugins/ipc \
  indexedDB \
  system \
  ipc \
  identity \
  workers \
  camera \
  audiochannel \
  $(NULL)

ifdef MOZ_B2G_RIL
PARALLEL_DIRS += \
  telephony \
  wifi \
  icc \
  cellbroadcast \
  $(NULL)
endif

ifdef MOZ_B2G_FM
PARALLEL_DIRS += fm
endif

ifdef MOZ_PAY
PARALLEL_DIRS += \
  payment \
  $(NULL)
endif

# bindings/test is here, because it needs to build after bindings/, and
# we build subdirectories before ourselves.
TEST_DIRS += \
  tests \
  imptests \
  bindings/test \
  $(NULL)

ifneq (,$(filter gtk2 cocoa windows android qt os2,$(MOZ_WIDGET_TOOLKIT)))
TEST_DIRS += plugins/test
endif

include $(topsrcdir)/config/rules.mk
