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

Side by Side Diff: third_party/boringssl/BUILD.gn

Issue 568643003: Reland dd7edfa67: Switch Mac over to BoringSSL from NSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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) { 9 if (is_component_build) {
10 defines = [ 10 defines = [
(...skipping 13 matching lines...) Expand all
24 [ rebase_path("//third_party/boringssl/boringssl.gypi") ], 24 [ rebase_path("//third_party/boringssl/boringssl.gypi") ],
25 "scope", 25 "scope",
26 [ "//third_party/boringssl/boringssl.gypi" ]) 26 [ "//third_party/boringssl/boringssl.gypi" ])
27 27
28 component("boringssl") { 28 component("boringssl") {
29 sources = gypi_values.boringssl_lib_sources 29 sources = gypi_values.boringssl_lib_sources
30 30
31 direct_dependent_configs = [ ":openssl_config" ] 31 direct_dependent_configs = [ ":openssl_config" ]
32 32
33 cflags = [] 33 cflags = []
34 defines = [ "BORINGSSL_IMPLEMENTATION" ] 34 defines = [
35 "BORINGSSL_IMPLEMENTATION",
36 "BORINGSSL_NO_STATIC_INITIALIZER",
Ryan Sleevi 2014/09/12 00:36:27 Just to confirm I'm reading https://boringssl-revi
davidben 2014/09/12 00:40:00 Yup. The only reference to that #define in a heade
37 ]
35 if (is_component_build) { 38 if (is_component_build) {
36 defines += [ 39 defines += [
37 "BORINGSSL_SHARED_LIBRARY", 40 "BORINGSSL_SHARED_LIBRARY",
38 ] 41 ]
39 } 42 }
40 43
41 configs -= [ "//build/config/compiler:chromium_code" ] 44 configs -= [ "//build/config/compiler:chromium_code" ]
42 configs += [ "//build/config/compiler:no_chromium_code" ] 45 configs += [ "//build/config/compiler:no_chromium_code" ]
43 46
44 # Also gets the include dirs from :openssl_config 47 # Also gets the include dirs from :openssl_config
(...skipping 22 matching lines...) Expand all
67 sources += gypi_values.boringssl_linux_x86_sources 70 sources += gypi_values.boringssl_linux_x86_sources
68 } else { 71 } else {
69 defines += [ "OPENSSL_NO_ASM" ] 72 defines += [ "OPENSSL_NO_ASM" ]
70 } 73 }
71 } else if (cpu_arch == "arm") { 74 } else if (cpu_arch == "arm") {
72 sources += gypi_values.boringssl_linux_arm_sources 75 sources += gypi_values.boringssl_linux_arm_sources
73 } else { 76 } else {
74 defines += [ "OPENSSL_NO_ASM" ] 77 defines += [ "OPENSSL_NO_ASM" ]
75 } 78 }
76 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698