| 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 = [ | 10 defines = [ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 # The list of BoringSSL files is kept in boringssl.gypi. | 21 # The list of BoringSSL files is kept in boringssl.gypi. |
| 22 gypi_values = exec_script( | 22 gypi_values = exec_script( |
| 23 "//build/gypi_to_gn.py", | 23 "//build/gypi_to_gn.py", |
| 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 public_configs = [ ":openssl_config" ] |
| 32 | 32 |
| 33 cflags = [] | 33 cflags = [] |
| 34 defines = [ | 34 defines = [ |
| 35 "BORINGSSL_IMPLEMENTATION", | 35 "BORINGSSL_IMPLEMENTATION", |
| 36 "BORINGSSL_NO_STATIC_INITIALIZER", | 36 "BORINGSSL_NO_STATIC_INITIALIZER", |
| 37 ] | 37 ] |
| 38 if (is_component_build) { | 38 if (is_component_build) { |
| 39 defines += [ | 39 defines += [ |
| 40 "BORINGSSL_SHARED_LIBRARY", | 40 "BORINGSSL_SHARED_LIBRARY", |
| 41 ] | 41 ] |
| (...skipping 28 matching lines...) Expand all Loading... |
| 70 sources += gypi_values.boringssl_linux_x86_sources | 70 sources += gypi_values.boringssl_linux_x86_sources |
| 71 } else { | 71 } else { |
| 72 defines += [ "OPENSSL_NO_ASM" ] | 72 defines += [ "OPENSSL_NO_ASM" ] |
| 73 } | 73 } |
| 74 } else if (cpu_arch == "arm") { | 74 } else if (cpu_arch == "arm") { |
| 75 sources += gypi_values.boringssl_linux_arm_sources | 75 sources += gypi_values.boringssl_linux_arm_sources |
| 76 } else { | 76 } else { |
| 77 defines += [ "OPENSSL_NO_ASM" ] | 77 defines += [ "OPENSSL_NO_ASM" ] |
| 78 } | 78 } |
| 79 } | 79 } |
| OLD | NEW |