1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/gtk/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,106 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +if CONFIG['MOZ_ENABLE_GTK2']: 1.11 + LIBRARY_NAME = 'widget_gtk2' 1.12 +else: 1.13 + LIBRARY_NAME = 'widget_gtk3' 1.14 + 1.15 +EXPORTS += [ 1.16 + 'mozcontainer.h', 1.17 + 'nsGTKToolkit.h', 1.18 + 'nsIImageToPixbuf.h', 1.19 +] 1.20 + 1.21 +UNIFIED_SOURCES += [ 1.22 + 'mozcontainer.c', 1.23 + 'NativeKeyBindings.cpp', 1.24 + 'nsBidiKeyboard.cpp', 1.25 + 'nsColorPicker.cpp', 1.26 + 'nsFilePicker.cpp', 1.27 + 'nsGtkKeyUtils.cpp', 1.28 + 'nsImageToPixbuf.cpp', 1.29 + 'nsLookAndFeel.cpp', 1.30 + 'nsNativeThemeGTK.cpp', 1.31 + 'nsScreenGtk.cpp', 1.32 + 'nsScreenManagerGtk.cpp', 1.33 + 'nsSound.cpp', 1.34 + 'nsToolkit.cpp', 1.35 + 'WidgetTraceEvent.cpp', 1.36 +] 1.37 + 1.38 +# These files force-enable NSPR logging and thus cannot be built in unified mode 1.39 +SOURCES += [ 1.40 + 'nsAppShell.cpp', 1.41 + 'nsGtkIMModule.cpp', 1.42 + 'nsWidgetFactory.cpp', 1.43 + 'nsWindow.cpp', 1.44 +] 1.45 + 1.46 +if CONFIG['MOZ_X11']: 1.47 + UNIFIED_SOURCES += [ 1.48 + 'nsIdleServiceGTK.cpp', 1.49 + ] 1.50 + 1.51 +if CONFIG['NS_PRINTING']: 1.52 + UNIFIED_SOURCES += [ 1.53 + 'nsCUPSShim.cpp', 1.54 + 'nsPaperPS.cpp', 1.55 + 'nsPrintDialogGTK.cpp', 1.56 + 'nsPrintOptionsGTK.cpp', 1.57 + 'nsPrintSettingsGTK.cpp', 1.58 + 'nsPSPrinters.cpp', 1.59 + ] 1.60 + # This file force-enables NSPR logging and thus cannot be built in unified mode 1.61 + SOURCES += [ 1.62 + 'nsDeviceContextSpecG.cpp', 1.63 + ] 1.64 + 1.65 +if CONFIG['MOZ_X11']: 1.66 + UNIFIED_SOURCES += [ 1.67 + 'nsClipboard.cpp', 1.68 + ] 1.69 + # This file force-enables NSPR logging and thus cannot be built in unified mode 1.70 + SOURCES += [ 1.71 + 'nsDragService.cpp', 1.72 + ] 1.73 + 1.74 +FAIL_ON_WARNINGS = True 1.75 + 1.76 +if CONFIG['ACCESSIBILITY']: 1.77 + UNIFIED_SOURCES += [ 1.78 + 'maiRedundantObjectFactory.c', 1.79 + ] 1.80 + 1.81 +if CONFIG['MOZ_ENABLE_GTK2']: 1.82 + UNIFIED_SOURCES += [ 1.83 + 'gtk2drawing.c', 1.84 + ] 1.85 +else: 1.86 + UNIFIED_SOURCES += [ 1.87 + 'gtk3drawing.c', 1.88 + ] 1.89 + 1.90 +include('/ipc/chromium/chromium-config.mozbuild') 1.91 + 1.92 +FINAL_LIBRARY = 'xul' 1.93 + 1.94 +LOCAL_INCLUDES += [ 1.95 + '../shared', 1.96 + '../xpwidgets', 1.97 + '/layout/generic', 1.98 + '/layout/xul', 1.99 + '/other-licenses/atk-1.0', 1.100 +] 1.101 + 1.102 +if CONFIG['MOZ_X11']: 1.103 + LOCAL_INCLUDES += [ 1.104 + '../shared/x11', 1.105 + ] 1.106 + 1.107 +DEFINES['CAIRO_GFX'] = True 1.108 + 1.109 +DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']