js/xpconnect/wrappers/moz.build
author Morris Tseng <mtseng@mozilla.com>
Mon, 12 Sep 2016 17:39:54 +0800
changeset 313517 d85736dec5d0d1c605d471b53decef714b3b4074
parent 306106 3ec6380fca8207fa199693206a3ca24975bf9833
child 346297 a9c886b3517f9c5e2728539c6426df45b80b077b
permissions -rw-r--r--
Bug 1297965 - Use ANGLE for WebGL2. r=jgilbert MozReview-Commit-ID: 83zhQ5rTdbi

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

EXPORTS += [
    'WrapperFactory.h',
]

UNIFIED_SOURCES += [
    'AccessCheck.cpp',
    'AddonWrapper.cpp',
    'ChromeObjectWrapper.cpp',
    'FilteringWrapper.cpp',
    'WaiveXrayWrapper.cpp',
    'WrapperFactory.cpp',
]

# XrayWrapper needs to be built separately becaue of template instantiations.
SOURCES += [
    'XrayWrapper.cpp',
]

# warning C4661 for FilteringWrapper
if CONFIG['_MSC_VER']:
    CXXFLAGS += [
        '-wd4661', # no suitable definition provided for explicit template instantiation request
    ]

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

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
    '../../../dom/base',
    '../src',
]

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-shadow']