summaryrefslogtreecommitdiff
path: root/hal/moz.build
diff options
context:
space:
mode:
Diffstat (limited to 'hal/moz.build')
-rw-r--r--hal/moz.build13
1 files changed, 13 insertions, 0 deletions
diff --git a/hal/moz.build b/hal/moz.build
index 1aecdb750e..fefd56fcf1 100644
--- a/hal/moz.build
+++ b/hal/moz.build
@@ -40,6 +40,13 @@ elif CONFIG['OS_TARGET'] == 'WINNT':
'fallback/FallbackScreenConfiguration.cpp',
'windows/WindowsSensor.cpp',
]
+elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
+ UNIFIED_SOURCES += [
+ 'fallback/FallbackAlarm.cpp',
+ 'fallback/FallbackMemory.cpp',
+ 'fallback/FallbackPower.cpp',
+ 'fallback/FallbackScreenConfiguration.cpp',
+ ]
elif CONFIG['OS_TARGET'] in ('OpenBSD', 'NetBSD', 'FreeBSD', 'DragonFly'):
UNIFIED_SOURCES += [
'fallback/FallbackAlarm.cpp',
@@ -72,6 +79,12 @@ UNIFIED_SOURCES += [
'fallback/FallbackNetwork.cpp',
]
+if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
+ UNIFIED_SOURCES += [
+ 'cocoa/CocoaSensor.mm',
+ 'cocoa/smslib.mm',
+ ]
+
IPDL_SOURCES = [
'sandbox/PHal.ipdl',
]