#
# 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         = nkcache
LIBRARY_NAME   = nkcache_s
LIBXUL_LIBRARY = 1
XPIDL_MODULE   = necko_cache
GRE_MODULE     = 1

FORCE_STATIC_LIB = 1

XPIDLSRCS = \
  nsICache.idl \
  nsICacheEntryDescriptor.idl \
  nsICacheListener.idl \
  nsICacheService.idl \
  nsICacheSession.idl \
  nsICacheVisitor.idl \
  nsIDiskCacheStreamInternal.idl \
  $(NULL)

EXPORTS = \
  nsCacheService.h \
  $(NULL)

CPPSRCS = \
  nsCache.cpp \
  nsCacheEntry.cpp \
  nsCacheEntryDescriptor.cpp \
  nsCacheMetaData.cpp \
  nsCacheService.cpp \
  nsCacheSession.cpp \
  nsMemoryCacheDevice.cpp \
  nsDiskCacheBinding.cpp \
  nsDiskCacheBlockFile.cpp \
  nsDiskCacheDevice.cpp \
  nsDiskCacheDeviceSQL.cpp \
  nsDiskCacheEntry.cpp \
  nsDiskCacheMap.cpp \
  nsDiskCacheStreams.cpp \
  nsDeleteDir.cpp \
  nsApplicationCacheService.cpp \
  $(NULL)

LOCAL_INCLUDES = \
  -I$(srcdir)/../base/src \
  $(NULL)

include $(topsrcdir)/config/rules.mk

DEFINES += -DIMPL_NS_NET
