Skip to content

Commit

Permalink
Bug 943988 - Build toolkit/xre in unified mode; r=bsmedberg
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan committed Dec 3, 2013
1 parent e797876 commit c36161a
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions toolkit/xre/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
EXPORTS += ['nsWindowsDllInterceptor.h']
SOURCES += [
UNIFIED_SOURCES += [
'nsNativeAppSupportWin.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
EXPORTS += ['MacQuirks.h']
SOURCES += [
UNIFIED_SOURCES += [
'nsCommandLineServiceMac.cpp',
]
SOURCES += [
UNIFIED_SOURCES += [
'MacApplicationDelegate.mm',
'MacAutoreleasePool.mm',
'MacLaunchHelper.mm',
Expand All @@ -50,48 +50,53 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
'nsNativeAppSupportOS2.cpp',
]
elif CONFIG['MOZ_ENABLE_GTK']:
SOURCES += [
UNIFIED_SOURCES += [
'nsNativeAppSupportUnix.cpp',
]
else:
SOURCES += [
UNIFIED_SOURCES += [
'nsNativeAppSupportDefault.cpp',
]

if CONFIG['MOZ_X11']:
SOURCES += [
UNIFIED_SOURCES += [
'nsX11ErrorHandler.cpp',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
SOURCES += [
UNIFIED_SOURCES += [
'nsAndroidStartup.cpp',
]

SOURCES += [
UNIFIED_SOURCES += [
'CreateAppData.cpp',
'nsAppRunner.cpp',
'nsConsoleWriter.cpp',
'nsEmbedFunctions.cpp',
'nsNativeAppSupportBase.cpp',
'nsSigHandlers.cpp',
'nsXREDirProvider.cpp',
'ProfileReset.cpp',
]

# nsAppRunner.cpp cannot be built in unified mode because it pulls in OS X system headers.
# nsEmbedFunctions.cpp cannot be built in unified mode because it pulls in X11 headers.
SOURCES += [
'nsAppRunner.cpp',
'nsEmbedFunctions.cpp',
]

if CONFIG['MOZ_GL_DEFAULT_PROVIDER'] == 'GLX':
SOURCES += [
UNIFIED_SOURCES += [
'glxtest.cpp',
]

if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
SOURCES += [
UNIFIED_SOURCES += [
'EventTracer.cpp',
]

if CONFIG['MOZ_UPDATER']:
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
SOURCES += [
UNIFIED_SOURCES += [
'nsUpdateDriver.cpp',
]

Expand Down

0 comments on commit c36161a

Please sign in to comment.