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

Side by Side 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: ... Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Config for us and everybody else depending on BoringSSL. 5 # Config for us and everybody else depending on BoringSSL.
6 config("openssl_config") { 6 config("openssl_config") {
7 include_dirs = [] 7 include_dirs = []
8 include_dirs += [ "src/include" ] 8 include_dirs += [ "src/include" ]
9 if (is_component_build) {
10 defines += [
11 "BORINGSSL_SHARED_LIBRARY",
12 ]
13 }
9 } 14 }
10 15
11 # Config internal to this build file. 16 # Config internal to this build file.
12 config("openssl_internal_config") { 17 config("openssl_internal_config") {
13 visibility = ":*" # Only targets in this file can depend on this. 18 visibility = ":*" # Only targets in this file can depend on this.
14 } 19 }
15 20
16 # The list of BoringSSL files is kept in boringssl.gypi. 21 # The list of BoringSSL files is kept in boringssl.gypi.
17 gypi_values = exec_script( 22 gypi_values = exec_script(
18 "//build/gypi_to_gn.py", 23 "//build/gypi_to_gn.py",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } else { 63 } else {
59 defines += [ "OPENSSL_NO_ASM" ] 64 defines += [ "OPENSSL_NO_ASM" ]
60 } 65 }
61 } else if (cpu_arch == "arm") { 66 } else if (cpu_arch == "arm") {
62 sources += gypi_values.boringssl_linux_arm_sources 67 sources += gypi_values.boringssl_linux_arm_sources
63 } else { 68 } else {
64 defines += [ "OPENSSL_NO_ASM" ] 69 defines += [ "OPENSSL_NO_ASM" ]
65 } 70 }
66 71
67 if (is_component_build) { 72 if (is_component_build) {
68 if (!is_win) { 73 defines += [
69 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] 74 "BORINGSSL_SHARED_LIBRARY",
70 } 75 "BORINGSSL_IMPLEMENTATION",
davidben 2014/08/01 17:59:47 For consistency, maybe move the BORINGSSL_IMPLEMEN
71 if (is_posix && !is_mac) { 76 ]
72 # Avoid link failures on Linux x86-64.
73 # See http://rt.openssl.org/Ticket/Display.html?id=2466&user=guest&pass=gu est
74 ldflags = [ "-Wl,-Bsymbolic" ]
75 }
76 } 77 }
77 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698