Run buildifier on third part aws bazel files
This commit is contained in:
parent
7b2f406c35
commit
0cea453964
18
third_party/aws/BUILD.bazel
vendored
18
third_party/aws/BUILD.bazel
vendored
@ -64,6 +64,13 @@ cc_library(
|
|||||||
hdrs = [
|
hdrs = [
|
||||||
"aws-cpp-sdk-core/include/aws/core/SDKConfig.h",
|
"aws-cpp-sdk-core/include/aws/core/SDKConfig.h",
|
||||||
],
|
],
|
||||||
|
copts = [
|
||||||
|
"-DENABLE_OPENSSL_ENCRYPTION",
|
||||||
|
"-DAWS_SDK_VERSION_MAJOR=1",
|
||||||
|
"-DAWS_SDK_VERSION_MINOR=7",
|
||||||
|
"-DAWS_SDK_VERSION_PATCH=266",
|
||||||
|
"-DOPENSSL_IS_BORINGSSL",
|
||||||
|
],
|
||||||
defines = select({
|
defines = select({
|
||||||
"@org_tensorflow//tensorflow:linux_aarch64": [
|
"@org_tensorflow//tensorflow:linux_aarch64": [
|
||||||
"PLATFORM_LINUX",
|
"PLATFORM_LINUX",
|
||||||
@ -92,19 +99,12 @@ cc_library(
|
|||||||
"aws-cpp-sdk-s3/include/",
|
"aws-cpp-sdk-s3/include/",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
"@curl",
|
|
||||||
"@boringssl//:crypto",
|
|
||||||
"@aws-c-common",
|
"@aws-c-common",
|
||||||
"@aws-c-event-stream",
|
"@aws-c-event-stream",
|
||||||
"@aws-checksums",
|
"@aws-checksums",
|
||||||
|
"@boringssl//:crypto",
|
||||||
|
"@curl",
|
||||||
],
|
],
|
||||||
copts = [
|
|
||||||
"-DENABLE_OPENSSL_ENCRYPTION",
|
|
||||||
"-DAWS_SDK_VERSION_MAJOR=1",
|
|
||||||
"-DAWS_SDK_VERSION_MINOR=7",
|
|
||||||
"-DAWS_SDK_VERSION_PATCH=266",
|
|
||||||
"-DOPENSSL_IS_BORINGSSL",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
template_rule(
|
template_rule(
|
||||||
|
14
third_party/aws/aws-c-common.bazel
vendored
14
third_party/aws/aws-c-common.bazel
vendored
@ -31,7 +31,7 @@ cc_library(
|
|||||||
}) + glob([
|
}) + glob([
|
||||||
"source/**/*.c",
|
"source/**/*.c",
|
||||||
"include/**/*.h",
|
"include/**/*.h",
|
||||||
"include/**/*.inl"
|
"include/**/*.inl",
|
||||||
]),
|
]),
|
||||||
hdrs = [
|
hdrs = [
|
||||||
"include/aws/common/config.h",
|
"include/aws/common/config.h",
|
||||||
@ -40,16 +40,15 @@ cc_library(
|
|||||||
"include/",
|
"include/",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
|
|
||||||
],
|
],
|
||||||
copts = [
|
copts = [
|
||||||
"-std=c99",
|
"-std=c99",
|
||||||
"-D_POSIX_C_SOURCE=199309L",
|
"-D_POSIX_C_SOURCE=199309L",
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE",
|
||||||
],
|
],
|
||||||
linkopts = [
|
linkopts = [
|
||||||
"-lrt",
|
"-lrt",
|
||||||
"-pthread",
|
"-pthread",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -64,4 +63,3 @@ template_rule(
|
|||||||
"cmakedefine AWS_HAVE_EXECINFO": "define AWS_HAVE_EXECINFO",
|
"cmakedefine AWS_HAVE_EXECINFO": "define AWS_HAVE_EXECINFO",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
1
third_party/aws/aws-c-event-stream.bazel
vendored
1
third_party/aws/aws-c-event-stream.bazel
vendored
@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2.0
|
|||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "aws-c-event-stream",
|
name = "aws-c-event-stream",
|
||||||
srcs = glob([
|
srcs = glob([
|
||||||
|
11
third_party/aws/aws-checksums.bazel
vendored
11
third_party/aws/aws-checksums.bazel
vendored
@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2.0
|
|||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "aws-checksums",
|
name = "aws-checksums",
|
||||||
srcs = glob([
|
srcs = glob([
|
||||||
@ -24,12 +23,12 @@ cc_library(
|
|||||||
"@aws-c-common",
|
"@aws-c-common",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = [
|
||||||
#"-std=c99",
|
#"-std=c99",
|
||||||
#"-D_POSIX_C_SOURCE=199309L",
|
#"-D_POSIX_C_SOURCE=199309L",
|
||||||
#"-D_GNU_SOURCE",
|
#"-D_GNU_SOURCE",
|
||||||
],
|
],
|
||||||
linkopts = [
|
linkopts = [
|
||||||
#"-lrt",
|
#"-lrt",
|
||||||
#"-pthread",
|
#"-pthread",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
15
third_party/aws/workspace.bzl
vendored
15
third_party/aws/workspace.bzl
vendored
@ -16,19 +16,19 @@ def repo():
|
|||||||
strip_prefix = "aws-sdk-cpp-1.7.266",
|
strip_prefix = "aws-sdk-cpp-1.7.266",
|
||||||
build_file = "//third_party/aws:BUILD.bazel",
|
build_file = "//third_party/aws:BUILD.bazel",
|
||||||
)
|
)
|
||||||
|
|
||||||
third_party_http_archive(
|
third_party_http_archive(
|
||||||
name = "aws-c-common",
|
name = "aws-c-common",
|
||||||
urls = [
|
urls = [
|
||||||
"http://mirror.tensorflow.org/github.com/awslabs/aws-c-common/archive/v0.4.29.tar.gz",
|
"http://mirror.tensorflow.org/github.com/awslabs/aws-c-common/archive/v0.4.29.tar.gz",
|
||||||
"https://github.com/awslabs/aws-c-common/archive/v0.4.29.tar.gz"
|
"https://github.com/awslabs/aws-c-common/archive/v0.4.29.tar.gz",
|
||||||
],
|
],
|
||||||
sha256 = "01c2a58553a37b3aa5914d9e0bf7bf14507ff4937bc5872a678892ca20fcae1f",
|
sha256 = "01c2a58553a37b3aa5914d9e0bf7bf14507ff4937bc5872a678892ca20fcae1f",
|
||||||
strip_prefix = "aws-c-common-0.4.29",
|
strip_prefix = "aws-c-common-0.4.29",
|
||||||
build_file = "//third_party/aws:aws-c-common.bazel",
|
build_file = "//third_party/aws:aws-c-common.bazel",
|
||||||
)
|
)
|
||||||
|
|
||||||
third_party_http_archive(
|
third_party_http_archive(
|
||||||
name = "aws-c-event-stream",
|
name = "aws-c-event-stream",
|
||||||
urls = [
|
urls = [
|
||||||
"https://mirror.tensorflow.org/github.com/awslabs/aws-c-event-stream/archive/v0.1.4.tar.gz",
|
"https://mirror.tensorflow.org/github.com/awslabs/aws-c-event-stream/archive/v0.1.4.tar.gz",
|
||||||
@ -38,8 +38,8 @@ def repo():
|
|||||||
strip_prefix = "aws-c-event-stream-0.1.4",
|
strip_prefix = "aws-c-event-stream-0.1.4",
|
||||||
build_file = "//third_party/aws:aws-c-event-stream.bazel",
|
build_file = "//third_party/aws:aws-c-event-stream.bazel",
|
||||||
)
|
)
|
||||||
|
|
||||||
third_party_http_archive(
|
third_party_http_archive(
|
||||||
name = "aws-checksums",
|
name = "aws-checksums",
|
||||||
urls = [
|
urls = [
|
||||||
"https://mirror.tensorflow.org/github.com/awslabs/aws-checksums/archive/v0.1.5.tar.gz",
|
"https://mirror.tensorflow.org/github.com/awslabs/aws-checksums/archive/v0.1.5.tar.gz",
|
||||||
@ -49,4 +49,3 @@ def repo():
|
|||||||
strip_prefix = "aws-checksums-0.1.5",
|
strip_prefix = "aws-checksums-0.1.5",
|
||||||
build_file = "//third_party/aws:aws-checksums.bazel",
|
build_file = "//third_party/aws:aws-checksums.bazel",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user