Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: third_party/boringssl/BUILD.gn

Issue 428753004: BoringSSL: roll DEPS and enable dynamic visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix quotes in GN file. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | third_party/boringssl/boringssl.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boringssl/BUILD.gn
diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn
index 3308b25f392480e0f7a34d4d1d8be347098bbfed..50d749a42ca5b033bb8926eaa544a448821c8cf6 100644
--- a/third_party/boringssl/BUILD.gn
+++ b/third_party/boringssl/BUILD.gn
@@ -6,6 +6,11 @@
config("openssl_config") {
include_dirs = []
include_dirs += [ "src/include" ]
+ if (is_component_build) {
+ defines += [
+ "BORINGSSL_SHARED_LIBRARY",
+ ]
+ }
}
# Config internal to this build file.
@@ -26,7 +31,12 @@ component("boringssl") {
direct_dependent_configs = [ ":openssl_config" ]
cflags = []
- defines = []
+ defines = [ "BORINGSSL_IMPLEMENTATION" ]
+ if (is_component_build) {
+ defines += [
+ "BORINGSSL_SHARED_LIBRARY",
+ ]
+ }
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
@@ -63,15 +73,4 @@ component("boringssl") {
} else {
defines += [ "OPENSSL_NO_ASM" ]
}
-
- if (is_component_build) {
- if (!is_win) {
- configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
- }
- if (is_posix && !is_mac) {
- # Avoid link failures on Linux x86-64.
- # See http://rt.openssl.org/Ticket/Display.html?id=2466&user=guest&pass=guest
- ldflags = [ "-Wl,-Bsymbolic" ]
- }
- }
}
« no previous file with comments | « DEPS ('k') | third_party/boringssl/boringssl.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698