diff options
author | Gaming4JC <g4jc@bulletmail.org> | 2018-10-12 23:17:14 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@bulletmail.org> | 2018-10-12 23:17:14 -0400 |
commit | 19b6f2d9b71ca5f355dbf416ff599370c8ca0eb4 (patch) | |
tree | a3e0d6967c9c1a15e4d17eb7633979cd20ed0cdc /toolkit/components/startup/moz.build | |
parent | b927e0d5caad3a7703829bdc1093bfc67ef3fb97 (diff) | |
download | UXP-19b6f2d9b71ca5f355dbf416ff599370c8ca0eb4.tar UXP-19b6f2d9b71ca5f355dbf416ff599370c8ca0eb4.tar.gz UXP-19b6f2d9b71ca5f355dbf416ff599370c8ca0eb4.tar.lz UXP-19b6f2d9b71ca5f355dbf416ff599370c8ca0eb4.tar.xz UXP-19b6f2d9b71ca5f355dbf416ff599370c8ca0eb4.zip |
Issue #795 - Make nsIUserInfo component optional
This allows the nsIUserinfo component to be disabled with --disable-userinfo in mozconfig
at build time, but leaves it on by default to avoid any compatibility issues in existing
applications.
Diffstat (limited to 'toolkit/components/startup/moz.build')
-rw-r--r-- | toolkit/components/startup/moz.build | 21 |
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' |