widget/gtk/moz.build

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 6
michael@0 7 if CONFIG['MOZ_ENABLE_GTK2']:
michael@0 8 LIBRARY_NAME = 'widget_gtk2'
michael@0 9 else:
michael@0 10 LIBRARY_NAME = 'widget_gtk3'
michael@0 11
michael@0 12 EXPORTS += [
michael@0 13 'mozcontainer.h',
michael@0 14 'nsGTKToolkit.h',
michael@0 15 'nsIImageToPixbuf.h',
michael@0 16 ]
michael@0 17
michael@0 18 UNIFIED_SOURCES += [
michael@0 19 'mozcontainer.c',
michael@0 20 'NativeKeyBindings.cpp',
michael@0 21 'nsBidiKeyboard.cpp',
michael@0 22 'nsColorPicker.cpp',
michael@0 23 'nsFilePicker.cpp',
michael@0 24 'nsGtkKeyUtils.cpp',
michael@0 25 'nsImageToPixbuf.cpp',
michael@0 26 'nsLookAndFeel.cpp',
michael@0 27 'nsNativeThemeGTK.cpp',
michael@0 28 'nsScreenGtk.cpp',
michael@0 29 'nsScreenManagerGtk.cpp',
michael@0 30 'nsSound.cpp',
michael@0 31 'nsToolkit.cpp',
michael@0 32 'WidgetTraceEvent.cpp',
michael@0 33 ]
michael@0 34
michael@0 35 # These files force-enable NSPR logging and thus cannot be built in unified mode
michael@0 36 SOURCES += [
michael@0 37 'nsAppShell.cpp',
michael@0 38 'nsGtkIMModule.cpp',
michael@0 39 'nsWidgetFactory.cpp',
michael@0 40 'nsWindow.cpp',
michael@0 41 ]
michael@0 42
michael@0 43 if CONFIG['MOZ_X11']:
michael@0 44 UNIFIED_SOURCES += [
michael@0 45 'nsIdleServiceGTK.cpp',
michael@0 46 ]
michael@0 47
michael@0 48 if CONFIG['NS_PRINTING']:
michael@0 49 UNIFIED_SOURCES += [
michael@0 50 'nsCUPSShim.cpp',
michael@0 51 'nsPaperPS.cpp',
michael@0 52 'nsPrintDialogGTK.cpp',
michael@0 53 'nsPrintOptionsGTK.cpp',
michael@0 54 'nsPrintSettingsGTK.cpp',
michael@0 55 'nsPSPrinters.cpp',
michael@0 56 ]
michael@0 57 # This file force-enables NSPR logging and thus cannot be built in unified mode
michael@0 58 SOURCES += [
michael@0 59 'nsDeviceContextSpecG.cpp',
michael@0 60 ]
michael@0 61
michael@0 62 if CONFIG['MOZ_X11']:
michael@0 63 UNIFIED_SOURCES += [
michael@0 64 'nsClipboard.cpp',
michael@0 65 ]
michael@0 66 # This file force-enables NSPR logging and thus cannot be built in unified mode
michael@0 67 SOURCES += [
michael@0 68 'nsDragService.cpp',
michael@0 69 ]
michael@0 70
michael@0 71 FAIL_ON_WARNINGS = True
michael@0 72
michael@0 73 if CONFIG['ACCESSIBILITY']:
michael@0 74 UNIFIED_SOURCES += [
michael@0 75 'maiRedundantObjectFactory.c',
michael@0 76 ]
michael@0 77
michael@0 78 if CONFIG['MOZ_ENABLE_GTK2']:
michael@0 79 UNIFIED_SOURCES += [
michael@0 80 'gtk2drawing.c',
michael@0 81 ]
michael@0 82 else:
michael@0 83 UNIFIED_SOURCES += [
michael@0 84 'gtk3drawing.c',
michael@0 85 ]
michael@0 86
michael@0 87 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 88
michael@0 89 FINAL_LIBRARY = 'xul'
michael@0 90
michael@0 91 LOCAL_INCLUDES += [
michael@0 92 '../shared',
michael@0 93 '../xpwidgets',
michael@0 94 '/layout/generic',
michael@0 95 '/layout/xul',
michael@0 96 '/other-licenses/atk-1.0',
michael@0 97 ]
michael@0 98
michael@0 99 if CONFIG['MOZ_X11']:
michael@0 100 LOCAL_INCLUDES += [
michael@0 101 '../shared/x11',
michael@0 102 ]
michael@0 103
michael@0 104 DEFINES['CAIRO_GFX'] = True
michael@0 105
michael@0 106 DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']

mercurial