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 \
133 # Fallbacks for backends implemented on Android only.
134 ifneq (android
,$(MOZ_WIDGET_TOOLKIT
))
135 CPPSRCS
+= FallbackNetwork.
cpp
138 include $(topsrcdir
)/config
/config.mk
139 include $(topsrcdir
)/ipc
/chromium
/chromium-config.mk
140 include $(topsrcdir
)/config
/rules.mk
142 CFLAGS
+= $(MOZ_DBUS_GLIB_CFLAGS
)
143 CXXFLAGS
+= $(MOZ_DBUS_GLIB_CFLAGS
)
145 ifeq (gonk
,$(MOZ_WIDGET_TOOLKIT
))
146 # So that we can call nsScreenManagerGonk::GetConfiguration().
147 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/gonk
148 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/xpwidgets