2018-06-13 20:43:48 +03: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-16 00:57:37 +03:00
|
|
|
BUG_COMPONENT = ('Core', 'Graphics: WebGPU')
|
2018-06-13 20:43:48 +03:00
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += [
|
|
|
|
'mochitest/mochitest-no-pref.ini',
|
|
|
|
'mochitest/mochitest.ini',
|
|
|
|
]
|
|
|
|
|
2019-10-16 00:57:37 +03:00
|
|
|
DIRS += [
|
2019-11-14 07:59:56 +03:00
|
|
|
'ffi',
|
2019-10-16 00:57:37 +03:00
|
|
|
]
|
|
|
|
|
2018-06-13 20:43:48 +03:00
|
|
|
h_and_cpp = [
|
|
|
|
'Adapter',
|
|
|
|
'BindGroup',
|
|
|
|
'BindGroupLayout',
|
|
|
|
'Buffer',
|
2019-10-02 19:46:03 +03:00
|
|
|
'CanvasContext',
|
2018-06-13 20:43:48 +03:00
|
|
|
'CommandBuffer',
|
|
|
|
'CommandEncoder',
|
2019-10-02 19:46:03 +03:00
|
|
|
'ComputePassEncoder',
|
2018-06-13 20:43:48 +03:00
|
|
|
'ComputePipeline',
|
|
|
|
'Device',
|
2019-10-02 19:46:03 +03:00
|
|
|
'DeviceLostInfo',
|
2018-06-13 20:43:48 +03:00
|
|
|
'Fence',
|
|
|
|
'Instance',
|
|
|
|
'ObjectModel',
|
2019-10-02 19:46:03 +03:00
|
|
|
'OutOfMemoryError',
|
2018-06-13 20:43:48 +03:00
|
|
|
'PipelineLayout',
|
|
|
|
'Queue',
|
2019-10-02 19:46:03 +03:00
|
|
|
'RenderBundle',
|
|
|
|
'RenderBundleEncoder',
|
|
|
|
'RenderPassEncoder',
|
2018-06-13 20:43:48 +03:00
|
|
|
'RenderPipeline',
|
|
|
|
'Sampler',
|
|
|
|
'ShaderModule',
|
|
|
|
'SwapChain',
|
|
|
|
'Texture',
|
|
|
|
'TextureView',
|
2019-10-02 19:46:03 +03:00
|
|
|
'ValidationError',
|
2018-06-13 20:43:48 +03: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 07:59:56 +03: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 20:07:18 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'):
|
|
|
|
CXXFLAGS += ['-Werror=implicit-int-conversion']
|
|
|
|
|
2019-11-14 07:59:56 +03:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2018-06-13 20:43:48 +03:00
|
|
|
FINAL_LIBRARY = 'xul'
|