Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/boringssl/BUILD.gn

Issue 2484803007: Roll src/third_party/boringssl/src 11a7b3c2d..b8d74f5b6 (Closed)
Patch Set: roll further to pick up -18 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | third_party/boringssl/err_data.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boringssl/BUILD.gn
diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn
index ed3754ceb773728a327cd0d34473ce84de27c56d..d9439e96aa41be6c3c7ac39d24eb2c05681f4459 100644
--- a/third_party/boringssl/BUILD.gn
+++ b/third_party/boringssl/BUILD.gn
@@ -41,11 +41,6 @@ config("no_asm_config") {
defines = [ "OPENSSL_NO_ASM" ]
}
-config("fuzzer_config") {
- visibility = [ ":*" ] # Only targets in this file can depend on this.
- defines = [ "BORINGSSL_UNSAFE_FUZZER_MODE" ]
-}
-
all_sources = crypto_sources + ssl_sources
# Windows' assembly is built with Yasm. The other platforms use the platform
@@ -156,6 +151,14 @@ if (build_with_chromium) {
}
}
+ config("fuzzer_config") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+ defines = [
+ "BORINGSSL_UNSAFE_FUZZER_MODE",
+ "BORINGSSL_UNSAFE_DETERMINISTIC_MODE",
+ ]
+ }
+
# The same as boringssl, but builds with BORINGSSL_UNSAFE_FUZZER_MODE.
component("boringssl_fuzzer") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
@@ -208,4 +211,52 @@ if (build_with_chromium) {
}
}
}
+
+ config("fuzzer_no_fuzzer_mode_config") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+ defines = [ "BORINGSSL_UNSAFE_DETERMINISTIC_MODE" ]
+ }
+
+ # The same as boringssl, but builds with BORINGSSL_UNSAFE_DETERMINISTIC_MODE.
+ component("boringssl_fuzzer_no_fuzzer_mode") {
+ visibility = [ ":*" ] # Only targets in this file can depend on this.
+
+ sources = all_sources
+ deps = [
+ ":boringssl_asm",
+ ]
+
+ public_configs = [
+ ":external_config",
+ ":fuzzer_no_fuzzer_mode_config",
+ ]
+ configs += [ ":internal_config" ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ if (is_nacl) {
+ deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
+ }
+ }
+
+ fuzzer_test("boringssl_client_no_fuzzer_mode_fuzzer") {
+ sources = [
+ "src/fuzz/client.cc",
+ ]
+ deps = [
+ ":boringssl_fuzzer_no_fuzzer_mode",
+ ]
+ seed_corpus = "src/fuzz/client_corpus_no_fuzzer_mode"
+ }
+
+ fuzzer_test("boringssl_server_no_fuzzer_mode_fuzzer") {
+ sources = [
+ "src/fuzz/server.cc",
+ ]
+ deps = [
+ ":boringssl_fuzzer_no_fuzzer_mode",
+ ]
+ seed_corpus = "src/fuzz/server_corpus_no_fuzzer_mode"
+ }
}
« no previous file with comments | « DEPS ('k') | third_party/boringssl/err_data.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698