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 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
8 | 8 |
9 # Config for us and everybody else depending on BoringSSL. | 9 # Config for us and everybody else depending on BoringSSL. |
10 config("external_config") { | 10 config("external_config") { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 } | 60 } |
61 } | 61 } |
62 } else { | 62 } else { |
63 source_set("boringssl_asm") { | 63 source_set("boringssl_asm") { |
64 visibility = [ ":*" ] # Only targets in this file can depend on this. | 64 visibility = [ ":*" ] # Only targets in this file can depend on this. |
65 | 65 |
66 sources = [] | 66 sources = [] |
67 asmflags = [] | 67 asmflags = [] |
68 include_dirs = [ "src/include" ] | 68 include_dirs = [ "src/include" ] |
69 | 69 |
70 if (current_cpu == "arm" && is_clang) { | 70 if ((current_cpu == "arm" || current_cpu == "arm64") && is_clang) { |
71 # TODO(hans) Enable integrated-as (crbug.com/124610). | 71 # TODO(hans) Enable integrated-as (crbug.com/124610). |
72 asmflags += [ "-fno-integrated-as" ] | 72 asmflags += [ "-fno-integrated-as" ] |
73 if (is_android) { | 73 if (is_android) { |
74 rebased_android_toolchain_root = | 74 rebased_android_toolchain_root = |
75 rebase_path(android_toolchain_root, root_build_dir) | 75 rebase_path(android_toolchain_root, root_build_dir) |
76 | 76 |
77 # Else /usr/bin/as gets picked up. | 77 # Else /usr/bin/as gets picked up. |
78 asmflags += [ "-B${rebased_android_toolchain_root}/bin" ] | 78 asmflags += [ "-B${rebased_android_toolchain_root}/bin" ] |
79 } | 79 } |
80 } | 80 } |
(...skipping 16 matching lines...) Expand all Loading... | |
97 } else { | 97 } else { |
98 public_configs = [ ":no_asm_config" ] | 98 public_configs = [ ":no_asm_config" ] |
99 } | 99 } |
100 } else if (current_cpu == "arm" && (is_linux || is_android)) { | 100 } else if (current_cpu == "arm" && (is_linux || is_android)) { |
101 sources += gypi_values.boringssl_linux_arm_sources | 101 sources += gypi_values.boringssl_linux_arm_sources |
102 } else if (current_cpu == "arm64" && (is_linux || is_android)) { | 102 } else if (current_cpu == "arm64" && (is_linux || is_android)) { |
103 sources += gypi_values.boringssl_linux_aarch64_sources | 103 sources += gypi_values.boringssl_linux_aarch64_sources |
104 | 104 |
105 # TODO(davidben): Remove explicit arch flag once https://crbug.com/576858 | 105 # TODO(davidben): Remove explicit arch flag once https://crbug.com/576858 |
106 # is fixed. | 106 # is fixed. |
107 asmflags += [ "-march=armv8-a+crypto" ] | 107 asmflags += [ "-march=armv8-a+crypto+simd+fp+crc" ] |
Nico
2016/04/14 15:43:55
can we fix https://llvm.org/bugs/show_bug.cgi?id=2
khasim.mohammed
2016/04/14 16:38:46
Not sure if I can get that fixed quickly. Will try
| |
108 } else { | 108 } else { |
109 public_configs = [ ":no_asm_config" ] | 109 public_configs = [ ":no_asm_config" ] |
110 } | 110 } |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 component("boringssl") { | 114 component("boringssl") { |
115 sources = boringssl_sources | 115 sources = boringssl_sources |
116 deps = [ | 116 deps = [ |
117 ":boringssl_asm", | 117 ":boringssl_asm", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
183 | 183 |
184 fuzzer_test("boringssl_server_bio_write_fuzzer") { | 184 fuzzer_test("boringssl_server_bio_write_fuzzer") { |
185 sources = [ | 185 sources = [ |
186 "src/fuzz/server.cc", | 186 "src/fuzz/server.cc", |
187 ] | 187 ] |
188 deps = [ | 188 deps = [ |
189 ":boringssl_fuzzer", | 189 ":boringssl_fuzzer", |
190 ] | 190 ] |
191 seed_corpus = "src/fuzz/server_corpus" | 191 seed_corpus = "src/fuzz/server_corpus" |
192 } | 192 } |
OLD | NEW |