# 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     = dom_time_s
XPIDL_MODULE     = dom_time
LIBXUL_LIBRARY   = 1
FORCE_STATIC_LIB = 1
FAIL_ON_WARNINGS := 1

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

EXPORTS_NAMESPACES = mozilla/dom/time

CPPSRCS = \
  TimeManager.cpp \
  TimeService.cpp \
  TimeChangeObserver.cpp \
  DateCacheCleaner.cpp \
  $(NULL)

EXPORTS_mozilla/dom/time = \
  TimeService.h \
  TimeChangeObserver.h \
  DateCacheCleaner.h \
  $(NULL)

XPIDLSRCS = \
  nsIDOMNavigatorTime.idl \
  nsIDOMTimeManager.idl \
  nsITimeService.idl \
  $(NULL)

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