# 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
LIBRARY_NAME   = jsdomgeolocation_s
LIBXUL_LIBRARY = 1

# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1
FAIL_ON_WARNINGS := 1


CPPSRCS		= \
		nsGeolocation.cpp \
		nsGeoPosition.cpp \
		$(NULL)

LOCAL_INCLUDES = \
		-I$(topsrcdir)/dom/base \
		-I$(topsrcdir)/dom/ipc \
		-I$(topsrcdir)/content/base/src \
		-I$(topsrcdir)/content/events/src \
		$(NULL)

EXPORTS        = nsGeoPosition.h

ifdef MOZ_MAEMO_LIBLOCATION
LOCAL_INCLUDES  += $(MOZ_PLATFORM_MAEMO_CFLAGS) \
                   -I$(topsrcdir)/dom/system/unix \
                   $(NULL)
endif
ifdef MOZ_ENABLE_QTMOBILITY
LOCAL_INCLUDES  += $(MOZ_QT_CFLAGS) \
                   -I$(topsrcdir)/dom/system/unix \
                   $(NULL)
endif

ifeq ($(MOZ_WIDGET_TOOLKIT),android)
LOCAL_INCLUDES  += -I$(topsrcdir)/dom/system/android
endif

ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
LOCAL_INCLUDES  += -I$(topsrcdir)/dom/system/gonk
endif

EXPORTS         += nsGeoPositionIPCSerialiser.h

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

DEFINES += -D_IMPL_NS_LAYOUT
