blob: 72d5a5611f00ba07939536c30ee9dcc79a0612ea [file] [log] [blame]
Serge Bazanski97b5cd72023-07-28 17:14:50 +00001diff -ur com_github_cloudflare_circl.orig/dh/x25519/BUILD.bazel com_github_cloudflare_circl/dh/x25519/BUILD.bazel
2--- com_github_cloudflare_circl.orig/dh/x25519/BUILD.bazel 2023-07-24 19:46:59.144004038 +0200
3+++ com_github_cloudflare_circl/dh/x25519/BUILD.bazel 2023-07-24 19:49:41.783441209 +0200
4@@ -15,6 +15,9 @@
5 ],
6 importpath = "github.com/cloudflare/circl/dh/x25519",
7 visibility = ["//visibility:public"],
8+ embed = [
9+ "//math/fp25519:headers",
10+ ],
11 deps = [
12 "//math/fp25519",
13 ] + select({
14diff -ur com_github_cloudflare_circl.orig/dh/x448/BUILD.bazel com_github_cloudflare_circl/dh/x448/BUILD.bazel
15--- com_github_cloudflare_circl.orig/dh/x448/BUILD.bazel 2023-07-24 19:46:59.144004038 +0200
16+++ com_github_cloudflare_circl/dh/x448/BUILD.bazel 2023-07-24 19:52:58.138976931 +0200
17@@ -15,6 +15,9 @@
18 ],
19 importpath = "github.com/cloudflare/circl/dh/x448",
20 visibility = ["//visibility:public"],
21+ embed = [
22+ "//math/fp448:headers",
23+ ],
24 deps = [
25 "//math/fp448",
26 ] + select({
27diff -ur com_github_cloudflare_circl.orig/math/fp25519/BUILD.bazel com_github_cloudflare_circl/math/fp25519/BUILD.bazel
28--- com_github_cloudflare_circl.orig/math/fp25519/BUILD.bazel 2023-07-24 19:46:59.160003952 +0200
29+++ com_github_cloudflare_circl/math/fp25519/BUILD.bazel 2023-07-24 19:50:26.752351128 +0200
30@@ -1,4 +1,4 @@
31-load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
32+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_source", "go_test")
33
34 go_library(
35 name = "fp25519",
36@@ -22,6 +22,14 @@
37 }),
38 )
39
40+go_source(
41+ name = "headers",
42+ srcs = [
43+ "fp_amd64.h",
44+ ],
45+ visibility = ["//visibility:public"],
46+)
47+
48 alias(
49 name = "go_default_library",
50 actual = ":fp25519",
51diff -ur com_github_cloudflare_circl.orig/math/fp448/BUILD.bazel com_github_cloudflare_circl/math/fp448/BUILD.bazel
52--- com_github_cloudflare_circl.orig/math/fp448/BUILD.bazel 2023-07-24 19:46:59.160003952 +0200
53+++ com_github_cloudflare_circl/math/fp448/BUILD.bazel 2023-07-24 19:54:32.569697606 +0200
54@@ -1,4 +1,4 @@
55-load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
56+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_source", "go_test")
57
58 go_library(
59 name = "fp448",
60@@ -22,6 +22,14 @@
61 }),
62 )
63
64+go_source(
65+ name = "headers",
66+ srcs = [
67+ "fp_amd64.h",
68+ ],
69+ visibility = ["//visibility:public"],
70+)
71+
72 alias(
73 name = "go_default_library",
74 actual = ":fp448",