2012-05-21 11:12:37 +00:00
|
|
|
# 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/.
|
2010-06-25 12:25:31 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
2010-06-25 12:25:31 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = dom
|
2012-07-04 12:30:58 +00:00
|
|
|
XPIDL_MODULE = dom_system
|
2010-06-25 12:25:31 +00:00
|
|
|
LIBRARY_NAME = domsystem_s
|
|
|
|
LIBXUL_LIBRARY = 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
|
|
|
|
|
2012-01-09 23:18:23 +00:00
|
|
|
ifdef MOZ_B2G_RIL
|
2012-03-14 22:42:31 +00:00
|
|
|
DIRS += gonk
|
2012-01-09 23:18:23 +00:00
|
|
|
endif
|
2011-12-06 06:10:51 +00:00
|
|
|
|
2012-06-29 01:56:30 +00:00
|
|
|
DEFINES += -DDLL_PREFIX=\"$(DLL_PREFIX)\" -DDLL_SUFFIX=\"$(DLL_SUFFIX)\"
|
|
|
|
|
2012-07-04 12:30:58 +00:00
|
|
|
XPIDLSRCS = \
|
|
|
|
nsIOSFileConstantsService.idl \
|
|
|
|
$(NULL)
|
2012-06-29 01:56:30 +00:00
|
|
|
|
2010-06-25 12:25:31 +00:00
|
|
|
CPPSRCS = \
|
2012-03-25 00:29:57 +00:00
|
|
|
nsDeviceSensors.cpp \
|
2012-05-09 10:00:48 +00:00
|
|
|
OSFileConstants.cpp \
|
2011-02-09 19:05:00 +00:00
|
|
|
$(NULL)
|
2010-06-25 12:25:31 +00:00
|
|
|
|
2011-06-20 05:36:17 +00:00
|
|
|
# We fire the nsDOMDeviceAcceleration
|
2012-05-09 10:00:48 +00:00
|
|
|
LOCAL_INCLUDES += \
|
2012-05-18 08:29:40 +00:00
|
|
|
-I$(topsrcdir)/content/events/src \
|
2012-05-09 10:00:48 +00:00
|
|
|
-I$(topsrcdir)/dom/base \
|
|
|
|
-I$(topsrcdir)/dom/bindings \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-02-09 19:05:00 +00:00
|
|
|
# On Systems that have build in geolocation providers,
|
|
|
|
# we really do not need these.
|
|
|
|
ifneq (Android,$(OS_TARGET))
|
2010-07-14 17:09:25 +00:00
|
|
|
EXTRA_COMPONENTS = \
|
2011-02-09 19:05:00 +00:00
|
|
|
NetworkGeolocationProvider.js \
|
|
|
|
NetworkGeolocationProvider.manifest \
|
|
|
|
GPSDGeolocationProvider.js \
|
|
|
|
GPSDGeolocationProvider.manifest \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2010-07-14 17:09:25 +00:00
|
|
|
|
2012-05-09 10:00:48 +00:00
|
|
|
EXPORTS_NAMESPACES = mozilla
|
|
|
|
|
2010-06-25 12:25:31 +00:00
|
|
|
EXPORTS = \
|
2012-03-25 00:29:57 +00:00
|
|
|
nsDeviceSensors.h \
|
2011-02-09 19:05:00 +00:00
|
|
|
$(NULL)
|
2010-06-25 12:25:31 +00:00
|
|
|
|
2012-05-09 10:00:48 +00:00
|
|
|
EXPORTS_mozilla = \
|
|
|
|
OSFileConstants.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-03-09 18:40:43 +00:00
|
|
|
# We fire the nsDOMDeviceAcceleration
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/content/events/src
|
|
|
|
|
2012-06-29 01:56:53 +00:00
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
DIRS += tests
|
|
|
|
endif
|
|
|
|
|
2010-06-25 12:25:31 +00:00
|
|
|
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
|
2012-03-21 06:36:17 +00:00
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2010-06-25 12:25:31 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|