[bazel] Format toplevel BUILD file with buildifier
This change was generated with
buildifier -type build -lint=fix -warnings=all util/BUILD.toplevel
Change-Id: I4200fb484ec205c37abcb9b657c4ce74796a411c
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/40324
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/util/BUILD.toplevel b/util/BUILD.toplevel
index cba9ccb..5e62b44 100644
--- a/util/BUILD.toplevel
+++ b/util/BUILD.toplevel
@@ -12,28 +12,27 @@
# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
-licenses(["notice"])
-
-exports_files(["LICENSE"])
-
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
-
load(
":BUILD.generated.bzl",
"crypto_headers",
"crypto_internal_headers",
"crypto_sources",
- "crypto_sources_linux_x86_64",
"crypto_sources_linux_ppc64le",
+ "crypto_sources_linux_x86_64",
"crypto_sources_mac_x86_64",
"fips_fragments",
"ssl_headers",
"ssl_internal_headers",
"ssl_sources",
- "tool_sources",
"tool_headers",
+ "tool_sources",
)
+licenses(["notice"])
+
+exports_files(["LICENSE"])
+
config_setting(
name = "linux_x86_64",
values = {"cpu": "k8"},
@@ -56,7 +55,7 @@
config_setting(
name = "android",
- values = {"crosstool_top": "//external:android/crosstool"}
+ values = {"crosstool_top": "//external:android/crosstool"},
)
posix_copts = [
@@ -84,8 +83,8 @@
]
boringssl_copts = select({
- ":linux_x86_64": posix_copts,
":linux_ppc64le": posix_copts,
+ ":linux_x86_64": posix_copts,
":mac_x86_64": posix_copts,
":windows_x86_64": [
"-DWIN32_LEAN_AND_MEAN",
@@ -95,8 +94,8 @@
})
crypto_sources_asm = select({
- ":linux_x86_64": crypto_sources_linux_x86_64,
":linux_ppc64le": crypto_sources_linux_ppc64le,
+ ":linux_x86_64": crypto_sources_linux_x86_64,
":mac_x86_64": crypto_sources_mac_x86_64,
"//conditions:default": [],
})
@@ -110,8 +109,8 @@
]
boringssl_copts_c11 = boringssl_copts + select({
- ":linux_x86_64": posix_copts_c11,
":linux_ppc64le": posix_copts_c11,
+ ":linux_x86_64": posix_copts_c11,
":mac_x86_64": posix_copts_c11,
"//conditions:default": [],
})
@@ -123,8 +122,8 @@
]
boringssl_copts_cxx = boringssl_copts + select({
- ":linux_x86_64": posix_copts_cxx,
":linux_ppc64le": posix_copts_cxx,
+ ":linux_x86_64": posix_copts_cxx,
":mac_x86_64": posix_copts_cxx,
"//conditions:default": [],
})
@@ -136,10 +135,10 @@
copts = boringssl_copts_c11,
includes = ["src/include"],
linkopts = select({
- ":mac_x86_64": [],
# Android supports pthreads, but does not provide a libpthread
# to link against.
":android": [],
+ ":mac_x86_64": [],
":windows_x86_64": ["-defaultlib:advapi32.lib"],
"//conditions:default": ["-lpthread"],
}),