summaryrefslogtreecommitdiffstats
path: root/toolkit/components/startup/moz.build
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-10-26 09:04:16 +0200
committerGitHub <noreply@github.com>2018-10-26 09:04:16 +0200
commit4f59678acd9b48284b6b23b3d6863a33739dfdff (patch)
tree92d5ed317cd80b4b72a6374347ad1d120d3912d1 /toolkit/components/startup/moz.build
parentf5b13e91d18a414dae5e384b377ead66bc8d898f (diff)
parent6a2ff38f0fb2ed00e96a1a3d4cd2c655774e87fe (diff)
downloadUXP-4f59678acd9b48284b6b23b3d6863a33739dfdff.tar
UXP-4f59678acd9b48284b6b23b3d6863a33739dfdff.tar.gz
UXP-4f59678acd9b48284b6b23b3d6863a33739dfdff.tar.lz
UXP-4f59678acd9b48284b6b23b3d6863a33739dfdff.tar.xz
UXP-4f59678acd9b48284b6b23b3d6863a33739dfdff.zip
Merge pull request #854 from g4jc/nsuserinfo
Issue #795 - Make nsIUserInfo component optional
Diffstat (limited to 'toolkit/components/startup/moz.build')
-rw-r--r--toolkit/components/startup/moz.build21
1 files changed, 8 insertions, 13 deletions
diff --git a/toolkit/components/startup/moz.build b/toolkit/components/startup/moz.build
index dbd580384..5f290b783 100644
--- a/toolkit/components/startup/moz.build
+++ b/toolkit/components/startup/moz.build
@@ -18,19 +18,14 @@ UNIFIED_SOURCES += [
'StartupTimeline.cpp',
]
-if CONFIG['OS_ARCH'] == 'WINNT':
- # This file cannot be built in unified mode because of name clashes with Windows headers.
- SOURCES += [
- 'nsUserInfoWin.cpp',
- ]
-elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
- UNIFIED_SOURCES += [
- 'nsUserInfoMac.mm',
- ]
-else:
- UNIFIED_SOURCES += [
- 'nsUserInfoUnix.cpp',
- ]
+if CONFIG['MOZ_USERINFO']:
+ if CONFIG['OS_ARCH'] == 'WINNT':
+ # This file cannot be built in unified mode because of name clashes with Windows headers.
+ SOURCES += ['nsUserInfoWin.cpp']
+ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
+ UNIFIED_SOURCES += ['nsUserInfoMac.mm']
+ else:
+ UNIFIED_SOURCES += ['nsUserInfoUnix.cpp']
FINAL_LIBRARY = 'xul'