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/.
8 BUG_COMPONENT = ("Core", "Graphics: WebGPU")
10 MOCHITEST_MANIFESTS += [
11 "mochitest/mochitest-no-pref.toml",
12 "mochitest/mochitest.toml",
41 "RenderBundleEncoder",
53 EXPORTS.mozilla.webgpu += [x + ".h" for x in h_and_cpp]
54 UNIFIED_SOURCES += [x + ".cpp" for x in h_and_cpp]
58 "ipc/PWebGPUTypes.ipdlh",
61 EXPORTS.mozilla.webgpu += [
64 "ipc/WebGPUSerialize.h",
69 "ipc/WebGPUChild.cpp",
70 "ipc/WebGPUParent.cpp",
73 if CONFIG["MOZ_ENABLE_D3D10_LAYER"]:
74 DEFINES["MOZ_ENABLE_D3D10_LAYER"] = True
75 EXPORTS.mozilla.webgpu += [
76 "ExternalTextureD3D11.h",
79 "ExternalTextureD3D11.cpp",
82 if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
83 CXXFLAGS += ["-Werror=implicit-int-conversion"]
84 CXXFLAGS += ["-Werror=switch"]
86 include("/ipc/chromium/chromium-config.mozbuild")