| Index: crypto/BUILD.gn
|
| diff --git a/crypto/BUILD.gn b/crypto/BUILD.gn
|
| index 088a5c131b7f73acaa3d4fd1d4b9042c2b3c124f..a912d934c506c2ec6c13abf7281a41ca0473a76f 100644
|
| --- a/crypto/BUILD.gn
|
| +++ b/crypto/BUILD.gn
|
| @@ -175,36 +175,32 @@ test("crypto_unittests") {
|
| ]
|
| }
|
|
|
| +# This has no sources in some cases so can't be a static library.
|
| source_set("test_support") {
|
| - sources = [
|
| - "scoped_test_nss_chromeos_user.cc",
|
| - "scoped_test_nss_chromeos_user.h",
|
| - "scoped_test_nss_db.cc",
|
| - "scoped_test_nss_db.h",
|
| - "scoped_test_system_nss_key_slot.cc",
|
| - "scoped_test_system_nss_key_slot.h",
|
| - ]
|
| - deps = [
|
| - ":crypto",
|
| - ":platform",
|
| - "//base",
|
| - ]
|
| + testonly = true
|
| + sources = []
|
|
|
| - if (!use_nss_certs) {
|
| - sources -= [
|
| + if (use_nss_certs) {
|
| + sources += [
|
| "scoped_test_nss_db.cc",
|
| "scoped_test_nss_db.h",
|
| ]
|
| }
|
|
|
| - if (!is_chromeos) {
|
| - sources -= [
|
| + if (is_chromeos) {
|
| + sources += [
|
| "scoped_test_nss_chromeos_user.cc",
|
| "scoped_test_nss_chromeos_user.h",
|
| "scoped_test_system_nss_key_slot.cc",
|
| "scoped_test_system_nss_key_slot.h",
|
| ]
|
| }
|
| +
|
| + deps = [
|
| + ":crypto",
|
| + ":platform",
|
| + "//base",
|
| + ]
|
| }
|
|
|
| config("platform_config") {
|
|
|