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 = [
|
||||
"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({
|
||||
"@org_tensorflow//tensorflow:linux_aarch64": [
|
||||
"PLATFORM_LINUX",
|
||||
@ -92,19 +99,12 @@ cc_library(
|
||||
"aws-cpp-sdk-s3/include/",
|
||||
],
|
||||
deps = [
|
||||
"@curl",
|
||||
"@boringssl//:crypto",
|
||||
"@aws-c-common",
|
||||
"@aws-c-event-stream",
|
||||
"@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(
|
||||
|
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([
|
||||
"source/**/*.c",
|
||||
"include/**/*.h",
|
||||
"include/**/*.inl"
|
||||
"include/**/*.inl",
|
||||
]),
|
||||
hdrs = [
|
||||
"include/aws/common/config.h",
|
||||
@ -40,16 +40,15 @@ cc_library(
|
||||
"include/",
|
||||
],
|
||||
deps = [
|
||||
|
||||
],
|
||||
copts = [
|
||||
"-std=c99",
|
||||
"-D_POSIX_C_SOURCE=199309L",
|
||||
"-D_GNU_SOURCE",
|
||||
"-std=c99",
|
||||
"-D_POSIX_C_SOURCE=199309L",
|
||||
"-D_GNU_SOURCE",
|
||||
],
|
||||
linkopts = [
|
||||
"-lrt",
|
||||
"-pthread",
|
||||
"-lrt",
|
||||
"-pthread",
|
||||
],
|
||||
)
|
||||
|
||||
@ -64,4 +63,3 @@ template_rule(
|
||||
"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"])
|
||||
|
||||
|
||||
cc_library(
|
||||
name = "aws-c-event-stream",
|
||||
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"])
|
||||
|
||||
|
||||
cc_library(
|
||||
name = "aws-checksums",
|
||||
srcs = glob([
|
||||
@ -24,12 +23,12 @@ cc_library(
|
||||
"@aws-c-common",
|
||||
],
|
||||
copts = [
|
||||
#"-std=c99",
|
||||
#"-D_POSIX_C_SOURCE=199309L",
|
||||
#"-D_GNU_SOURCE",
|
||||
#"-std=c99",
|
||||
#"-D_POSIX_C_SOURCE=199309L",
|
||||
#"-D_GNU_SOURCE",
|
||||
],
|
||||
linkopts = [
|
||||
#"-lrt",
|
||||
#"-pthread",
|
||||
#"-lrt",
|
||||
#"-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",
|
||||
build_file = "//third_party/aws:BUILD.bazel",
|
||||
)
|
||||
|
||||
third_party_http_archive(
|
||||
|
||||
third_party_http_archive(
|
||||
name = "aws-c-common",
|
||||
urls = [
|
||||
"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",
|
||||
strip_prefix = "aws-c-common-0.4.29",
|
||||
build_file = "//third_party/aws:aws-c-common.bazel",
|
||||
)
|
||||
|
||||
third_party_http_archive(
|
||||
|
||||
third_party_http_archive(
|
||||
name = "aws-c-event-stream",
|
||||
urls = [
|
||||
"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",
|
||||
build_file = "//third_party/aws:aws-c-event-stream.bazel",
|
||||
)
|
||||
|
||||
third_party_http_archive(
|
||||
|
||||
third_party_http_archive(
|
||||
name = "aws-checksums",
|
||||
urls = [
|
||||
"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",
|
||||
build_file = "//third_party/aws:aws-checksums.bazel",
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user