2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:02 -08:00
|
|
|
# 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/.
|
|
|
|
|
2013-03-19 11:47:00 -07:00
|
|
|
MODULE = 'widget'
|
|
|
|
|
2013-08-15 06:12:40 -07:00
|
|
|
if CONFIG['MOZ_ENABLE_GTK2']:
|
|
|
|
LIBRARY_NAME = 'widget_gtk2'
|
|
|
|
else:
|
|
|
|
LIBRARY_NAME = 'widget_gtk3'
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'mozcontainer.h',
|
|
|
|
'nsGTKToolkit.h',
|
|
|
|
'nsIImageToPixbuf.h',
|
|
|
|
]
|
|
|
|
|
2013-04-23 14:54:15 -07:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'WidgetTraceEvent.cpp',
|
|
|
|
'nsAppShell.cpp',
|
|
|
|
'nsBidiKeyboard.cpp',
|
2013-06-22 06:39:43 -07:00
|
|
|
'nsColorPicker.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsFilePicker.cpp',
|
|
|
|
'nsGtkIMModule.cpp',
|
|
|
|
'nsGtkKeyUtils.cpp',
|
|
|
|
'nsImageToPixbuf.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
|
|
|
'nsNativeKeyBindings.cpp',
|
|
|
|
'nsNativeThemeGTK.cpp',
|
|
|
|
'nsScreenGtk.cpp',
|
|
|
|
'nsScreenManagerGtk.cpp',
|
|
|
|
'nsSound.cpp',
|
|
|
|
'nsToolkit.cpp',
|
|
|
|
'nsWidgetFactory.cpp',
|
|
|
|
'nsWindow.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsIdleServiceGTK.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['NS_PRINTING']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsDeviceContextSpecG.cpp',
|
|
|
|
'nsPrintOptionsGTK.cpp',
|
|
|
|
'nsPrintDialogGTK.cpp',
|
|
|
|
'nsPrintSettingsGTK.cpp',
|
|
|
|
'nsCUPSShim.cpp',
|
|
|
|
'nsPaperPS.cpp',
|
|
|
|
'nsPSPrinters.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'nsClipboard.cpp',
|
|
|
|
'nsDragService.cpp',
|
|
|
|
]
|
2013-08-21 23:55:59 -07:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-21 23:56:02 -07:00
|
|
|
CSRCS += [
|
|
|
|
'mozcontainer.c',
|
|
|
|
]
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
LIBXUL_LIBRARY = True
|
|
|
|
|
2013-09-20 14:37:36 -07:00
|
|
|
if CONFIG['ACCESSIBILITY']:
|
|
|
|
CSRCS += [
|
|
|
|
'maiRedundantObjectFactory.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_GTK2']:
|
|
|
|
CSRCS += [
|
|
|
|
'gtk2drawing.c',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
CSRCS += [
|
|
|
|
'gtk3drawing.c',
|
|
|
|
]
|
2013-10-03 00:11:13 -07:00
|
|
|
|
|
|
|
EXPORT_LIBRARY = True
|
|
|
|
|