2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 topsrcdir
= @top_srcdir@
20 include $(DEPTH
)/config
/autoconf.mk
29 EXPORTS_NAMESPACES
= mozilla
42 WindowIdentifier.
cpp \
46 ifeq (android
,$(MOZ_WIDGET_TOOLKIT
))
53 else ifeq (gonk
,$(MOZ_WIDGET_TOOLKIT
))
62 else ifeq (Linux
,$(OS_TARGET
))
65 FallbackScreenConfiguration.
cpp \
67 FallbackVibration.
cpp \
71 CPPSRCS
+= UPowerClient.
cpp
73 CPPSRCS
+= FallbackBattery.
cpp
75 else ifeq (WINNT
,$(OS_TARGET
))
79 FallbackVibration.
cpp \
80 FallbackScreenConfiguration.
cpp \
84 else ifeq (cocoa
,$(MOZ_WIDGET_TOOLKIT
))
87 FallbackVibration.
cpp \
89 FallbackScreenConfiguration.
cpp \
96 else ifneq (,$(filter OpenBSD NetBSD FreeBSD DragonFly
,$(OS_TARGET
)))
99 FallbackVibration.
cpp \
101 FallbackScreenConfiguration.
cpp \
104 ifdef MOZ_ENABLE_DBUS
105 CPPSRCS
+= UPowerClient.
cpp
107 CPPSRCS
+= FallbackBattery.
cpp
111 FallbackBattery.
cpp \
113 FallbackVibration.
cpp \
115 FallbackScreenConfiguration.
cpp \
120 # Fallbacks for backends implemented on Gonk only.
121 ifneq (gonk
,$(MOZ_WIDGET_TOOLKIT
)) #{
125 FallbackWakeLocks.
cpp \
127 FallbackScreenPower.
cpp \
128 FallbackProcessPriority.
cpp \
129 FallbackFMRadio.
cpp \
130 FallbackFactoryReset.
cpp \
134 # Fallbacks for backends implemented on Android only.
135 ifneq (android
,$(MOZ_WIDGET_TOOLKIT
))
136 CPPSRCS
+= FallbackNetwork.
cpp
139 include $(topsrcdir
)/config
/config.mk
140 include $(topsrcdir
)/ipc
/chromium
/chromium-config.mk
141 include $(topsrcdir
)/config
/rules.mk
143 CFLAGS
+= $(MOZ_DBUS_GLIB_CFLAGS
)
144 CXXFLAGS
+= $(MOZ_DBUS_GLIB_CFLAGS
)
146 ifeq (gonk
,$(MOZ_WIDGET_TOOLKIT
))
147 # So that we can call nsScreenManagerGonk::GetConfiguration().
148 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/gonk
149 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/xpwidgets