Skip to content

Commit

Permalink
Add webgpu_headers local_repository for Bazel.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Oct 4, 2022
1 parent 2be341d commit 4f1a6c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build_tools/bazel/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)
13 changes: 13 additions & 0 deletions build_tools/third_party/webgpu-headers/BUILD.overlay
Original file line number Diff line number Diff line change
@@ -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",
)

0 comments on commit 4f1a6c0

Please sign in to comment.