Bug 1273998 - Proper export of printing IPDL with --disable-printing r?bobowen,?glandium
MozReview-Commit-ID: GNUrl6LKcMm
--- a/dom/ipc/ContentChild.cpp
+++ b/dom/ipc/ContentChild.cpp
@@ -102,17 +102,19 @@
#include "nsAnonymousTemporaryFile.h"
#include "nsISpellChecker.h"
#include "nsClipboardProxy.h"
#include "nsISystemMessageCache.h"
#include "nsDirectoryService.h"
#include "nsDirectoryServiceUtils.h"
#include "nsDirectoryServiceDefs.h"
#include "nsContentPermissionHelper.h"
+#ifdef NS_PRINTING
#include "nsPrintingProxy.h"
+#endif
#include "IHistory.h"
#include "nsNetUtil.h"
#include "base/message_loop.h"
#include "base/process_util.h"
#include "base/task.h"
--- a/layout/moz.build
+++ b/layout/moz.build
@@ -17,16 +17,21 @@ DIRS += [
'xul',
'ipc',
'mathml',
'inspector',
'tools/recording',
'reftests',
]
+
+IPDL_SOURCES = [
+ 'printing/ipc/PRemotePrintJob.ipdl',
+]
+
if CONFIG['NS_PRINTING']:
DIRS += ['printing']
TEST_DIRS += [
'tools/reftest',
]
DIRS += ['build', 'media']
--- a/layout/printing/moz.build
+++ b/layout/printing/moz.build
@@ -23,19 +23,15 @@ UNIFIED_SOURCES += [
'nsPagePrintTimer.cpp',
'nsPrintData.cpp',
'nsPrintEngine.cpp',
'nsPrintObject.cpp',
'nsPrintPreviewListener.cpp',
'PrintTranslator.cpp',
]
-IPDL_SOURCES = [
- 'ipc/PRemotePrintJob.ipdl',
-]
-
include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../base',
'/dom/base',
]
--- a/widget/moz.build
+++ b/widget/moz.build
@@ -90,17 +90,16 @@ EXPORTS += [
'CompositorWidgetProxy.h',
'ContentHelper.h',
'GfxDriverInfo.h',
'GfxInfoBase.h',
'GfxInfoCollector.h',
'InputData.h',
'nsBaseScreen.h',
'nsBaseWidget.h',
- 'nsDeviceContextSpecProxy.h',
'nsIDeviceContextSpec.h',
'nsIKeyEventInPluginCallback.h',
'nsIPluginWidget.h',
'nsIRollupListener.h',
'nsIWidget.h',
'nsIWidgetListener.h',
'nsWidgetInitData.h',
'nsWidgetsCID.h',
@@ -146,24 +145,22 @@ UNIFIED_SOURCES += [
'InputData.cpp',
'nsBaseAppShell.cpp',
'nsBaseDragService.cpp',
'nsBaseScreen.cpp',
'nsClipboardHelper.cpp',
'nsClipboardProxy.cpp',
'nsColorPickerProxy.cpp',
'nsContentProcessWidgetFactory.cpp',
- 'nsDeviceContextSpecProxy.cpp',
'nsDragServiceProxy.cpp',
'nsFilePickerProxy.cpp',
'nsHTMLFormatConverter.cpp',
'nsIdleService.cpp',
'nsIWidgetListener.cpp',
'nsPrimitiveHelpers.cpp',
- 'nsPrintSession.cpp',
'nsPrintSettingsImpl.cpp',
'nsScreenManagerProxy.cpp',
'nsTransferable.cpp',
'nsXPLookAndFeel.cpp',
'PluginWidgetProxy.cpp',
'PuppetBidiKeyboard.cpp',
'PuppetWidget.cpp',
'ScreenProxy.cpp',
@@ -171,20 +168,23 @@ UNIFIED_SOURCES += [
'TextEventDispatcher.cpp',
'VsyncDispatcher.cpp',
'WidgetEventImpl.cpp',
'WidgetUtils.cpp',
]
if CONFIG['MOZ_XUL'] and CONFIG['NS_PRINTING']:
EXPORTS += [
+ 'nsDeviceContextSpecProxy.h',
'nsPrintOptionsImpl.h',
]
UNIFIED_SOURCES += [
+ 'nsDeviceContextSpecProxy.cpp',
'nsPrintOptionsImpl.cpp',
+ 'nsPrintSession.cpp',
]
# nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers
SOURCES += [
'nsBaseWidget.cpp',
]
if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']: