[cmake] Handle cross compiling + protobufs Upstream (chromium) recently changed the way that our version of protobuf is built to generating some of the .cc/.h files from .protos on the fly instead of having them checked in. This works 'fine' when building with the same host/target, since the built protoc can be used to generate the files during the build. This falls over when cross compiling for a different architecture, since the built protoc will not work on the host machine. The standard fix for this is to allow the user to provide a host protoc via PROTOC_EXECUTABLE and indicate that cross compiling is occurring via CMAKE_CROSSCOMPILING, which is what this CL sets up. Fixes: 524776852 Change-Id: I6bea23af19f40eed56354226160426ce984c4987 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/317655 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: James Price <jrprice@google.com> Auto-Submit: Ryan Harrison <rharrison@chromium.org>
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.