widget/qt/moz.build
author ffxbld
Mon, 12 Jan 2015 23:08:57 -0500
branchGECKO360b1_2015011222_RELBRANCH
changeset 242829 ca663986b6c337584a90a64ac0348cb42b10e184
parent 240899 88315012b6cc251a867c36941d5296a29b77ca83
child 275383 b7b2bd10196994a67c37e739faa46b0d24cf6cf8
permissions -rw-r--r--
Added FIREFOX_36_0b1_RELEASE FIREFOX_36_0b1_BUILD1 tag(s) for changeset 1b26127c3323. DONTBUILD CLOSED TREE a=release

# -*- 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/.

GENERATED_SOURCES += [
    'moc_mozqwidget.cpp',
    'moc_nsAppShell.cpp',
]

SOURCES += [
    'mozqwidget.cpp',
    'nsAppShell.cpp',
    'nsBidiKeyboard.cpp',
    'nsClipboard.cpp',
    'nsIdleServiceQt.cpp',
    'nsLookAndFeel.cpp',
    'nsQtKeyUtils.cpp',
    'nsScreenManagerQt.cpp',
    'nsScreenQt.cpp',
    'nsWidgetFactory.cpp',
    'nsWindow.cpp',
]


if CONFIG['NS_PRINTING']:
    SOURCES += [
        'nsDeviceContextSpecQt.cpp',
        'nsPrintDialogQt.cpp',
        'nsPrintOptionsQt.cpp',
        'nsPrintSettingsQt.cpp',
    ]

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

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
    '/widget',
]

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

#DEFINES['DEBUG_WIDGETS'] = True

if CONFIG['OS_ARCH'] == 'Linux':
    DEFINES['_BSD_SOURCE'] = True

if CONFIG['OS_ARCH'] == 'SunOS' and not CONFIG['GNU_CC']:
    # When using Sun's WorkShop compiler, including
    # /wherever/workshop-5.0/SC5.0/include/CC/std/time.h
    # causes most of these compiles to fail with:
    # line 29: Error: Multiple declaration for std::tm.
    # So, this gets around the problem.
    DEFINES['_TIME_H'] = 1

CXXFLAGS += CONFIG['MOZ_QT_CFLAGS']
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
CFLAGS += CONFIG['MOZ_QT_CFLAGS']
CFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']