Index: third_party/boringssl/BUILD.gn |
diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn |
index c4fa8681fc1acfa36690b307192236dbe87beebf..2616c8b8ed63fe678d2ee4e3c2ec2f9e3ccd51a5 100644 |
--- a/third_party/boringssl/BUILD.gn |
+++ b/third_party/boringssl/BUILD.gn |
@@ -8,6 +8,10 @@ import("//testing/libfuzzer/fuzzer_test.gni") |
import("BUILD.generated.gni") |
import("BUILD.generated_tests.gni") |
+declare_args() { |
+ include_boringssl_unittests = false |
davidben
2016/04/26 21:07:56
Oh. Actually, I would rather we at least build thi
davidben
2016/04/26 21:12:12
That or we should decide this is not a thing we ca
|
+} |
+ |
# Config for us and everybody else depending on BoringSSL. |
config("external_config") { |
include_dirs = [ "src/include" ] |
@@ -131,17 +135,19 @@ create_tests("boringssl_tests") { |
] |
} |
-test("boringssl_unittests") { |
- deps = [ |
- ":boringssl_tests", |
- "//base", |
- "//base/test:run_all_unittests", |
- "//base/test:test_support", |
- "//testing/gtest", |
- ] |
- sources = [ |
- "boringssl_unittest.cc", |
- ] |
+if (include_boringssl_unittests) { |
+ test("boringssl_unittests") { |
+ deps = [ |
+ ":boringssl_tests", |
+ "//base", |
+ "//base/test:run_all_unittests", |
+ "//base/test:test_support", |
+ "//testing/gtest", |
+ ] |
+ sources = [ |
+ "boringssl_unittest.cc", |
+ ] |
+ } |
} |
# The same as boringssl, but builds with BORINGSSL_UNSAFE_FUZZER_MODE. |