Bug 1857841 - pt 3. Add a new page kind named "fresh" r=glandium
[gecko.git] / dom / webgpu / moz.build
blob9d7b81ba3fea40cf12511e679bd4b752beb4d121
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 with Files("**"):
8     BUG_COMPONENT = ("Core", "Graphics: WebGPU")
10 MOCHITEST_MANIFESTS += [
11     "mochitest/mochitest-no-pref.toml",
12     "mochitest/mochitest.toml",
15 DIRS += []
17 h_and_cpp = [
18     "Adapter",
19     "BindGroup",
20     "BindGroupLayout",
21     "Buffer",
22     "CanvasContext",
23     "CommandBuffer",
24     "CommandEncoder",
25     "CompilationInfo",
26     "CompilationMessage",
27     "ComputePassEncoder",
28     "ComputePipeline",
29     "Device",
30     "DeviceLostInfo",
31     "Error",
32     "ExternalTexture",
33     "Instance",
34     "InternalError",
35     "ObjectModel",
36     "OutOfMemoryError",
37     "PipelineLayout",
38     "QuerySet",
39     "Queue",
40     "RenderBundle",
41     "RenderBundleEncoder",
42     "RenderPassEncoder",
43     "RenderPipeline",
44     "Sampler",
45     "ShaderModule",
46     "SupportedFeatures",
47     "SupportedLimits",
48     "Texture",
49     "TextureView",
50     "Utility",
51     "ValidationError",
53 EXPORTS.mozilla.webgpu += [x + ".h" for x in h_and_cpp]
54 UNIFIED_SOURCES += [x + ".cpp" for x in h_and_cpp]
56 IPDL_SOURCES += [
57     "ipc/PWebGPU.ipdl",
58     "ipc/PWebGPUTypes.ipdlh",
61 EXPORTS.mozilla.webgpu += [
62     "ipc/WebGPUChild.h",
63     "ipc/WebGPUParent.h",
64     "ipc/WebGPUSerialize.h",
65     "ipc/WebGPUTypes.h",
68 UNIFIED_SOURCES += [
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",
77     ]
78     UNIFIED_SOURCES += [
79         "ExternalTextureD3D11.cpp",
80     ]
82 if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
83     CXXFLAGS += ["-Werror=implicit-int-conversion", "-Wno-shorten-64-to-32"]
84     CXXFLAGS += ["-Werror=switch"]
86 include("/ipc/chromium/chromium-config.mozbuild")
88 FINAL_LIBRARY = "xul"