2011-10-05 15:15:45 -07:00
|
|
|
#
|
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/.
|
2011-10-05 15:15:45 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2011-10-05 15:15:45 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = \
|
|
|
|
$(srcdir) \
|
2011-11-02 08:28:26 -07:00
|
|
|
$(srcdir)/android \
|
2011-12-20 11:31:53 -08:00
|
|
|
$(srcdir)/gonk \
|
2011-10-05 15:15:45 -07:00
|
|
|
$(srcdir)/fallback \
|
|
|
|
$(srcdir)/sandbox \
|
2011-11-03 03:33:31 -07:00
|
|
|
$(srcdir)/linux \
|
2011-12-05 02:34:27 -08:00
|
|
|
$(srcdir)/windows \
|
2012-03-20 23:36:17 -07:00
|
|
|
$(srcdir)/cocoa \
|
2011-10-05 15:15:45 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2013-06-04 13:30:06 -07:00
|
|
|
relativesrcdir = @relativesrcdir@
|
|
|
|
|
2011-10-05 15:15:45 -07:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
LIBRARY_NAME = hal_s
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
2012-07-12 12:34:18 -07:00
|
|
|
FAIL_ON_WARNINGS = 1
|
2011-10-05 15:15:45 -07:00
|
|
|
|
2013-06-04 13:30:06 -07:00
|
|
|
MOCHITEST_BROWSER_FILES += \
|
|
|
|
tests/browser_alarms.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2013-07-01 09:32:40 -07:00
|
|
|
DISABLED_CMMSRCS += \
|
2012-03-20 23:36:17 -07:00
|
|
|
CocoaSensor.mm \
|
|
|
|
smslib.mm \
|
|
|
|
$(NULL)
|
2011-11-02 08:28:26 -07:00
|
|
|
endif
|
2011-10-05 15:15:45 -07:00
|
|
|
|
2011-08-03 05:06:00 -07:00
|
|
|
ifdef MOZ_GAMEPAD
|
|
|
|
LOCAL_INCLUDES = -I$(topsrcdir)/dom/base
|
|
|
|
endif
|
|
|
|
|
2011-10-05 15:15:45 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2011-11-03 03:33:31 -07:00
|
|
|
|
2013-03-27 18:20:27 -07:00
|
|
|
CFLAGS += $(GLIB_CFLAGS) $(MOZ_DBUS_GLIB_CFLAGS)
|
|
|
|
CXXFLAGS += $(GLIB_CFLAGS) $(MOZ_DBUS_GLIB_CFLAGS)
|
2012-05-08 14:36:07 -07:00
|
|
|
|
|
|
|
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
# So that we can call nsScreenManagerGonk::GetConfiguration().
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/gonk
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/xpwidgets
|
2013-05-02 08:42:52 -07:00
|
|
|
LOCAL_INCLUDES += -I$(ANDROID_SOURCE)/hardware/libhardware_legacy/include
|
2012-07-06 03:42:10 -07:00
|
|
|
endif
|