1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 DEFINES["IMPL_LIBXUL"] = True
8 DEFINES["MOZILLA_INTERNAL_API"] = True
10 # Do NOT export this library. We don't actually want our test code
11 # being added to libxul or anything.
13 Library("dombindings_test_s")
15 MOCHITEST_MANIFESTS += ["mochitest.toml"]
17 MOCHITEST_CHROME_MANIFESTS += ["chrome.toml"]
19 TEST_WEBIDL_FILES += [
20 "TestCallback.webidl",
21 "TestDictionary.webidl",
22 "TestJSImplInheritanceGen.webidl",
26 TESTING_JS_MODULES += [
27 "TestInterfaceJS.sys.mjs",
30 PREPROCESSED_TEST_WEBIDL_FILES += [
32 "TestExampleGen.webidl",
33 "TestJSImplGen.webidl",
36 WEBIDL_EXAMPLE_INTERFACES += [
37 "TestExampleInterface",
38 "TestExampleProxyInterface",
39 "TestExampleThrowingConstructorInterface",
40 "TestExampleWorkerInterface",
43 # Bug 932082 tracks having bindings use namespaced includes.
45 "!/dist/include/mozilla/dom",
52 "/js/xpconnect/wrappers",
55 include("/ipc/chromium/chromium-config.mozbuild")
57 if CONFIG["MOZ_DEBUG"]:
59 "mozITestInterfaceJS.idl",
62 XPIDL_MODULE = "dom_bindings_test"
64 # Because we don't actually link this code anywhere, we don't care about
65 # their optimization level, so don't waste time on optimization.
66 if CONFIG["CC_TYPE"] == "clang-cl":