Skip to content

Commit 7528496

Browse files
authored
bazel-registry: Add libsxg@0.0.0-210708-beaa393.envoy (#3550)
Signed-off-by: Ryan Northey <ryan@synca.io>
1 parent 0835a1a commit 7528496

File tree

6 files changed

+114
-0
lines changed

6 files changed

+114
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module(
2+
name = "libsxg",
3+
version = "0.0.0-210708-beaa393.envoy",
4+
compatibility_level = 1,
5+
)
6+
7+
bazel_dep(name = "rules_cc", version = "0.1.1")
8+
bazel_dep(name = "boringssl", version = "0.20250415.0")
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
3+
package(default_visibility = ["//visibility:public"])
4+
5+
licenses(["notice"]) # Apache-2.0
6+
7+
cc_library(
8+
name = "libsxg",
9+
srcs = [
10+
"src/sxg_buffer.c",
11+
"src/sxg_buffer_debug.c",
12+
"src/sxg_cbor.c",
13+
"src/sxg_codec.c",
14+
"src/sxg_encoded_response.c",
15+
"src/sxg_generate.c",
16+
"src/sxg_header.c",
17+
"src/sxg_raw_response.c",
18+
"src/sxg_sig.c",
19+
"src/sxg_signer_list.c",
20+
],
21+
hdrs = [
22+
"include/libsxg.h",
23+
] + glob([
24+
"include/libsxg/*.h",
25+
"include/libsxg/internal/*.h",
26+
]),
27+
copts = [
28+
"-std=c99",
29+
"-D_POSIX_C_SOURCE=200112L",
30+
],
31+
includes = ["include"],
32+
deps = [
33+
"@boringssl//:crypto",
34+
],
35+
)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2019 Google Inc.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
///////////////////////////////////////////////////////////////////////////////
16+
17+
#ifndef LIBSXG_H_
18+
#define LIBSXG_H_
19+
20+
#include "libsxg/sxg_buffer.h"
21+
// SXG_WITH_CERT_CHAIN is not defined - cert_chain not included
22+
#include "libsxg/sxg_encoded_response.h"
23+
#include "libsxg/sxg_generate.h"
24+
#include "libsxg/sxg_header.h"
25+
#include "libsxg/sxg_raw_response.h"
26+
#include "libsxg/sxg_signer_list.h"
27+
#include "libsxg/sxg_status.h"
28+
29+
#endif // LIBSXG_H_
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
matrix:
2+
platform:
3+
- debian11
4+
- ubuntu2204
5+
- macos
6+
- macos_arm64
7+
bazel:
8+
- 8.x
9+
- 7.x
10+
tasks:
11+
verify_targets:
12+
name: Verify build targets
13+
platform: ${{ platform }}
14+
bazel: ${{ bazel }}
15+
build_targets:
16+
- '@libsxg//:libsxg'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"url": "https://github.com/google/libsxg/archive/beaa3939b76f8644f6833267e9f2462760838f18.tar.gz",
3+
"integrity": "sha256-CCv4RAR6mu7A04goPV7caL0ivPTTLrWlZmVK6JlWrR8=",
4+
"strip_prefix": "libsxg-beaa3939b76f8644f6833267e9f2462760838f18",
5+
"overlay": {
6+
"BUILD.bazel": "sha256-SNSt/P1+Qcme74aKiXMEtjft07m34ak81zrTiQJFOqI=",
7+
"include/libsxg.h": "sha256-yvW4je5JO/hZ69v1dJgXtPrUbuEjYXJdWzteLY1TXuA="
8+
}
9+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"homepage": "https://github.com/google/libsxg",
3+
"maintainers": [
4+
{
5+
"email": "maintainers@envoyproxy.io",
6+
"github": "envoyproxy",
7+
"name": "Envoy Proxy Maintainers"
8+
}
9+
],
10+
"repository": [
11+
"github:google/libsxg"
12+
],
13+
"versions": [
14+
"0.0.0-210708-beaa393.envoy"
15+
],
16+
"yanked_versions": {}
17+
}

0 commit comments

Comments
 (0)