Bug 1941128 - Turn off network.dns.native_https_query on Mac again
[gecko.git] / dom / bindings / test / moz.build
blobb5c45301a6aeb3db8b112b0b0228bc33f6dd656f
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",
23     "TestTypedef.webidl",
26 TESTING_JS_MODULES += [
27     "TestInterfaceJS.sys.mjs",
30 PREPROCESSED_TEST_WEBIDL_FILES += [
31     "TestCodeGen.webidl",
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.
44 LOCAL_INCLUDES += [
45     "!/dist/include/mozilla/dom",
48 LOCAL_INCLUDES += [
49     "!..",
50     "/dom/bindings",
51     "/js/xpconnect/src",
52     "/js/xpconnect/wrappers",
55 include("/ipc/chromium/chromium-config.mozbuild")
57 if CONFIG["MOZ_DEBUG"]:
58     XPIDL_SOURCES += [
59         "mozITestInterfaceJS.idl",
60     ]
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":
67     CXXFLAGS += ["-Od"]
68 else:
69     CXXFLAGS += ["-O0"]