accessible/ipc/other/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Wed, 21 Aug 2019 12:25:42 +0000
changeset 489301 51bf6a97396d96ddb82fa91c2cf9bd9f5bc9ae06
parent 484010 9f24d0c0dce2b1ec9e84facefe36d73d218c7b48
permissions -rw-r--r--
Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj Differential Revision: https://phabricator.services.mozilla.com/D42765

# -*- 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 --disable-accessibility, we need to compile PDocAccessible.ipdl, but
# not the C++.
IPDL_SOURCES += ['PDocAccessible.ipdl']

if CONFIG['ACCESSIBILITY']:
    EXPORTS.mozilla.a11y += [
        'DocAccessibleChild.h',
        'ProxyAccessible.h',
    ]

    SOURCES += [
        'DocAccessibleChild.cpp',
        'ProxyAccessible.cpp',
    ]

    LOCAL_INCLUDES += [
        '../../base',
        '../../generic',
        '../../xpcom',
    ]

    if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
        LOCAL_INCLUDES += [
            '/accessible/atk',
        ]
    elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
        LOCAL_INCLUDES += [
            '/accessible/mac',
        ]
    elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
        LOCAL_INCLUDES += [
            '/accessible/android',
        ]
    else:
        LOCAL_INCLUDES += [
            '/accessible/other',
        ]

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

# Add libFuzzer configuration directives
include('/tools/fuzzing/libfuzzer-config.mozbuild')

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

FINAL_LIBRARY = 'xul'