# 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            = ../..
topsrcdir        = @top_srcdir@
srcdir           = @srcdir@
VPATH            = @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE           = dom
LIBRARY_NAME     = domfm_s
XPIDL_MODULE     = dom_fm
LIBXUL_LIBRARY   = 1
FORCE_STATIC_LIB = 1

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

CPPSRCS += \
  FMRadio.cpp \
  nsFMRadioSettings.cpp \
  $(NULL)

XPIDLSRCS = \
  nsIDOMFMRadio.idl \
  nsIFMRadio.idl \
  $(NULL)

EXTRA_COMPONENTS =      \
  DOMFMRadioChild.js       \
  DOMFMRadio.manifest \
  $(NULL)

EXTRA_JS_MODULES =   \
  DOMFMRadioParent.jsm \
  $(NULL)

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

XPIDL_FLAGS += \
  -I$(topsrcdir)/dom/interfaces/events \
  $(NULL)

