gecko/widget/xpwidgets/moz.build
2013-11-19 11:48:10 +09:00

78 lines
2.1 KiB
Python

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# 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/.
EXPORTS += [
'APZCCallbackHelper.h',
'GfxDriverInfo.h',
'GfxInfoBase.h',
'GfxInfoCollector.h',
]
UNIFIED_SOURCES += [
'APZCCallbackHelper.cpp',
'GfxDriverInfo.cpp',
'GfxInfoBase.cpp',
'GfxInfoCollector.cpp',
'GfxInfoWebGL.cpp',
'InputData.cpp',
'nsBaseAppShell.cpp',
'nsBaseDragService.cpp',
'nsBaseScreen.cpp',
'nsClipboardHelper.cpp',
'nsClipboardPrivacyHandler.cpp',
'nsFilePickerProxy.cpp',
'nsHTMLFormatConverter.cpp',
'nsIdleService.cpp',
'nsIWidgetListener.cpp',
'nsPrimitiveHelpers.cpp',
'nsPrintOptionsImpl.cpp',
'nsPrintSession.cpp',
'nsPrintSettingsImpl.cpp',
'nsTransferable.cpp',
'nsXPLookAndFeel.cpp',
'PuppetWidget.cpp',
'WidgetUtils.cpp',
]
# nsBaseWidget.cpp needs to be built separately because of name clashes in the OS X headers
SOURCES += [
'nsBaseWidget.cpp',
]
if CONFIG['MOZ_X11']:
UNIFIED_SOURCES += [
'GfxInfoX11.cpp'
]
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('os2', 'cocoa', 'windows'):
UNIFIED_SOURCES += [
'nsBaseClipboard.cpp',
]
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'os2', 'cocoa', 'windows',
'android', 'gonk'):
UNIFIED_SOURCES += [
'nsBaseFilePicker.cpp',
]
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('qt', 'gtk2', 'gtk3', 'windows', 'cocoa'):
UNIFIED_SOURCES += [
'nsNativeTheme.cpp',
]
MSVC_ENABLE_PGO = True
LIBRARY_NAME = 'xpwidgets_s'
include('/ipc/chromium/chromium-config.mozbuild')
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
FINAL_LIBRARY = 'widget_mac'
elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gonk', 'android', 'qt', 'gtk2', 'gtk3'):
FINAL_LIBRARY = 'widget_%s' % CONFIG['MOZ_WIDGET_TOOLKIT']
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'os2':
FINAL_LIBRARY = 'wdgtos2'