2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:20 +04:00
|
|
|
# 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/.
|
|
|
|
|
2014-04-02 06:52:04 +04:00
|
|
|
DEFINES.update({
|
|
|
|
'IMPL_LIBXUL': True,
|
|
|
|
'MOZILLA_INTERNAL_API': True,
|
|
|
|
})
|
|
|
|
|
2013-08-22 10:56:00 +04:00
|
|
|
# Do NOT export this library. We don't actually want our test code
|
|
|
|
# being added to libxul or anything.
|
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
Library('dombindings_test_s')
|
2013-08-15 17:02:09 +04:00
|
|
|
|
2014-02-15 10:36:43 +04:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'TestInterfaceJS.js',
|
|
|
|
'TestInterfaceJS.manifest',
|
2015-05-06 09:42:27 +03:00
|
|
|
'TestInterfaceJSMaplike.js'
|
2014-02-15 10:36:43 +04:00
|
|
|
]
|
|
|
|
|
2013-09-30 11:51:57 +04:00
|
|
|
MOCHITEST_MANIFESTS += ['mochitest.ini']
|
|
|
|
|
2013-09-30 11:52:01 +04:00
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['chrome.ini']
|
|
|
|
|
2013-12-12 11:26:38 +04:00
|
|
|
TEST_WEBIDL_FILES += [
|
|
|
|
'TestDictionary.webidl',
|
|
|
|
'TestJSImplInheritanceGen.webidl',
|
|
|
|
'TestTypedef.webidl',
|
|
|
|
]
|
|
|
|
|
|
|
|
PREPROCESSED_TEST_WEBIDL_FILES += [
|
|
|
|
'TestCodeGen.webidl',
|
|
|
|
'TestExampleGen.webidl',
|
|
|
|
'TestJSImplGen.webidl',
|
|
|
|
]
|
|
|
|
|
2013-12-15 23:43:47 +04:00
|
|
|
WEBIDL_EXAMPLE_INTERFACES += [
|
|
|
|
'TestExampleInterface',
|
|
|
|
'TestExampleProxyInterface',
|
2016-11-12 00:09:05 +03:00
|
|
|
'TestExampleWorkerInterface',
|
2013-12-15 23:43:47 +04:00
|
|
|
]
|
|
|
|
|
2015-11-21 03:52:58 +03:00
|
|
|
# Bug 932082 tracks having bindings use namespaced includes.
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'!/dist/include/mozilla/dom',
|
|
|
|
]
|
|
|
|
|
2013-11-11 12:04:11 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2015-11-04 08:20:20 +03:00
|
|
|
'!..',
|
2013-11-11 12:04:11 +04:00
|
|
|
'/dom/bindings',
|
|
|
|
'/js/xpconnect/src',
|
|
|
|
'/js/xpconnect/wrappers',
|
|
|
|
]
|
2016-05-11 10:00:01 +03:00
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
2017-12-09 06:01:16 +03:00
|
|
|
|
|
|
|
if CONFIG['MOZ_DEBUG']:
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'mozITestInterfaceJS.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'dom_bindings_test'
|