Fix build @com_github_ethereum_c_kzg_4844//... (#12890)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Preston Van Loon 2023-09-12 11:59:42 -05:00 committed by GitHub
parent 9ecf4d34f5
commit 0ccfc74e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,25 +1,8 @@
--- a/src/BUILD.bazel 1969-12-31 18:00:00.000000000 -0600
+++ b/src/BUILD.bazel 2023-06-14 14:04:30.351403498 -0500
@@ -0,0 +1,8 @@
+cc_library(
+ name = "kzg",
+ hdrs = [
+ "c_kzg_4844.c",
+ "c_kzg_4844.h",
+ ],
+ visibility = ["//visibility:public"],
+)
--- a/bindings/go/blst_headers/BUILD.bazel 1969-12-31 18:00:00.000000000 -0600
+++ b/bindings/go/blst_headers/BUILD.bazel 2023-06-14 13:24:09.719404241 -0500
@@ -0,0 +1,5 @@
+cc_library(
+ name = "hdrs",
+ hdrs = glob(["*.h"]),
+ visibility = ["//visibility:public"],
+)
--- a/bindings/go/BUILD.bazel 2023-06-14 15:06:46.875902949 -0500
+++ b/bindings/go/BUILD.bazel 2023-06-14 15:07:05.491898747 -0500
@@ -4,10 +4,14 @@
diff --git a/bindings/go/BUILD.bazel b/bindings/go/BUILD.bazel
index 7e49df7..1d476f7 100644
--- a/bindings/go/BUILD.bazel
+++ b/bindings/go/BUILD.bazel
@@ -4,10 +4,14 @@ load("@prysm//tools/go:def.bzl", "go_library")
go_library(
name = "go",
srcs = ["main.go"],
@ -36,3 +19,28 @@
],
importpath = "github.com/ethereum/c-kzg-4844/bindings/go",
visibility = ["//visibility:public"],
diff --git a/bindings/go/blst_headers/BUILD.bazel b/bindings/go/blst_headers/BUILD.bazel
new file mode 100644
index 0000000..82cad2c
--- /dev/null
+++ b/bindings/go/blst_headers/BUILD.bazel
@@ -0,0 +1,5 @@
+cc_library(
+ name = "hdrs",
+ hdrs = glob(["*.h"]),
+ visibility = ["//visibility:public"],
+)
diff --git a/src/BUILD.bazel b/src/BUILD.bazel
new file mode 100644
index 0000000..b3f845d
--- /dev/null
+++ b/src/BUILD.bazel
@@ -0,0 +1,8 @@
+cc_library(
+ name = "kzg",
+ hdrs = [
+ "c_kzg_4844.c",
+ "c_kzg_4844.h",
+ ],
+ visibility = ["//visibility:public"],
+)