Revert "Make nsIUserInfo component optional with --disable-userinfo at build time"

This commit is contained in:
Moonchild 2018-10-24 06:40:38 +02:00 • committed by Roy Tam
commit d0e0acb1fa
5 changed files with 17 additions and 40 deletions

View file

@ -18,14 +18,19 @@ UNIFIED_SOURCES += [
'StartupTimeline.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']
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'

View file

@ -4,10 +4,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
XPIDL_SOURCES += ['nsIAppStartup.idl']
if CONFIG['MOZ_USERINFO']:
XPIDL_SOURCES += ['nsIUserInfo.idl']
XPIDL_SOURCES += [
'nsIAppStartup.idl',
'nsIUserInfo.idl',
]
XPIDL_MODULE = 'appstartup'