michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['MOZ_ENABLE_GTK2']: michael@0: LIBRARY_NAME = 'widget_gtk2' michael@0: else: michael@0: LIBRARY_NAME = 'widget_gtk3' michael@0: michael@0: EXPORTS += [ michael@0: 'mozcontainer.h', michael@0: 'nsGTKToolkit.h', michael@0: 'nsIImageToPixbuf.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'mozcontainer.c', michael@0: 'NativeKeyBindings.cpp', michael@0: 'nsBidiKeyboard.cpp', michael@0: 'nsColorPicker.cpp', michael@0: 'nsFilePicker.cpp', michael@0: 'nsGtkKeyUtils.cpp', michael@0: 'nsImageToPixbuf.cpp', michael@0: 'nsLookAndFeel.cpp', michael@0: 'nsNativeThemeGTK.cpp', michael@0: 'nsScreenGtk.cpp', michael@0: 'nsScreenManagerGtk.cpp', michael@0: 'nsSound.cpp', michael@0: 'nsToolkit.cpp', michael@0: 'WidgetTraceEvent.cpp', michael@0: ] michael@0: michael@0: # These files force-enable NSPR logging and thus cannot be built in unified mode michael@0: SOURCES += [ michael@0: 'nsAppShell.cpp', michael@0: 'nsGtkIMModule.cpp', michael@0: 'nsWidgetFactory.cpp', michael@0: 'nsWindow.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_X11']: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsIdleServiceGTK.cpp', michael@0: ] michael@0: michael@0: if CONFIG['NS_PRINTING']: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsCUPSShim.cpp', michael@0: 'nsPaperPS.cpp', michael@0: 'nsPrintDialogGTK.cpp', michael@0: 'nsPrintOptionsGTK.cpp', michael@0: 'nsPrintSettingsGTK.cpp', michael@0: 'nsPSPrinters.cpp', michael@0: ] michael@0: # This file force-enables NSPR logging and thus cannot be built in unified mode michael@0: SOURCES += [ michael@0: 'nsDeviceContextSpecG.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_X11']: michael@0: UNIFIED_SOURCES += [ michael@0: 'nsClipboard.cpp', michael@0: ] michael@0: # This file force-enables NSPR logging and thus cannot be built in unified mode michael@0: SOURCES += [ michael@0: 'nsDragService.cpp', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: if CONFIG['ACCESSIBILITY']: michael@0: UNIFIED_SOURCES += [ michael@0: 'maiRedundantObjectFactory.c', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_ENABLE_GTK2']: michael@0: UNIFIED_SOURCES += [ michael@0: 'gtk2drawing.c', michael@0: ] michael@0: else: michael@0: UNIFIED_SOURCES += [ michael@0: 'gtk3drawing.c', michael@0: ] michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xul' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../shared', michael@0: '../xpwidgets', michael@0: '/layout/generic', michael@0: '/layout/xul', michael@0: '/other-licenses/atk-1.0', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_X11']: michael@0: LOCAL_INCLUDES += [ michael@0: '../shared/x11', michael@0: ] michael@0: michael@0: DEFINES['CAIRO_GFX'] = True michael@0: michael@0: DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']