зеркало из https://github.com/mozilla/gecko-dev.git
71 строка
1.8 KiB
Python
71 строка
1.8 KiB
Python
# -*- 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['COMPILE_ENVIRONMENT'] and CONFIG['ACCESSIBILITY']:
|
|
DIRS += [
|
|
'handler',
|
|
'typelib',
|
|
]
|
|
|
|
# With --disable-accessibility, we need to compile PDocAccessible.ipdl (which
|
|
# also depends on COMPtrTypes.h), but not the C++.
|
|
IPDL_SOURCES += ['PDocAccessible.ipdl']
|
|
|
|
EXPORTS.mozilla.a11y += [
|
|
'COMPtrTypes.h',
|
|
]
|
|
|
|
if CONFIG['ACCESSIBILITY']:
|
|
if not CONFIG['HAVE_64BIT_BUILD']:
|
|
EXPORTS += [
|
|
'IAccessible32.manifest',
|
|
]
|
|
|
|
EXPORTS += [
|
|
'IAccessible64.manifest',
|
|
]
|
|
|
|
EXPORTS.mozilla.a11y += [
|
|
'DocAccessibleChild.h',
|
|
'HandlerProvider.h',
|
|
'PlatformChild.h',
|
|
'ProxyAccessible.h'
|
|
]
|
|
|
|
SOURCES += [
|
|
'!./handler/HandlerData_c.c',
|
|
'COMPtrTypes.cpp',
|
|
'DocAccessibleChild.cpp',
|
|
'HandlerProvider.cpp',
|
|
'PlatformChild.cpp',
|
|
'ProxyAccessible.cpp',
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
|
'/accessible/base',
|
|
'/accessible/generic',
|
|
'/accessible/windows/ia2',
|
|
'/accessible/windows/msaa',
|
|
'/accessible/xpcom',
|
|
]
|
|
|
|
# Suppress warnings from the MIDL generated code.
|
|
if CONFIG['CC_TYPE'] == 'clang-cl':
|
|
CFLAGS += [
|
|
'-Wno-extern-initializer',
|
|
'-Wno-incompatible-pointer-types',
|
|
'-Wno-missing-braces',
|
|
'-Wno-unused-const-variable',
|
|
]
|
|
|
|
CXXFLAGS += [
|
|
'-Wno-missing-braces',
|
|
]
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
FINAL_LIBRARY = 'xul'
|