accessible/xul/moz.build
author Gregory Szorc <gps@mozilla.com>
Wed, 16 Mar 2016 15:26:24 -0700
changeset 341352 93203f44cc696d317d66dd4fdb75dd2cecb144e7
parent 289275 c646a88160d7b65f755f4dcfa5dec8626a77bcd5
permissions -rw-r--r--
Bug 1257350 - Disable C4312 to unblock compilation on VS2015; r?tbsaunde As part of unblocking building with VS2015u1 in automation, I'm mass disabling compiler warnings that are turned into errors. This is not the preferred mechanism to fix compilation warnings. So hopefully this patch never lands because someone insists on fixing the underlying problem instead. But if it does land, hopefully the workaround is only temporary. MozReview-Commit-ID: AjYVTfMUkQ8

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

UNIFIED_SOURCES += [
    'XULAlertAccessible.cpp',
    'XULColorPickerAccessible.cpp',
    'XULComboboxAccessible.cpp',
    'XULElementAccessibles.cpp',
    'XULFormControlAccessible.cpp',
    'XULListboxAccessible.cpp',
    'XULMenuAccessible.cpp',
    'XULSelectControlAccessible.cpp',
    'XULSliderAccessible.cpp',
    'XULTabAccessible.cpp',
    'XULTreeAccessible.cpp',
    'XULTreeGridAccessible.cpp',
]

LOCAL_INCLUDES += [
    '/accessible/base',
    '/accessible/generic',
    '/accessible/html',
    '/accessible/xpcom',
    '/layout/generic',
    '/layout/xul',
    '/layout/xul/tree',
]

if CONFIG['MOZ_ENABLE_GTK']:
    LOCAL_INCLUDES += [
        '/accessible/atk',
    ]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
    LOCAL_INCLUDES += [
        '/accessible/windows/ia2',
        '/accessible/windows/msaa',
    ]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    LOCAL_INCLUDES += [
        '/accessible/mac',
    ]
else:
    LOCAL_INCLUDES += [
        '/accessible/other',
    ]

if CONFIG['_MSC_VER']:
    # This is intended as a temporary hack to support building with VS2015.
    # 'reinterpret_cast': conversion from 'int32_t' to 'void *' of greater size
    CXXFLAGS += ['-wd4312']

FINAL_LIBRARY = 'xul'