DEPTH      = ../../../..
topsrcdir  = @top_srcdir@
srcdir     = @srcdir@
VPATH      = @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE = url-classifier
LIBRARY_NAME = urlclassifier_s
XPIDL_MODULE = url-classifier
LIBXUL_LIBRARY = 1
FORCE_STATIC_LIB = 1


REQUIRES = docshell \
           necko \
           storage \
           string \
           uriloader \
           xpcom \
           pipnss \
           sqlite3 \
           $(ZLIB_REQUIRES) \
           $(NULL)

CPPSRCS = \
          nsUrlClassifierDBService.cpp \
          nsUrlClassifierStreamUpdater.cpp \
          nsUrlClassifierUtils.cpp \
          nsUrlClassifierHashCompleter.cpp \
          $(NULL)

LOCAL_INCLUDES = \
                 -I$(srcdir)/../../build \
                 $(SQLITE_CFLAGS) \
                 $(NULL)


# Same as JS components that are run through the pre-processor.
EXTRA_PP_COMPONENTS = nsUrlClassifierLib.js \
                      nsUrlClassifierListManager.js \
                      $(NULL)

include $(topsrcdir)/config/rules.mk

