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 12 matching lines...) Expand all Loading... |
23 defines = [ | 23 defines = [ |
24 "BORINGSSL_IMPLEMENTATION", | 24 "BORINGSSL_IMPLEMENTATION", |
25 "BORINGSSL_NO_STATIC_INITIALIZER", | 25 "BORINGSSL_NO_STATIC_INITIALIZER", |
26 "OPENSSL_SMALL", | 26 "OPENSSL_SMALL", |
27 ] | 27 ] |
28 configs = [ | 28 configs = [ |
29 # TODO(davidben): Fix size_t truncations in BoringSSL. | 29 # TODO(davidben): Fix size_t truncations in BoringSSL. |
30 # https://crbug.com/429039 | 30 # https://crbug.com/429039 |
31 "//build/config/compiler:no_size_t_to_int_warning", | 31 "//build/config/compiler:no_size_t_to_int_warning", |
32 ] | 32 ] |
| 33 if (is_posix) { |
| 34 cflags_c = [ "-std=c99" ] |
| 35 defines += [ "_XOPEN_SOURCE=700" ] |
| 36 } |
33 } | 37 } |
34 | 38 |
35 config("no_asm_config") { | 39 config("no_asm_config") { |
36 visibility = [ ":*" ] # Only targets in this file can depend on this. | 40 visibility = [ ":*" ] # Only targets in this file can depend on this. |
37 defines = [ "OPENSSL_NO_ASM" ] | 41 defines = [ "OPENSSL_NO_ASM" ] |
38 } | 42 } |
39 | 43 |
40 config("fuzzer_config") { | 44 config("fuzzer_config") { |
41 visibility = [ ":*" ] # Only targets in this file can depend on this. | 45 visibility = [ ":*" ] # Only targets in this file can depend on this. |
42 defines = [ "BORINGSSL_UNSAFE_FUZZER_MODE" ] | 46 defines = [ "BORINGSSL_UNSAFE_FUZZER_MODE" ] |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 } else if ("read_pem" == fuzzer) { | 203 } else if ("read_pem" == fuzzer) { |
200 libfuzzer_options = [ "max_len=512" ] | 204 libfuzzer_options = [ "max_len=512" ] |
201 } else if ("server" == fuzzer) { | 205 } else if ("server" == fuzzer) { |
202 libfuzzer_options = [ "max_len=4096" ] | 206 libfuzzer_options = [ "max_len=4096" ] |
203 } else if ("spki" == fuzzer) { | 207 } else if ("spki" == fuzzer) { |
204 libfuzzer_options = [ "max_len=1024" ] | 208 libfuzzer_options = [ "max_len=1024" ] |
205 } | 209 } |
206 } | 210 } |
207 } | 211 } |
208 } | 212 } |
OLD | NEW |