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

Unified Diff: components/drive/BUILD.gn

Issue 2143253002: Convert test_support source sets to static libs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android Created 4 years, 5 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 | « components/dom_distiller/core/BUILD.gn ('k') | components/gcm_driver/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/BUILD.gn
diff --git a/components/drive/BUILD.gn b/components/drive/BUILD.gn
index c5c9516234dd2bb5d19d7f0c23f0c9d476d0c782..9ffcfac321a21be5bdd1ef65613b8b9bfd91c2c8 100644
--- a/components/drive/BUILD.gn
+++ b/components/drive/BUILD.gn
@@ -4,7 +4,7 @@
import("//third_party/protobuf/proto_library.gni")
-source_set("drive") {
+static_library("drive") {
sources = [
"drive_api_util.cc",
"drive_api_util.h",
@@ -144,7 +144,7 @@ proto_library("proto") {
]
}
-source_set("test_support") {
+static_library("test_support") {
testonly = true
sources = [
"service/dummy_drive_service.cc",
@@ -165,25 +165,27 @@ source_set("test_support") {
]
}
-source_set("test_support_chromeos") {
- testonly = true
- sources = [
- "chromeos/drive_test_util.cc",
- "chromeos/drive_test_util.h",
- "chromeos/dummy_file_system.cc",
- "chromeos/dummy_file_system.h",
- "chromeos/fake_file_system.cc",
- "chromeos/fake_file_system.h",
- "chromeos/fake_free_disk_space_getter.cc",
- "chromeos/fake_free_disk_space_getter.h",
- ]
- deps = [
- ":drive",
- ":drive_chromeos",
- ":proto",
- "//base",
- "//components/prefs:test_support",
- "//content/test:test_support",
- "//google_apis:test_support",
- ]
+if (is_chromeos) {
+ static_library("test_support_chromeos") {
+ testonly = true
+ sources = [
+ "chromeos/drive_test_util.cc",
+ "chromeos/drive_test_util.h",
+ "chromeos/dummy_file_system.cc",
+ "chromeos/dummy_file_system.h",
+ "chromeos/fake_file_system.cc",
+ "chromeos/fake_file_system.h",
+ "chromeos/fake_free_disk_space_getter.cc",
+ "chromeos/fake_free_disk_space_getter.h",
+ ]
+ deps = [
+ ":drive",
+ ":drive_chromeos",
+ ":proto",
+ "//base",
+ "//components/prefs:test_support",
+ "//content/test:test_support",
+ "//google_apis:test_support",
+ ]
+ }
}
« no previous file with comments | « components/dom_distiller/core/BUILD.gn ('k') | components/gcm_driver/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698