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

Unified Diff: third_party/boringssl/BUILD.gn

Issue 1919383002: GN: Put BoringSSL Chromium specific targets inside a condition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 | « no previous file | no next file » | 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 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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698