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