dom/xul/moz.build
author Narcis Beleuzu <nbeleuzu@mozilla.com>
Sun, 29 Jul 2018 03:55:23 +0300
changeset 483986 aaee68beff800bcf076d9c49b5c1f6531b135579
parent 481513 3af5036936c12d911a0a3de1ef86f692e7878486
child 485795 271ad78ecd803a2baf59be86975aad3084fa1bd9
permissions -rw-r--r--
Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures Backed out changeset fcfb99baa0f0 (bug 1463291) Backed out changeset 0d69b4fb1ed4 (bug 1463016)

# -*- 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")

if CONFIG['MOZ_BUILD_APP'] == 'browser':
    DEFINES['MOZ_BREAK_XUL_OVERLAYS'] = True

MOCHITEST_MANIFESTS += ['test/mochitest.ini']

MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']

if CONFIG['MOZ_XUL']:
    EXPORTS += [
        'nsXULElement.h',
    ]

    EXPORTS.mozilla.dom += [
        'XULFrameElement.h',
        'XULPopupElement.h',
        'XULScrollElement.h',
    ]

    UNIFIED_SOURCES += [
        'nsXULCommandDispatcher.cpp',
        'nsXULContentSink.cpp',
        'nsXULContentUtils.cpp',
        'nsXULElement.cpp',
        'nsXULPopupListener.cpp',
        'nsXULPrototypeCache.cpp',
        'nsXULPrototypeDocument.cpp',
        'nsXULSortService.cpp',
        'XULDocument.cpp',
        'XULFrameElement.cpp',
        'XULPopupElement.cpp',
        'XULScrollElement.cpp',
    ]

XPIDL_SOURCES += [
    'nsIController.idl',
    'nsIControllers.idl',
    'nsIXULSortService.idl',
]

XPIDL_MODULE = 'xul'

UNIFIED_SOURCES += [
    'nsXULControllers.cpp',
]

LOCAL_INCLUDES += [
    '/docshell/base',
    '/dom/base',
    '/dom/html',
    '/dom/xbl',
    '/dom/xml',
    '/layout/base',
    '/layout/generic',
    '/layout/style',
    '/layout/xul',
]

FINAL_LIBRARY = 'xul'

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