Skip to content

Commit f4f69c3

Browse files
committed
Add AWS modules (aws-c-*, aws-checksums, aws-s2n-tls)
The sources.json uses unstable urls from tags as there are no stable release urls. @bazel-io skip_check unstable_url
1 parent dc7bde5 commit f4f69c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1681
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
module(
3+
name = "aws-c-auth",
4+
version = "0.9.6",
5+
compatibility_level = 1,
6+
bazel_compatibility = [">=7.2.1"],
7+
)
8+
bazel_dep(name = "aws-c-http", version = "0.10.10")
9+
bazel_dep(name = "aws-c-sdkutils", version = "0.2.4")
10+
bazel_dep(name = "rules_cc", version = "0.2.16")
11+
bazel_dep(name = "bazel_skylib", version = "1.9.0")
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Description:
2+
# AWS C Auth
3+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
4+
5+
load("@bazel_skylib//rules:build_test.bzl", "build_test")
6+
7+
package(default_visibility = ["//visibility:public"])
8+
9+
licenses(["notice"]) # Apache 2.0
10+
11+
exports_files(["LICENSE"])
12+
13+
cc_library(
14+
name = "aws-c-auth",
15+
srcs = glob([
16+
"source/*.c",
17+
]),
18+
hdrs = glob([
19+
"include/aws/auth/**/*.h",
20+
]),
21+
includes = ["include"],
22+
deps = [
23+
"@aws-c-http",
24+
"@aws-c-sdkutils",
25+
],
26+
)
27+
28+
build_test(
29+
name = "build_test",
30+
targets = [
31+
":aws-c-auth",
32+
],
33+
)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
module(
3+
name = "aws-c-auth",
4+
version = "0.9.6",
5+
compatibility_level = 1,
6+
bazel_compatibility = [">=7.2.1"],
7+
)
8+
bazel_dep(name = "aws-c-http", version = "0.10.10")
9+
bazel_dep(name = "aws-c-sdkutils", version = "0.2.4")
10+
bazel_dep(name = "rules_cc", version = "0.2.16")
11+
bazel_dep(name = "bazel_skylib", version = "1.9.0")
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
matrix:
2+
platform:
3+
- debian11
4+
- ubuntu2204
5+
- macos
6+
- windows
7+
bazel:
8+
- 7.x
9+
- 8.x
10+
11+
tasks:
12+
verify_targets:
13+
name: Verify build targets
14+
platform: ${{ platform }}
15+
bazel: ${{ bazel }}
16+
build_targets:
17+
- '@aws-c-auth//...'
18+
build_flags:
19+
- '--cxxopt=-std=c++17'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"type": "archive",
3+
"url": "https://github.com/awslabs/aws-c-auth/archive/refs/tags/v0.9.6.tar.gz",
4+
"integrity": "sha256-JEjpOdkkcxqJG+w09tp2TTo0r9Urn1o+YUuxv5bmRS0=",
5+
"strip_prefix": "aws-c-auth-0.9.6",
6+
"overlay": {
7+
"BUILD.bazel": "sha256-Lr9OgWypM4Gni05O+HoSkGLZ1fGAhbW6InDY0OXYIJw=",
8+
"MODULE.bazel": "sha256-U885dzZoiJvNiyeD/KTtSJG6AtWTeotmszprsD1Y6wQ="
9+
}
10+
}

modules/aws-c-auth/metadata.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"homepage": "https://github.com/awslabs/aws-c-auth",
3+
"maintainers": [
4+
{
5+
"github": "laramiel",
6+
"github_user_id": 9807819,
7+
"name": "Laramie Leavitt"
8+
}
9+
],
10+
"repository": [
11+
"github:awslabs/aws-c-auth"
12+
],
13+
"versions": [
14+
"0.9.6"
15+
],
16+
"yanked_versions": {}
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
module(
3+
name = "aws-c-cal",
4+
version = "0.9.13",
5+
compatibility_level = 1,
6+
bazel_compatibility = [">=7.2.1"],
7+
)
8+
bazel_dep(name = "aws-c-common", version = "0.12.6")
9+
bazel_dep(name = "boringssl", version = "0.20260211.0")
10+
bazel_dep(name = "platforms", version = "1.0.0")
11+
bazel_dep(name = "rules_cc", version = "0.2.16")
12+
bazel_dep(name = "bazel_skylib", version = "1.9.0")
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Description:
2+
# AWS C Cal
3+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
4+
5+
load("@bazel_skylib//rules:build_test.bzl", "build_test")
6+
7+
package(default_visibility = ["//visibility:public"])
8+
9+
licenses(["notice"]) # Apache 2.0
10+
11+
cc_library(
12+
name = "aws-c-cal",
13+
srcs = glob([
14+
"source/*.c",
15+
"source/shared/ed25519.c",
16+
"source/shared/lccrypto_common.c",
17+
"source/shared/ref_hkdf.c",
18+
]) + select({
19+
"@platforms//os:windows": glob([
20+
"source/windows/*.c",
21+
]),
22+
"@platforms//os:linux": glob([
23+
"source/unix/*.c",
24+
]),
25+
"@platforms//os:osx": glob([
26+
"source/darwin/*.c",
27+
"source/darwin/*.h",
28+
]),
29+
}),
30+
hdrs = glob([
31+
"include/aws/cal/*.h",
32+
"include/aws/cal/private/*.h",
33+
]),
34+
includes = ["include"],
35+
linkopts = select({
36+
"@platforms//os:windows": [
37+
"-DEFAULTLIB:bcrypt.lib",
38+
],
39+
"@platforms//os:macos": [
40+
"-framework CoreFoundation",
41+
"-framework Security",
42+
],
43+
"//conditions:default": [],
44+
}) + select({
45+
"@rules_cc//cc/compiler:mingw-gcc": [
46+
"-lbcrypt",
47+
],
48+
"//conditions:default": [],
49+
}),
50+
deps = [
51+
":darwin_headers",
52+
"@aws-c-common",
53+
"@boringssl//:crypto",
54+
],
55+
)
56+
57+
cc_library(
58+
name = "darwin_headers",
59+
hdrs = glob([
60+
"source/darwin/**/*.h",
61+
]),
62+
strip_include_prefix = "source/darwin",
63+
visibility = ["//visibility:private"],
64+
)
65+
66+
build_test(
67+
name = "build_test",
68+
targets = [
69+
":aws-c-cal",
70+
],
71+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
module(
3+
name = "aws-c-cal",
4+
version = "0.9.13",
5+
compatibility_level = 1,
6+
bazel_compatibility = [">=7.2.1"],
7+
)
8+
bazel_dep(name = "aws-c-common", version = "0.12.6")
9+
bazel_dep(name = "boringssl", version = "0.20260211.0")
10+
bazel_dep(name = "platforms", version = "1.0.0")
11+
bazel_dep(name = "rules_cc", version = "0.2.16")
12+
bazel_dep(name = "bazel_skylib", version = "1.9.0")
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
matrix:
2+
platform:
3+
- debian11
4+
- ubuntu2204
5+
- macos
6+
- windows
7+
bazel:
8+
- 7.x
9+
- 8.x
10+
11+
tasks:
12+
verify_targets:
13+
name: Verify build targets
14+
platform: ${{ platform }}
15+
bazel: ${{ bazel }}
16+
build_targets:
17+
- '@aws-c-cal//...'
18+
build_flags:
19+
- '--cxxopt=-std=c++17'

0 commit comments

Comments
 (0)