layout/xul/moz.build
author Paolo Amadini <paolo.mozmail@amadzone.org>
Fri, 01 Jun 2018 11:15:56 +0100
changeset 802740 ae1bafe7144f6f428e2ef4e7047d5c64e0a19e8c
parent 792407 8f65eea9c169a9e5f84ff1634e55b45792d58784
child 807450 2aa9da271bd5012933ba02e4603dfa9bc3fd1b44
child 809998 963cf102c2c36b79c9066f453de62eb2166a476f
permissions -rw-r--r--
Bug 1457719 - Part 4 - Remove the "autorepeatbutton" element. r=bz The DoMouseClick helper is also removed because no other caller can now pass a null aEvent. Other MouseClicked implementations are also updated since aEvent cannot be null, which was already the case. MozReview-Commit-ID: 3bTJ6cZW9ZA

# -*- Mode: python; 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/.

with Files('**'):
    BUG_COMPONENT = ('Core', 'XUL')

with Files('*Menu*'):
    BUG_COMPONENT = ('Core', 'XP Toolkit/Widgets: Menus')

if CONFIG['ENABLE_TESTS']:
    MOCHITEST_MANIFESTS += ['test/mochitest.ini']
    MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
    BROWSER_CHROME_MANIFESTS += ['test/browser.ini']

XPIDL_SOURCES += [
    'nsIBoxObject.idl',
    'nsIListBoxObject.idl',
    'nsISliderListener.idl',
]

XPIDL_MODULE = 'layout_xul'

EXPORTS += [
    'nsBox.h',
    'nsIScrollbarMediator.h',
    'nsPIBoxObject.h',
    'nsPIListBoxObject.h',
    'nsXULPopupManager.h',
]

EXPORTS.mozilla.dom += [
    'BoxObject.h',
    'ListBoxObject.h',
    'MenuBoxObject.h',
    'ScrollBoxObject.h',
]

UNIFIED_SOURCES += [
    'BoxObject.cpp',
    'nsBox.cpp',
    'nsBoxFrame.cpp',
    'nsBoxLayout.cpp',
    'nsBoxLayoutState.cpp',
    'nsButtonBoxFrame.cpp',
    'nsRepeatService.cpp',
    'nsRootBoxFrame.cpp',
    'nsScrollbarButtonFrame.cpp',
    'nsScrollbarFrame.cpp',
    'nsSliderFrame.cpp',
    'nsSprocketLayout.cpp',
    'nsStackFrame.cpp',
    'nsStackLayout.cpp',
    'nsXULTooltipListener.cpp',
]

if CONFIG['MOZ_XUL']:
    UNIFIED_SOURCES += [
        'ListBoxObject.cpp',
        'MenuBoxObject.cpp',
        'nsDeckFrame.cpp',
        'nsDocElementBoxFrame.cpp',
        'nsGroupBoxFrame.cpp',
        'nsImageBoxFrame.cpp',
        'nsLeafBoxFrame.cpp',
        'nsListBoxBodyFrame.cpp',
        'nsListBoxLayout.cpp',
        'nsListItemFrame.cpp',
        'nsMenuBarFrame.cpp',
        'nsMenuBarListener.cpp',
        'nsMenuFrame.cpp',
        'nsMenuPopupFrame.cpp',
        'nsPopupSetFrame.cpp',
        'nsProgressMeterFrame.cpp',
        'nsResizerFrame.cpp',
        'nsSplitterFrame.cpp',
        'nsTextBoxFrame.cpp',
        'nsTitleBarFrame.cpp',
        'nsXULLabelFrame.cpp',
        'nsXULPopupManager.cpp',
        'ScrollBoxObject.cpp',
    ]

if CONFIG['MOZ_XUL']:
    DIRS += ['tree', 'grid']

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

FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
    '../base',
    '../generic',
    '../painting',
    '../style',
    '/dom/base',
    '/dom/xul',
]

if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
    CXXFLAGS += ['-Wno-error=shadow']