| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 configs = [ | 133 configs = [ |
| 134 ":internal_config", | 134 ":internal_config", |
| 135 "//build/config/compiler:no_chromium_code", | 135 "//build/config/compiler:no_chromium_code", |
| 136 ] | 136 ] |
| 137 deps = [ | 137 deps = [ |
| 138 ":boringssl", | 138 ":boringssl", |
| 139 "//build/win:default_exe_manifest", | 139 "//build/win:default_exe_manifest", |
| 140 ] | 140 ] |
| 141 } | 141 } |
| 142 | 142 |
| 143 test("boringssl_unittests") { | 143 if (!is_ios) { |
| 144 deps = [ | 144 test("boringssl_unittests") { |
| 145 ":boringssl_tests", | 145 deps = [ |
| 146 "//base", | 146 ":boringssl_tests", |
| 147 "//base/test:run_all_unittests", | 147 "//base", |
| 148 "//base/test:test_support", | 148 "//base/test:run_all_unittests", |
| 149 "//testing/gtest", | 149 "//base/test:test_support", |
| 150 ] | 150 "//testing/gtest", |
| 151 sources = [ | 151 ] |
| 152 "boringssl_unittest.cc", | 152 sources = [ |
| 153 ] | 153 "boringssl_unittest.cc", |
| 154 ] |
| 155 } |
| 154 } | 156 } |
| 155 | 157 |
| 156 # The same as boringssl, but builds with BORINGSSL_UNSAFE_FUZZER_MODE. | 158 # The same as boringssl, but builds with BORINGSSL_UNSAFE_FUZZER_MODE. |
| 157 component("boringssl_fuzzer") { | 159 component("boringssl_fuzzer") { |
| 158 visibility = [ ":*" ] # Only targets in this file can depend on this. | 160 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 159 | 161 |
| 160 sources = all_sources | 162 sources = all_sources |
| 161 deps = [ | 163 deps = [ |
| 162 ":boringssl_asm", | 164 ":boringssl_asm", |
| 163 ] | 165 ] |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 } else if ("privkey" == fuzzer) { | 197 } else if ("privkey" == fuzzer) { |
| 196 libfuzzer_options = [ "max_len=2048" ] | 198 libfuzzer_options = [ "max_len=2048" ] |
| 197 } else if ("server" == fuzzer) { | 199 } else if ("server" == fuzzer) { |
| 198 libfuzzer_options = [ "max_len=4096" ] | 200 libfuzzer_options = [ "max_len=4096" ] |
| 199 } else if ("spki" == fuzzer) { | 201 } else if ("spki" == fuzzer) { |
| 200 libfuzzer_options = [ "max_len=1024" ] | 202 libfuzzer_options = [ "max_len=1024" ] |
| 201 } | 203 } |
| 202 } | 204 } |
| 203 } | 205 } |
| 204 } | 206 } |
| OLD | NEW |