Bug 758849 - UPower isn't linux-only, give it a chance to build on BSDs at least. Add a section taking them into account. r=mounir

This commit is contained in:
Landry Breuil 2012-05-29 10:57:15 +02:00
parent 7b9a678b28
commit 9a4bda6314

View File

@ -87,6 +87,18 @@ CMMSRCS += \
CocoaSensor.mm \
smslib.mm \
$(NULL)
else ifneq (,$(filter OpenBSD NetBSD FreeBSD DragonFlyBSD,$(OS_TARGET)))
CPPSRCS += \
FallbackSensor.cpp \
FallbackVibration.cpp \
FallbackPower.cpp \
FallbackScreenConfiguration.cpp \
$(NULL)
ifdef MOZ_ENABLE_DBUS
CPPSRCS += UPowerClient.cpp
else
CPPSRCS += FallbackBattery.cpp
endif
else
CPPSRCS += \
FallbackBattery.cpp \