summaryrefslogtreecommitdiff
path: root/xpcom/base/moz.build
diff options
context:
space:
mode:
Diffstat (limited to 'xpcom/base/moz.build')
-rw-r--r--xpcom/base/moz.build17
1 files changed, 16 insertions, 1 deletions
diff --git a/xpcom/base/moz.build b/xpcom/base/moz.build
index 03a0fa43a7..a59528c576 100644
--- a/xpcom/base/moz.build
+++ b/xpcom/base/moz.build
@@ -28,6 +28,17 @@ XPIDL_SOURCES += [
'nsrootidl.idl',
]
+if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
+ XPIDL_SOURCES += [
+ 'nsIMacUtils.idl',
+ ]
+ EXPORTS.mozilla += [
+ 'MacHelpers.h',
+ ]
+ UNIFIED_SOURCES += [
+ 'MacHelpers.mm',
+ ]
+
XPIDL_MODULE = 'xpcom_base'
EXPORTS += [
@@ -125,7 +136,11 @@ if CONFIG['OS_ARCH'] == 'Linux':
'SystemMemoryReporter.cpp',
]
-if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
+if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
+ SOURCES += [
+ 'nsMacUtilsImpl.cpp',
+ ]
+elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
SOURCES += [
'nsCrashOnException.cpp',
]