widget/gtk/moz.build
author Robert O'Callahan <robert@ocallahan.org>
Wed, 04 Dec 2013 14:06:16 +1300
changeset 158720 b5d2afd3716472ffd2c88a0055cf665391f5edb2
parent 158040 f46cc655a78e30167e57230b17c07aeb7e65f89b
child 158721 21b263335af58ee73f156340039b37d6fd5d27d0
permissions -rw-r--r--
Bug 945091. Part 3: Flatten layout/xul/base/* into layout/xul. r=glandium

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.

if CONFIG['MOZ_ENABLE_GTK2']:
    LIBRARY_NAME = 'widget_gtk2'
else:
    LIBRARY_NAME = 'widget_gtk3'

EXPORTS += [
    'mozcontainer.h',
    'nsGTKToolkit.h',
    'nsIImageToPixbuf.h',
]

SOURCES += [
    'nsAppShell.cpp',
    'nsBidiKeyboard.cpp',
    'nsColorPicker.cpp',
    'nsFilePicker.cpp',
    'nsGtkIMModule.cpp',
    'nsGtkKeyUtils.cpp',
    'nsImageToPixbuf.cpp',
    'nsLookAndFeel.cpp',
    'nsNativeKeyBindings.cpp',
    'nsNativeThemeGTK.cpp',
    'nsScreenGtk.cpp',
    'nsScreenManagerGtk.cpp',
    'nsSound.cpp',
    'nsToolkit.cpp',
    'nsWidgetFactory.cpp',
    'nsWindow.cpp',
    'WidgetTraceEvent.cpp',
]

if CONFIG['MOZ_X11']:
    SOURCES += [
        'nsIdleServiceGTK.cpp',
    ]

if CONFIG['NS_PRINTING']:
    SOURCES += [
        'nsCUPSShim.cpp',
        'nsDeviceContextSpecG.cpp',
        'nsPaperPS.cpp',
        'nsPrintDialogGTK.cpp',
        'nsPrintOptionsGTK.cpp',
        'nsPrintSettingsGTK.cpp',
        'nsPSPrinters.cpp',
    ]

if CONFIG['MOZ_X11']:
    SOURCES += [
        'nsClipboard.cpp',
        'nsDragService.cpp',
    ]

FAIL_ON_WARNINGS = True

SOURCES += [
    'mozcontainer.c',
]

if CONFIG['ACCESSIBILITY']:
    SOURCES += [
        'maiRedundantObjectFactory.c',
    ]

if CONFIG['MOZ_ENABLE_GTK2']:
    SOURCES += [
        'gtk2drawing.c',
    ]
else:
    SOURCES += [
        'gtk3drawing.c',
    ]

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
    '../shared',
    '../xpwidgets',
    '/layout/generic',
    '/layout/xul',
    '/other-licenses/atk-1.0',
]

if CONFIG['MOZ_X11']:
    LOCAL_INCLUDES += [
        '../shared/x11',
    ]

DEFINES['CAIRO_GFX'] = True

DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']