diff --git a/build_tools/bazel/workspace.bzl b/build_tools/bazel/workspace.bzl index 244d5e37e0f0..7d5c8644d466 100644 --- a/build_tools/bazel/workspace.bzl +++ b/build_tools/bazel/workspace.bzl @@ -94,3 +94,10 @@ def configure_iree_submodule_deps(iree_repo_alias = "@", iree_path = "./"): build_file = iree_repo_alias + "//:build_tools/third_party/torch-mlir-dialects/BUILD.overlay", path = paths.join(iree_path, "third_party/torch-mlir-dialects"), ) + + maybe( + native.new_local_repository, + name = "webgpu_headers", + build_file = iree_repo_alias + "//:build_tools/third_party/webgpu-headers/BUILD.overlay", + path = paths.join(iree_path, "third_party/webgpu-headers"), + ) diff --git a/build_tools/third_party/webgpu-headers/BUILD.overlay b/build_tools/third_party/webgpu-headers/BUILD.overlay new file mode 100644 index 000000000000..8feff9c07eb4 --- /dev/null +++ b/build_tools/third_party/webgpu-headers/BUILD.overlay @@ -0,0 +1,13 @@ +# Copyright 2022 The IREE Authors +# +# Licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "webgpu_headers", + hdrs = ["webgpu.h"], + include_prefix = "third_party/webgpu-headers", +)