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

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

Issue 776643003: Switch Windows over to BoringSSL from NSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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
« no previous file with comments | « net/ssl/openssl_platform_key_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = [ "BORINGSSL_SHARED_LIBRARY" ] 10 defines = [ "BORINGSSL_SHARED_LIBRARY" ]
(...skipping 28 matching lines...) Expand all
39 component("boringssl") { 39 component("boringssl") {
40 sources = gypi_values.boringssl_lib_sources 40 sources = gypi_values.boringssl_lib_sources
41 41
42 public_configs = [ ":openssl_config" ] 42 public_configs = [ ":openssl_config" ]
43 43
44 cflags = [] 44 cflags = []
45 defines = [ 45 defines = [
46 "BORINGSSL_IMPLEMENTATION", 46 "BORINGSSL_IMPLEMENTATION",
47 "BORINGSSL_NO_STATIC_INITIALIZER", 47 "BORINGSSL_NO_STATIC_INITIALIZER",
48 ] 48 ]
49 deps = []
49 if (is_component_build) { 50 if (is_component_build) {
50 defines += [ "BORINGSSL_SHARED_LIBRARY" ] 51 defines += [ "BORINGSSL_SHARED_LIBRARY" ]
51 } 52 }
52 53
53 configs -= [ "//build/config/compiler:chromium_code" ] 54 configs -= [ "//build/config/compiler:chromium_code" ]
54 configs += [ "//build/config/compiler:no_chromium_code" ] 55 configs += [ "//build/config/compiler:no_chromium_code" ]
55 56
56 # Also gets the include dirs from :openssl_config 57 # Also gets the include dirs from :openssl_config
57 include_dirs = [ 58 include_dirs = [
58 "src/include", 59 "src/include",
(...skipping 29 matching lines...) Expand all
88 deps += [ ":boringssl_asm" ] 89 deps += [ ":boringssl_asm" ]
89 } else { 90 } else {
90 defines += [ "OPENSSL_NO_ASM" ] 91 defines += [ "OPENSSL_NO_ASM" ]
91 } 92 }
92 } else if (cpu_arch == "arm") { 93 } else if (cpu_arch == "arm") {
93 sources += gypi_values.boringssl_linux_arm_sources 94 sources += gypi_values.boringssl_linux_arm_sources
94 } else { 95 } else {
95 defines += [ "OPENSSL_NO_ASM" ] 96 defines += [ "OPENSSL_NO_ASM" ]
96 } 97 }
97 } 98 }
OLDNEW
« no previous file with comments | « net/ssl/openssl_platform_key_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698