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-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-12-03 17:06:16 -08:00
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'mozcontainer.c',
|
2014-03-14 06:13:32 -07:00
|
|
|
'NativeKeyBindings.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsBidiKeyboard.cpp',
|
2013-06-22 06:39:43 -07:00
|
|
|
'nsColorPicker.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsFilePicker.cpp',
|
|
|
|
'nsGtkKeyUtils.cpp',
|
|
|
|
'nsImageToPixbuf.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
|
|
|
'nsNativeThemeGTK.cpp',
|
|
|
|
'nsScreenGtk.cpp',
|
|
|
|
'nsScreenManagerGtk.cpp',
|
|
|
|
'nsSound.cpp',
|
|
|
|
'nsToolkit.cpp',
|
2013-12-03 17:06:16 -08:00
|
|
|
'WidgetTraceEvent.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
# These files force-enable NSPR logging and thus cannot be built in unified mode
|
|
|
|
SOURCES += [
|
|
|
|
'nsAppShell.cpp',
|
|
|
|
'nsGtkIMModule.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsWidgetFactory.cpp',
|
|
|
|
'nsWindow.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
2013-12-03 17:06:16 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsIdleServiceGTK.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['NS_PRINTING']:
|
2013-12-03 17:06:16 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-23 16:00:23 -07:00
|
|
|
'nsCUPSShim.cpp',
|
|
|
|
'nsPaperPS.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsPrintDialogGTK.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'nsPrintOptionsGTK.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsPrintSettingsGTK.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsPSPrinters.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-12-03 17:06:16 -08:00
|
|
|
# This file force-enables NSPR logging and thus cannot be built in unified mode
|
|
|
|
SOURCES += [
|
|
|
|
'nsDeviceContextSpecG.cpp',
|
|
|
|
]
|
2013-04-23 14:54:15 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
2013-12-03 17:06:16 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-12-04 00:23:15 -08:00
|
|
|
'nsClipboard.cpp',
|
2013-12-03 17:06:16 -08:00
|
|
|
]
|
|
|
|
# This file force-enables NSPR logging and thus cannot be built in unified mode
|
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsDragService.cpp',
|
|
|
|
]
|
2013-08-21 23:55:59 -07:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-09-20 14:37:36 -07:00
|
|
|
if CONFIG['ACCESSIBILITY']:
|
2013-12-03 17:06:16 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-09-20 14:37:36 -07:00
|
|
|
'maiRedundantObjectFactory.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_GTK2']:
|
2013-12-03 17:06:16 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-09-20 14:37:36 -07:00
|
|
|
'gtk2drawing.c',
|
|
|
|
]
|
|
|
|
else:
|
2013-12-03 17:06:16 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-09-20 14:37:36 -07:00
|
|
|
'gtk3drawing.c',
|
|
|
|
]
|
2013-10-03 00:11:13 -07:00
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 05:55:07 -08:00
|
|
|
|
2013-11-28 06:17:25 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../shared',
|
|
|
|
'../xpwidgets',
|
|
|
|
'/layout/generic',
|
2013-12-03 17:06:16 -08:00
|
|
|
'/layout/xul',
|
2013-11-28 06:17:25 -08:00
|
|
|
'/other-licenses/atk-1.0',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../shared/x11',
|
|
|
|
]
|
|
|
|
|
2013-11-27 05:55:07 -08:00
|
|
|
DEFINES['CAIRO_GFX'] = True
|
|
|
|
|
|
|
|
DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']
|