| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |