[boringssl] Update a few GN defects
Fixed public dependencies and configs, and formatted.
Change-Id: Ia60682236f6e1adabfb7945a6e3ed46d57c9e4ec
diff --git a/BUILD.gn b/BUILD.gn
index 6f1be05..a8198b9 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//packages/package.gni")
+import("//build/package.gni")
import("BUILD.generated.gni")
import("BUILD.generated_tests.gni")
@@ -11,12 +11,11 @@
group("boringssl") {
public_deps = [
- ":libcrypto",
- ":libssl",
+ ":crypto",
+ ":ssl",
]
}
-
################
# libcrypto.so #
################
@@ -33,8 +32,6 @@
}
shared_library("crypto") {
- visibility = [ ":*" ]
- public_configs = [ ":boringssl_config" ]
sources = crypto_sources
if (current_cpu == "arm64") {
if (is_mac) {
@@ -53,10 +50,10 @@
assert(false, "unsupported OS: {{current_os}}")
}
}
+ public_configs = [ ":boringssl_config" ]
configs += [ ":internal_config" ]
}
-
#############
# libssl.so #
#############
@@ -77,14 +74,14 @@
}
shared_library("ssl") {
- visibility = [ ":*" ]
- public_configs = [ ":boringssl_config" ]
sources = ssl_sources
+ public_configs = [ ":boringssl_config" ]
configs += [ ":internal_config" ]
- deps = [ ":crypto" ]
+ deps = [
+ ":crypto",
+ ]
}
-
##########################
# bssl command line tool #
##########################
@@ -106,7 +103,6 @@
}
}
-
# See //third_party/boringssl/tool/CMakeLists.txt
executable("bssl") {
visibility = [ ":*" ]
@@ -134,7 +130,6 @@
]
}
-
##############
# Unit tests #
##############