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("//build_overrides/build.gni") | 7 import("//build_overrides/build.gni") |
8 import("//testing/libfuzzer/fuzzer_test.gni") | 8 import("//testing/libfuzzer/fuzzer_test.gni") |
9 import("BUILD.generated.gni") | 9 import("BUILD.generated.gni") |
10 import("BUILD.generated_tests.gni") | 10 import("BUILD.generated_tests.gni") |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 if (is_win && !is_msan) { | 53 if (is_win && !is_msan) { |
54 import("//third_party/yasm/yasm_assemble.gni") | 54 import("//third_party/yasm/yasm_assemble.gni") |
55 yasm_assemble("boringssl_asm") { | 55 yasm_assemble("boringssl_asm") { |
56 if (current_cpu == "x64") { | 56 if (current_cpu == "x64") { |
57 sources = crypto_sources_win_x86_64 | 57 sources = crypto_sources_win_x86_64 |
58 } else if (current_cpu == "x86") { | 58 } else if (current_cpu == "x86") { |
59 sources = crypto_sources_win_x86 | 59 sources = crypto_sources_win_x86 |
60 } | 60 } |
61 } | 61 } |
62 } else { | 62 } else { |
| 63 # This has no sources on some platforms so must be a source_set. |
63 source_set("boringssl_asm") { | 64 source_set("boringssl_asm") { |
64 visibility = [ ":*" ] # Only targets in this file can depend on this. | 65 visibility = [ ":*" ] # Only targets in this file can depend on this. |
65 | 66 |
66 defines = [] | 67 defines = [] |
67 sources = [] | 68 sources = [] |
68 asmflags = [] | 69 asmflags = [] |
69 include_dirs = [ "src/include" ] | 70 include_dirs = [ "src/include" ] |
70 | 71 |
71 if ((current_cpu == "arm" || current_cpu == "arm64") && is_clang) { | 72 if ((current_cpu == "arm" || current_cpu == "arm64") && is_clang) { |
72 if (current_cpu == "arm") { | 73 if (current_cpu == "arm") { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 } else if ("read_pem" == fuzzer) { | 204 } else if ("read_pem" == fuzzer) { |
204 libfuzzer_options = [ "max_len=512" ] | 205 libfuzzer_options = [ "max_len=512" ] |
205 } else if ("server" == fuzzer) { | 206 } else if ("server" == fuzzer) { |
206 libfuzzer_options = [ "max_len=4096" ] | 207 libfuzzer_options = [ "max_len=4096" ] |
207 } else if ("spki" == fuzzer) { | 208 } else if ("spki" == fuzzer) { |
208 libfuzzer_options = [ "max_len=1024" ] | 209 libfuzzer_options = [ "max_len=1024" ] |
209 } | 210 } |
210 } | 211 } |
211 } | 212 } |
212 } | 213 } |
OLD | NEW |