dom/system/Makefile.in
author Nils Maier <maierman@web.de>
Wed, 28 Nov 2012 13:13:13 -0500
changeset 114378 0e5ca55005ae8ef9002ac12472740104fb79fd47
parent 114117 a0c8743ce12a3e1250dcd3d0efe283905b493c98
child 118821 743e8fac6d505fb4d091a073cf6fe5efef3571cf
permissions -rw-r--r--
Bug 719180: Part 2 - Add jar channel unit tests; r=taras

# 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
XPIDL_MODULE    = dom_system
LIBRARY_NAME    = domsystem_s
LIBXUL_LIBRARY  = 1
FAIL_ON_WARNINGS := 1

ifneq (,$(filter qt gtk2,$(MOZ_WIDGET_TOOLKIT)))
DIRS = unix
endif

ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT)))
DIRS = windows
endif

ifneq (,$(filter android,$(MOZ_WIDGET_TOOLKIT)))
DIRS = android
endif

ifdef MOZ_B2G_RIL
DIRS += gonk
endif

DEFINES += -DDLL_PREFIX=\"$(DLL_PREFIX)\" -DDLL_SUFFIX=\"$(DLL_SUFFIX)\"

XPIDLSRCS = \
  nsIOSFileConstantsService.idl \
  $(NULL)

CPPSRCS     = \
  nsDeviceSensors.cpp \
  OSFileConstants.cpp \
  $(NULL)

# We fire the nsDOMDeviceAcceleration
LOCAL_INCLUDES += \
  -I$(topsrcdir)/content/events/src \
  -I$(topsrcdir)/dom/base \
  -I$(topsrcdir)/dom/bindings \
  $(NULL)

# On Systems that have build in geolocation providers,
# we really do not need these.
ifneq (Android,$(OS_TARGET))
EXTRA_COMPONENTS = \
  NetworkGeolocationProvider.js \
  NetworkGeolocationProvider.manifest \
  GPSDGeolocationProvider.js \
  GPSDGeolocationProvider.manifest \
  $(NULL)
endif

ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
EXTRA_COMPONENTS = \
  NetworkGeolocationProvider.js \
  NetworkGeolocationProvider.manifest \
  $(NULL)
endif

EXPORTS_NAMESPACES = mozilla

EXPORTS     = \
  nsDeviceSensors.h \
  $(NULL)

EXPORTS_mozilla = \
  OSFileConstants.h \
  $(NULL)

# We fire the nsDOMDeviceAcceleration
LOCAL_INCLUDES += \
  -I$(topsrcdir)/content/events/src \
  -I$(topsrcdir)/js/xpconnect/loader \
  $(NULL)

ifdef ENABLE_TESTS
DIRS += tests
endif

include $(topsrcdir)/config/config.mk

# we don't want the shared lib, but we want to force the creation of a static lib.
LIBXUL_LIBRARY   = 1
FORCE_STATIC_LIB = 1
EXPORT_LIBRARY = 1
include $(topsrcdir)/ipc/chromium/chromium-config.mk
include $(topsrcdir)/config/rules.mk