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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
7 | 7 |
8 # Config for us and everybody else depending on BoringSSL. | 8 # Config for us and everybody else depending on BoringSSL. |
9 config("openssl_config") { | 9 config("openssl_config") { |
10 defines = [ "OPENSSL_SMALL" ] | 10 defines = [ "OPENSSL_SMALL" ] |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 # Also gets the include dirs from :openssl_config | 68 # Also gets the include dirs from :openssl_config |
69 include_dirs = [ "src/include" ] | 69 include_dirs = [ "src/include" ] |
70 | 70 |
71 if (current_cpu == "arm" && is_clang) { | 71 if (current_cpu == "arm" && is_clang) { |
72 # TODO(hans) Enable integrated-as (crbug.com/124610). | 72 # TODO(hans) Enable integrated-as (crbug.com/124610). |
73 asmflags = [ "-fno-integrated-as" ] | 73 asmflags = [ "-fno-integrated-as" ] |
74 if (is_android) { | 74 if (is_android) { |
75 rebased_android_toolchain_root = | 75 rebased_android_toolchain_root = |
76 rebase_path(android_toolchain_root, root_build_dir) | 76 rebase_path(android_toolchain_root, root_build_dir) |
| 77 |
77 # Else /usr/bin/as gets picked up. | 78 # Else /usr/bin/as gets picked up. |
78 asmflags += [ "-B${rebased_android_toolchain_root}/bin" ] | 79 asmflags += [ "-B${rebased_android_toolchain_root}/bin" ] |
79 } | 80 } |
80 } | 81 } |
81 | 82 |
82 if (is_msan) { | 83 if (is_msan) { |
83 defines += [ "OPENSSL_NO_ASM" ] | 84 defines += [ "OPENSSL_NO_ASM" ] |
84 } else if (current_cpu == "x64") { | 85 } else if (current_cpu == "x64") { |
85 if (is_mac || is_ios) { | 86 if (is_mac || is_ios) { |
86 sources += gypi_values.boringssl_mac_x86_64_sources | 87 sources += gypi_values.boringssl_mac_x86_64_sources |
(...skipping 19 matching lines...) Expand all Loading... |
106 } else if (current_cpu == "arm64" && (is_linux || is_android)) { | 107 } else if (current_cpu == "arm64" && (is_linux || is_android)) { |
107 sources += gypi_values.boringssl_linux_aarch64_sources | 108 sources += gypi_values.boringssl_linux_aarch64_sources |
108 } else { | 109 } else { |
109 defines += [ "OPENSSL_NO_ASM" ] | 110 defines += [ "OPENSSL_NO_ASM" ] |
110 } | 111 } |
111 | 112 |
112 if (is_nacl) { | 113 if (is_nacl) { |
113 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] | 114 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
114 } | 115 } |
115 } | 116 } |
OLD | NEW |