commit | e9cc8e415794a4788431aaf5beb774787728cce2 | [log] [tgz] |
---|---|---|
author | Jaswant Panchumarti <jaswant.panchumarti@kitware.com> | Tue Jul 02 16:26:36 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jul 02 16:26:36 2024 +0000 |
tree | 75a31c28e98b04970a536b14114ed70fe243ed71 | |
parent | 00b0fd6ecc8bd651db720cb4e06764a6f7debd40 [diff] |
Fix linker errors for android webgpu library - The android build failed because `webgpu_dawn` was changed into a shared library in https://dawn-review.googlesource.com/c/dawn/+/194920. As a result, `bundle_libraries` failed to enumerate it's objects and dependencies correctly. - In order to avoid having two bundled libraries for android, the `webgpu_dawn` library is no longer built in favor of the `webgpu_c_bundled` library which gets built in tools/android/webgpu/src/main/cpp/CMakeLists.txt. - This CL adapts the logic for the android library in light of recent updates to the CMake code. - The intermediate `native_dawn` library is removed and it's sources along with `webgpu_dawn_native_proc.cpp` are directly sent to the `webgpu_c_bundled` library. - Finally, `webgpu_c_bundled` links with `dawn_public_config` in order to inherit the public include directories for `dawn/webgpu.h`. - Since `webgpu_dawn` is no longer built for android, this CL changes the custom copy command to depend upon `dawncpp_headers` which generates the `dawn/webgpu.h` header. Change-Id: I5440f37fac26c977b3ee09cce14b8ecfbad0e14d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/196394 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Jaswant Panchumarti <jaswant.panchumarti@kitware.com> Reviewed-by: Jim Blackler <jimblackler@google.com> Reviewed-by: Alex Benton <bentonian@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.