2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:20:02 +04: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/.
|
|
|
|
|
2014-05-01 15:36:05 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_GTK3']:
|
|
|
|
DIRS += ['mozgtk']
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'mozcontainer.h',
|
|
|
|
'nsGTKToolkit.h',
|
|
|
|
'nsIImageToPixbuf.h',
|
|
|
|
]
|
|
|
|
|
2013-12-04 05:06:16 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2015-07-27 02:23:04 +03:00
|
|
|
'IMContextWrapper.cpp',
|
2013-12-04 05:06:16 +04:00
|
|
|
'mozcontainer.c',
|
2014-03-14 17:13:32 +04:00
|
|
|
'NativeKeyBindings.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsAppShell.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsBidiKeyboard.cpp',
|
2013-06-22 17:39:43 +04:00
|
|
|
'nsColorPicker.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsFilePicker.cpp',
|
2015-07-27 02:23:04 +03:00
|
|
|
'nsGtkKeyUtils.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsImageToPixbuf.cpp',
|
|
|
|
'nsLookAndFeel.cpp',
|
|
|
|
'nsNativeThemeGTK.cpp',
|
|
|
|
'nsScreenGtk.cpp',
|
|
|
|
'nsScreenManagerGtk.cpp',
|
|
|
|
'nsSound.cpp',
|
|
|
|
'nsToolkit.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsWidgetFactory.cpp',
|
2014-06-18 08:11:00 +04:00
|
|
|
'WakeLockListener.cpp',
|
2013-12-04 05:06:16 +04:00
|
|
|
'WidgetTraceEvent.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
SOURCES += [
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsWindow.cpp', # conflicts with X11 headers
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
2013-12-04 05:06:16 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsIdleServiceGTK.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['NS_PRINTING']:
|
2013-12-04 05:06:16 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-24 03:00:23 +04:00
|
|
|
'nsCUPSShim.cpp',
|
2014-10-09 00:19:14 +04:00
|
|
|
'nsDeviceContextSpecG.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'nsPaperPS.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPrintDialogGTK.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'nsPrintOptionsGTK.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsPrintSettingsGTK.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsPSPrinters.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
2013-12-04 05:06:16 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-12-04 12:23:15 +04:00
|
|
|
'nsClipboard.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsDragService.cpp',
|
|
|
|
]
|
2013-08-22 10:55:59 +04:00
|
|
|
|
2015-08-24 03:55:09 +03:00
|
|
|
if CONFIG['GNU_CC']:
|
|
|
|
CFLAGS += ['-Wshadow']
|
|
|
|
|
2013-09-21 01:37:36 +04:00
|
|
|
if CONFIG['ACCESSIBILITY']:
|
2013-12-04 05:06:16 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-09-21 01:37:36 +04:00
|
|
|
'maiRedundantObjectFactory.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_GTK2']:
|
2013-12-04 05:06:16 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-09-21 01:37:36 +04:00
|
|
|
'gtk2drawing.c',
|
|
|
|
]
|
|
|
|
else:
|
2013-12-04 05:06:16 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-09-21 01:37:36 +04:00
|
|
|
'gtk3drawing.c',
|
2015-06-08 11:41:00 +03:00
|
|
|
'nsApplicationChooser.cpp',
|
2013-09-21 01:37:36 +04:00
|
|
|
]
|
2013-10-03 11:11:13 +04:00
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2013-11-28 18:17:25 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/layout/generic',
|
2013-12-04 05:06:16 +04:00
|
|
|
'/layout/xul',
|
2013-11-28 18:17:25 +04:00
|
|
|
'/other-licenses/atk-1.0',
|
2014-10-23 21:16:45 +04:00
|
|
|
'/widget',
|
2013-11-28 18:17:25 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
LOCAL_INCLUDES += [
|
2014-10-23 21:16:47 +04:00
|
|
|
'/widget/x11',
|
2013-11-28 18:17:25 +04:00
|
|
|
]
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
DEFINES['CAIRO_GFX'] = True
|
|
|
|
|
|
|
|
DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']
|
2014-07-24 19:55:33 +04:00
|
|
|
|
|
|
|
CFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS']
|
2015-05-08 00:08:20 +03:00
|
|
|
|
|
|
|
# When building with GTK3, the widget code always needs to use
|
|
|
|
# system Cairo headers, regardless of whether we are also linked
|
|
|
|
# against and using in-tree Cairo. By not using in-tree Cairo
|
|
|
|
# headers, we avoid picking up our renamed symbols, and instead
|
|
|
|
# use only system Cairo symbols that GTK3 uses. This allows that
|
|
|
|
# any Cairo objects created can be freely passed back and forth
|
|
|
|
# between the widget code and GTK3.
|
|
|
|
if not (CONFIG['MOZ_ENABLE_GTK3'] and CONFIG['MOZ_TREE_CAIRO']):
|
|
|
|
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
|
|
|
|
2014-07-24 19:55:33 +04:00
|
|
|
CXXFLAGS += CONFIG['MOZ_STARTUP_NOTIFICATION_CFLAGS']
|
|
|
|
|
|
|
|
CFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_DBUS']:
|
|
|
|
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|