2018-06-13 17:43:48 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
|
|
# 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/.
|
|
|
|
|
|
|
|
with Files("**"):
|
2019-10-15 21:57:37 +00:00
|
|
|
BUG_COMPONENT = ("Core", "Graphics: WebGPU")
|
2018-06-13 17:43:48 +00:00
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += [
|
|
|
|
"mochitest/mochitest-no-pref.ini",
|
|
|
|
"mochitest/mochitest.ini",
|
|
|
|
]
|
|
|
|
|
2019-10-15 21:57:37 +00:00
|
|
|
DIRS += []
|
|
|
|
|
2018-06-13 17:43:48 +00:00
|
|
|
h_and_cpp = [
|
|
|
|
"Adapter",
|
2021-03-04 21:25:46 +00:00
|
|
|
"AdapterFeatures",
|
2021-08-18 04:58:38 +00:00
|
|
|
"AdapterLimits",
|
2018-06-13 17:43:48 +00:00
|
|
|
"BindGroup",
|
|
|
|
"BindGroupLayout",
|
|
|
|
"Buffer",
|
2019-10-02 16:46:03 +00:00
|
|
|
"CanvasContext",
|
2018-06-13 17:43:48 +00:00
|
|
|
"CommandBuffer",
|
|
|
|
"CommandEncoder",
|
2021-03-04 21:25:46 +00:00
|
|
|
"CompilationInfo",
|
|
|
|
"CompilationMessage",
|
2019-10-02 16:46:03 +00:00
|
|
|
"ComputePassEncoder",
|
2018-06-13 17:43:48 +00:00
|
|
|
"ComputePipeline",
|
|
|
|
"Device",
|
2019-10-02 16:46:03 +00:00
|
|
|
"DeviceLostInfo",
|
2018-06-13 17:43:48 +00:00
|
|
|
"Instance",
|
|
|
|
"ObjectModel",
|
2019-10-02 16:46:03 +00:00
|
|
|
"OutOfMemoryError",
|
2018-06-13 17:43:48 +00:00
|
|
|
"PipelineLayout",
|
2021-03-04 21:25:46 +00:00
|
|
|
"QuerySet",
|
2018-06-13 17:43:48 +00:00
|
|
|
"Queue",
|
2019-10-02 16:46:03 +00:00
|
|
|
"RenderBundle",
|
|
|
|
"RenderBundleEncoder",
|
|
|
|
"RenderPassEncoder",
|
2018-06-13 17:43:48 +00:00
|
|
|
"RenderPipeline",
|
|
|
|
"Sampler",
|
|
|
|
"ShaderModule",
|
2021-08-18 04:58:38 +00:00
|
|
|
"SwapChain",
|
2018-06-13 17:43:48 +00:00
|
|
|
"Texture",
|
|
|
|
"TextureView",
|
2019-10-02 16:46:03 +00:00
|
|
|
"ValidationError",
|
2018-06-13 17:43:48 +00:00
|
|
|
]
|
|
|
|
EXPORTS.mozilla.webgpu += [x + ".h" for x in h_and_cpp]
|
|
|
|
UNIFIED_SOURCES += [x + ".cpp" for x in h_and_cpp]
|
|
|
|
|
2019-11-14 04:59:56 +00:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
"ipc/PWebGPU.ipdl",
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.webgpu += [
|
|
|
|
"ipc/WebGPUChild.h",
|
|
|
|
"ipc/WebGPUParent.h",
|
|
|
|
"ipc/WebGPUSerialize.h",
|
|
|
|
"ipc/WebGPUTypes.h",
|
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
"ipc/WebGPUChild.cpp",
|
|
|
|
"ipc/WebGPUParent.cpp",
|
|
|
|
]
|
|
|
|
|
2019-12-10 17:07:18 +00:00
|
|
|
if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
|
|
|
|
CXXFLAGS += ["-Werror=implicit-int-conversion"]
|
|
|
|
|
2019-11-14 04:59:56 +00:00
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
|
2018-06-13 17:43:48 +00:00
|
|
|
FINAL_LIBRARY = "xul"
|