2011-10-05 22:15:45 +00:00
|
|
|
#
|
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/.
|
2011-10-05 22:15:45 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
2011-10-05 22:15:45 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = \
|
|
|
|
$(srcdir) \
|
2011-11-02 15:28:26 +00:00
|
|
|
$(srcdir)/android \
|
2011-12-20 19:31:53 +00:00
|
|
|
$(srcdir)/gonk \
|
2011-10-05 22:15:45 +00:00
|
|
|
$(srcdir)/fallback \
|
|
|
|
$(srcdir)/sandbox \
|
2011-11-03 10:33:31 +00:00
|
|
|
$(srcdir)/linux \
|
2011-12-05 10:34:27 +00:00
|
|
|
$(srcdir)/windows \
|
2012-03-21 06:36:17 +00:00
|
|
|
$(srcdir)/cocoa \
|
2011-10-05 22:15:45 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
LIBRARY_NAME = hal_s
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
2012-07-12 19:34:18 +00:00
|
|
|
FAIL_ON_WARNINGS = 1
|
2011-10-05 22:15:45 +00:00
|
|
|
|
2013-04-23 21:54:15 +00:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2012-03-21 06:36:17 +00:00
|
|
|
CMMSRCS += \
|
|
|
|
CocoaSensor.mm \
|
|
|
|
smslib.mm \
|
|
|
|
$(NULL)
|
2011-11-02 15:28:26 +00:00
|
|
|
endif
|
2011-10-05 22:15:45 +00:00
|
|
|
|
2011-08-03 12:06:00 +00:00
|
|
|
ifdef MOZ_GAMEPAD
|
|
|
|
LOCAL_INCLUDES = -I$(topsrcdir)/dom/base
|
|
|
|
endif
|
|
|
|
|
2011-10-05 22:15:45 +00:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2011-11-03 10:33:31 +00:00
|
|
|
|
2013-03-28 01:20:27 +00:00
|
|
|
CFLAGS += $(GLIB_CFLAGS) $(MOZ_DBUS_GLIB_CFLAGS)
|
|
|
|
CXXFLAGS += $(GLIB_CFLAGS) $(MOZ_DBUS_GLIB_CFLAGS)
|
2012-05-08 21:36:07 +00: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 15:42:52 +00:00
|
|
|
LOCAL_INCLUDES += -I$(ANDROID_SOURCE)/hardware/libhardware_legacy/include
|
2012-07-06 10:42:10 +00:00
|
|
|
endif
|